Nino Novak wrote:
On Saturday 29 August 2009 18:12, T. J. Frazier wrote:
I'd like to generate a template name
from the ISO code, but I'm not sure the parsing is quite that smart.
It is; works fine.
This will take a while; afk shortly. Tomorrow OK?
Of course. ;-)
Thank you for your efforts.
Nino
So far, so good. The wiki can generate and use a template name, based on
a supplied parameter (Lang=XX).
The TEST master,
http://wiki.services.openoffice.org/wiki/Template:TEST/MasterTOC
has been modified to use the "Lang" parameter, and to generate all four
words from an auxiliary template. Please check if it does what you want
(and if I broke anything :-( ).
The TEST auxiliary template,
http://wiki.services.openoffice.org/wiki/Template:TEST/TOC_DE
shows what a translator would have to make, for a new language. Does
that look reasonable to everybody? No localization changes are required
for the Master TOC itself. The "Lang" parameter goes in the translated
call to it.
(Please forgive my sloppy translation, paying no attention to case
endings. "Ich bin Ausländer und spreche nicht gut Deutsch.")
Still to do:
* Naming convention for aux. templates.
* Clever syntax for defaulting to "Lang=en". (I think I can get away
with leaving it blank; it depends on what {{{Lang}}} defaults to, if
"Lang" is not supplied. Maybe I'll need to do something really gnarly,
like "TOC_{{{Lang}}}" for a file name! :-) )
Once those issues are decided, and if we decide to go ahead, then the
real Master has to be updated with the real aux. template name skeleton,
the aux. template to handle "en" has to be created, and we're in
business! :D
Possibly more tonight, but more likely tomorrow.
--
/tj/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@documentation.openoffice.org
For additional commands, e-mail: dev-h...@documentation.openoffice.org