[Po4a-devel] [ po4a-Bugs-301133 ] Adding templates to po4a config
files
noreply at alioth.debian.org
noreply at alioth.debian.org
Mon Nov 21 20:43:09 UTC 2005
Bugs item #301133, was opened at 2005-01-23 12:39
You can respond by visiting:
http://alioth.debian.org/tracker/?func=detail&atid=410622&aid=301133&group_id=30267
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jordi Vilalta (jvprat-guest)
Assigned to: Nobody (None)
Summary: Adding templates to po4a config files
Initial Comment:
This is a request for enhancement.
One of the shortcommings (in my opinion) of the po4a script is the strictness of the config files. When you want to add a new language you have to touch several places of the file. Since the paths are usually similar, this could be enhanced by using some kind of templates. My proposal is to add a new command [po4a_langs] and some kind of identificator (like $lang), so that an actual typical config file like this:
[po4a_paths] po/debian.pot fr:po/fr.po de:po/de.po es:po/es.po
[type: pod] example.pod fr:out/example_fr.pod add_fr:po/add.fr de:out/example_de.pod add_de:po/add.de es:out/example_es.pod add_es:po/add.es
could be rewritten to something like:
[po4a_langs] fr de es
[po4a_paths] po/debian.pot $lang:po/$lang.po
[type: pod] example.pod $lang:out/example_$lang.pod add_$lang:po/add.$lang
This way, it's so easy to add a new translation, and I think that the file's structure gets clearer.
----------------------------------------------------------------------
You can respond by visiting:
http://alioth.debian.org/tracker/?func=detail&atid=410622&aid=301133&group_id=30267
More information about the Po4a-devel
mailing list