From f8b841aed450a3ae9efba68eb8c6d707f24b1d53 Mon Sep 17 00:00:00 2001 From: Romain Goffe Date: Wed, 10 Aug 2011 18:41:30 +0200 Subject: [PATCH] templates: add songbook language parameter --- templates/ancient.tmpl | 1 + templates/minimal.tmpl | 1 + templates/patacrep-en.tmpl | 1 + templates/patacrep.tmpl | 2 ++ 4 files changed, 5 insertions(+) diff --git a/templates/ancient.tmpl b/templates/ancient.tmpl index b3d01832..8616dd07 100644 --- a/templates/ancient.tmpl +++ b/templates/ancient.tmpl @@ -28,6 +28,7 @@ %%: {"name":"title", "description":"Title", "default":"Recueil de chansons pour guitare", "mandatory":true}, %%: {"name":"author", "description":"Author", "default":"Romain Goffe \\and Alexandre Dupas", "mandatory":true}, %%: {"name":"booktype", "description":"Type", "type":"enum", "values":["chorded","lyric"], "default":"chorded", "mandatory":true}, +%%: {"name":"lang", "description":"Language", "default":"english"}, %%: {"name":"bookoptions", "description":"Options", "type":"flag", "values":["diagram","lilypond","pictures","tabs"], "join":",", "mandatory":true, "default":["diagram","pictures"]}, %%: {"name":"version", "description":"Version", "default":"3.3.8"}, %%: {"name":"subtitle", "description":"Subtitle"}, diff --git a/templates/minimal.tmpl b/templates/minimal.tmpl index 979b5c80..725712c6 100644 --- a/templates/minimal.tmpl +++ b/templates/minimal.tmpl @@ -26,6 +26,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%:[ %%: {"name":"booktype", "description":"Type", "type":"enum", "values":["chorded","lyric"], "default":"chorded", "mandatory":true}, +%%: {"name":"lang", "description":"Language", "default":"english"}, %%: {"name":"bookoptions", "description":"Options", "type":"flag", "values":["diagram","lilypond","tabs","pictures"], "join":",", "mandatory":true, "default":["pictures"]}, %%: {"name":"mainfontsize", "description":"Font Size", "type":"font", "default":"10"} %%:] diff --git a/templates/patacrep-en.tmpl b/templates/patacrep-en.tmpl index 9e45b121..4f1bd9f0 100644 --- a/templates/patacrep-en.tmpl +++ b/templates/patacrep-en.tmpl @@ -28,6 +28,7 @@ %%: {"name":"title", "description":"Title", "default":"Patacrep Songbook", "mandatory":true}, %%: {"name":"author", "description":"Author", "default":"Romain Goffe \\and Alexandre Dupas", "mandatory":true}, %%: {"name":"booktype", "description":"Type", "type":"enum", "values":["chorded","lyric"], "default":"chorded", "mandatory":true}, +%%: {"name":"lang", "description":"Language", "default":"english"}, %%: {"name":"bookoptions", "description":"Options", "type":"flag", "values":["diagram","lilypond","pictures","tabs"], "join":",", "mandatory":true, "default":["diagram","pictures"]}, %%: {"name":"version", "description":"Version", "default":"3.3.8"}, %%: {"name":"subtitle", "description":"Subtitle"}, diff --git a/templates/patacrep.tmpl b/templates/patacrep.tmpl index 844f7852..18e43da1 100644 --- a/templates/patacrep.tmpl +++ b/templates/patacrep.tmpl @@ -28,6 +28,7 @@ %%: {"name":"title", "description":"Title", "default":"Recueil de chansons pour guitare", "mandatory":true}, %%: {"name":"author", "description":"Author", "default":"Romain Goffe \\and Alexandre Dupas", "mandatory":true}, %%: {"name":"booktype", "description":"Type", "type":"enum", "values":["chorded","lyric"], "default":"chorded", "mandatory":true}, +%%: {"name":"lang", "description":"Language", "default":"english"}, %%: {"name":"bookoptions", "description":"Options", "type":"flag", "values":["diagram","lilypond","pictures","tabs"], "join":",", "mandatory":true, "default":["diagram","pictures"]}, %%: {"name":"version", "description":"Version", "default":"3.3.8"}, %%: {"name":"subtitle", "description":"Subtitle"}, @@ -60,6 +61,7 @@ \picturecopyright{\getpicturecopyright} \footer{\getfooter} \licence{\getlicense} +\lang{\getlang} \newindex{titleidx}{\getname_title} \newauthorindex{authidx}{\getname_auth}