On Fri, Apr 15, 2005 at 01:18:51PM +0200, Jordi Vilalta wrote:
Hi,
while trying to translate the new website proposal I found the need to add
module options in the config files (a longstanding limitation of the po4a
script). A posible solution came to my mind: we could define "module
aliases". For example, we could define po4aweb to be an alias to the xml
module with some options:
[po4a_alias: po4aweb] xml -o inline="<a>"
[type: po4aweb] index.xml $lang:index.xml.$lang
Would it be so difficult to implement it?
What about
[type: xml] index.xml $lang:index.xml.$lang modopt:inline="<a>"
?
It sounds rather simple to implement, too. It would solve the module option
issue, as long as you don't want to pass different module options for the
different languages.
The schema could be extended a bit for the other cases:
- language specific module option: modopt_fr and friends?
- non-module option such as -k to po4a-translate: no idea. Maybe directly:
[type: xml] index.xml $lang:index.xml.$lang modopt:inline="<a>" -k 40
but that's just an idea, I'd prefere to let this simple case work, play a
bit with it and add other features afterward, when we really need them.
As usual, that's my advice and I may well be wrong. Specially today since
last night was so short :-(
And for the 0.21 release, it won't be this week since the week is over. So
either you guys manage to do this during my vacations or it will have to
wait another week.
Thanks for your time and have a good one,
Mt.