Browse Source

Use language code everywhere

pull/120/head
Oliverpool 9 years ago
parent
commit
9c715f187e
  1. 2
      examples/example-crepbook.sb
  2. 2
      examples/example-layout.sb
  3. 2
      examples/example-songs.sb
  4. 2
      examples/example.sb
  5. 2
      examples/example_encoding.sb
  6. 16
      patacrep/data/templates/default.tex
  7. 24
      patacrep/data/templates/patacrep.tex
  8. 40
      patacrep/data/templates/songs.tex

2
examples/example-crepbook.sb

@ -7,7 +7,7 @@
"pictures" "pictures"
], ],
"booktype" : "chorded", "booktype" : "chorded",
"lang" : "french", "lang" : "fr",
"authwords" : { "authwords" : {
"sep" : ["and", "et"] "sep" : ["and", "et"]
}, },

2
examples/example-layout.sb

@ -7,7 +7,7 @@
"pictures" "pictures"
], ],
"booktype" : "chorded", "booktype" : "chorded",
"lang" : "french", "lang" : "fr",
"authwords" : { "authwords" : {
"sep" : ["and", "et"] "sep" : ["and", "et"]
}, },

2
examples/example-songs.sb

@ -7,7 +7,7 @@
"pictures" "pictures"
], ],
"booktype" : "chorded", "booktype" : "chorded",
"lang" : "french", "lang" : "fr",
"authwords" : { "authwords" : {
"sep" : ["and", "et"] "sep" : ["and", "et"]
}, },

2
examples/example.sb

@ -6,7 +6,7 @@
"pictures" "pictures"
], ],
"booktype" : "chorded", "booktype" : "chorded",
"lang" : "french", "lang" : "fr",
"authwords" : { "authwords" : {
"sep" : ["and", "et"] "sep" : ["and", "et"]
}, },

2
examples/example_encoding.sb

@ -6,7 +6,7 @@
"pictures" "pictures"
], ],
"booktype" : "chorded", "booktype" : "chorded",
"lang" : "french", "lang" : "fr",
"authwords" : { "authwords" : {
"sep" : ["and", "et", "À"], "sep" : ["and", "et", "À"],
"ignore" : ["À"], "ignore" : ["À"],

16
patacrep/data/templates/default.tex

@ -20,23 +20,23 @@
(* variables *) (* variables *)
{ {
"classoptions": {"description": {"english": "LaTeX class options", "french": "Options de la classe LaTeX"}, "classoptions": {"description": {"en": "LaTeX class options", "fr": "Options de la classe LaTeX"},
"type": "flag", "type": "flag",
"join": ",", "join": ",",
"mandatory": true, "mandatory": true,
"default": {"default":[]} "default": {"default":[]}
}, },
"title": {"description": {"english": "Title", "french": "Titre"}, "title": {"description": {"en": "Title", "fr": "Titre"},
"default": {"english": "Guitar songbook", "french": "Recueil de chansons pour guitare"}, "default": {"en": "Guitar songbook", "fr": "Recueil de chansons pour guitare"},
"mandatory":true "mandatory":true
}, },
"author": {"description": {"english": "Author", "french": "Auteur"}, "author": {"description": {"en": "Author", "fr": "Auteur"},
"default": {"english": "The Patacrep Team", "french": "L'équipe Patacrep"}, "default": {"en": "The Patacrep Team", "fr": "L'équipe Patacrep"},
"mandatory":true "mandatory":true
}, },
"notenamesout": {"description": {"english": "Note names. Can be 'solfedge' (Do, Re, Mi...) or 'alphascale' (A, B, C...).", "notenamesout": {"description": {"en": "Note names. Can be 'solfedge' (Do, Re, Mi...) or 'alphascale' (A, B, C...).",
"french": "Nom des notes : 'solfedge' (Do, Ré, Mi...) ou 'alphascale' (A, B, C...)."}, "fr": "Nom des notes : 'solfedge' (Do, Ré, Mi...) ou 'alphascale' (A, B, C...)."},
"default": {"default": "alphascale", "french": "solfedge"} "default": {"default": "alphascale", "fr": "solfedge"}
} }
} }
(* endvariables -*) (* endvariables -*)

24
patacrep/data/templates/patacrep.tex

@ -20,42 +20,42 @@
(* variables *) (* variables *)
{ {
"subtitle": {"description": {"english": "Subtitle", "french": "Sous-titre"}, "subtitle": {"description": {"en": "Subtitle", "fr": "Sous-titre"},
"default": {"default": ""} "default": {"default": ""}
}, },
"version":{ "description": {"english": "Version", "french": "Version"}, "version":{ "description": {"en": "Version", "fr": "Version"},
"default": {"default": "undefined"} "default": {"default": "undefined"}
}, },
"web": {"description": {"english": "Website", "french": "Site web"}, "web": {"description": {"en": "Website", "fr": "Site web"},
"default": {"default": "http://www.patacrep.com"} "default": {"default": "http://www.patacrep.com"}
}, },
"mail": {"description": {"english": "Email", "french": "Adresse électronique"}, "mail": {"description": {"en": "Email", "fr": "Adresse électronique"},
"default": {"default": "crep@team-on-fire.com"} "default": {"default": "crep@team-on-fire.com"}
}, },
"picture": {"description": {"english": "Cover picture", "french": "Image de couverture"}, "picture": {"description": {"en": "Cover picture", "fr": "Image de couverture"},
"type": "file", "type": "file",
"default": {"default": "img/treble_a"} "default": {"default": "img/treble_a"}
}, },
"picturecopyright": {"description": {"english": "Copyright for the cover picture", "french": "Copyright pour l'image de couverture"}, "picturecopyright": {"description": {"en": "Copyright for the cover picture", "fr": "Copyright pour l'image de couverture"},
"default": {"default": "Dbolton \\url{http://commons.wikimedia.org/wiki/User:Dbolton}"} "default": {"default": "Dbolton \\url{http://commons.wikimedia.org/wiki/User:Dbolton}"}
}, },
"footer": {"description": {"english": "Footer", "french": "Pied de page"}, "footer": {"description": {"en": "Footer", "fr": "Pied de page"},
"default": {"default": "Generated using Songbook (\\url{http://www.patacrep.com})"} "default": {"default": "Generated using Songbook (\\url{http://www.patacrep.com})"}
}, },
"songnumberbgcolor": {"description": {"english": "Number Shade", "french": "Couleur des numéros"}, "songnumberbgcolor": {"description": {"en": "Number Shade", "fr": "Couleur des numéros"},
"type": "color", "type": "color",
"default": {"default": "D1E4AE"} "default": {"default": "D1E4AE"}
}, },
"notebgcolor": {"description": {"english": "Note Shade", "french": "Couleur des notes"}, "notebgcolor": {"description": {"en": "Note Shade", "fr": "Couleur des notes"},
"type": "color", "type": "color",
"default": {"default": "D1E4AE"} "default": {"default": "D1E4AE"}
}, },
"indexbgcolor": {"description": {"english": "Index Shade", "french": "Couleur d'index"}, "indexbgcolor": {"description": {"en": "Index Shade", "fr": "Couleur d'index"},
"type": "color", "type": "color",
"default": {"default": "D1E4AE"} "default": {"default": "D1E4AE"}
}, },
"titleprefixwords": {"description": {"english": "Ignore some words in the beginning of song titles", "titleprefixwords": {"description": {"en": "Ignore some words in the beginning of song titles",
"french": "Ignore des mots dans le classement des chansons"}, "fr": "Ignore des mots dans le classement des chansons"},
"default": {"default": ["The", "Le", "La", "L'", "A", "Au", "Ces", "De", "default": {"default": ["The", "Le", "La", "L'", "A", "Au", "Ces", "De",
"Des", "El", "Les", "Ma", "Mon", "Un"]} "Des", "El", "Les", "Ma", "Mon", "Un"]}
} }

40
patacrep/data/templates/songs.tex

@ -20,46 +20,46 @@
(* variables *) (* variables *)
{ {
"instruments": {"description": {"english": "Instruments", "french": "Instruments"}, "instruments": {"description": {"en": "Instruments", "fr": "Instruments"},
"type": "flag", "type": "flag",
"values": {"guitar": {"english": "Guitare", "french": "Guitare"}, "values": {"guitar": {"en": "Guitare", "fr": "Guitare"},
"ukulele": {"english": "Ukulele", "french": "Ukulele"} "ukulele": {"en": "Ukulele", "fr": "Ukulele"}
}, },
"join": ",", "join": ",",
"mandatory": true, "mandatory": true,
"default": {"default":["guitar"]} "default": {"default":["guitar"]}
}, },
"bookoptions": {"description": {"english": "Options", "french": "Options"}, "bookoptions": {"description": {"en": "Options", "fr": "Options"},
"type": "flag", "type": "flag",
"values": {"diagram": {"english": "Chords diagrams", "french": "Diagrammes d'accords"}, "values": {"diagram": {"en": "Chords diagrams", "fr": "Diagrammes d'accords"},
"importantdiagramonly": {"english": "Only importants diagrames", "french": "Diagrammes importants uniquement"}, "importantdiagramonly": {"en": "Only importants diagrames", "fr": "Diagrammes importants uniquement"},
"lilypond": {"english": "Lilypond music sheets", "french": "Partitions lilypond"}, "lilypond": {"en": "Lilypond music sheets", "fr": "Partitions lilypond"},
"pictures": {"english": "Cover pictures", "french": "Couvertures d'albums"}, "pictures": {"en": "Cover pictures", "fr": "Couvertures d'albums"},
"tabs": {"english": "Tablatures", "french": "Tablatures"}, "tabs": {"en": "Tablatures", "fr": "Tablatures"},
"repeatchords": {"english": "Repeat chords", "french": "Répéter les accords"}, "repeatchords": {"en": "Repeat chords", "fr": "Répéter les accords"},
"onesongperpage": {"english": "One song per page", "french": "Une chanson par page"} "onesongperpage": {"en": "One song per page", "fr": "Une chanson par page"}
}, },
"join": ",", "join": ",",
"mandatory": true, "mandatory": true,
"default": {"default":["diagram","pictures"]} "default": {"default":["diagram","pictures"]}
}, },
"booktype": {"description": {"english": "Type", "french": "Type"}, "booktype": {"description": {"en": "Type", "fr": "Type"},
"type": "enum", "type": "enum",
"values": {"chorded": {"english": "With guitar chords", "french": "Avec accords de guitare" }, "values": {"chorded": {"en": "With guitar chords", "fr": "Avec accords de guitare" },
"lyric": {"english": "Lyrics only", "french": "Paroles uniquement"} "lyric": {"en": "Lyrics only", "fr": "Paroles uniquement"}
}, },
"default": {"default":"chorded"}, "default": {"default":"chorded"},
"mandatory": true "mandatory": true
}, },
"lang": {"description": {"english": "Language", "french": "Langue"}, "lang": {"description": {"en": "Language", "fr": "Langue"},
"default": {"english": "en", "french": "fr"} "default": {"en": "en", "fr": "fr"}
}, },
"titleprefixwords": {"description": {"english": "Ignore some words in the beginning of song titles", "titleprefixwords": {"description": {"en": "Ignore some words in the beginning of song titles",
"french": "Ignore des mots dans le classement des chansons"}, "fr": "Ignore des mots dans le classement des chansons"},
"default": {"default": []} "default": {"default": []}
}, },
"authwords": {"description": {"english": "Set of options to process author string (LaTeX commands authsepword, authignoreword, authbyword)", "authwords": {"description": {"en": "Set of options to process author string (LaTeX commands authsepword, authignoreword, authbyword)",
"french": "Options pour traiter les noms d'auteurs (commandes LaTeX authsepword, authignoreword, authbyword)"}, "fr": "Options pour traiter les noms d'auteurs (commandes LaTeX authsepword, authignoreword, authbyword)"},
"default": {"default": {}} "default": {"default": {}}
} }
} }

Loading…
Cancel
Save