Zikula Network
Think multilingual!
Posted by philipp on Fri, 14 Nov 2008 (170 reads)
Zikula supports multiple languages by defines for each languages. This system offers a full translatability in each language if you use it correctly, but also can result in nearly unusable gibberish.
One of the biggest Donots is the splitting of a sentence in multible defines.
While in English there is no problem in using _NEW and _ARTICLE for "New article" in German it'll be grammatically wrong since the adjective is adjusted to the noun's gender.
Thus one of the most important rules in using multi language defines is:
Always define the full sentences!
You can also use placeholders like %name% in your langdefines:
In Smarty you can use it by:
In PHP:
By this way even language with different syntax can display correct sentences!
One of the biggest Donots is the splitting of a sentence in multible defines.
While in English there is no problem in using _NEW and _ARTICLE for "New article" in German it'll be grammatically wrong since the adjective is adjusted to the noun's gender.
Thus one of the most important rules in using multi language defines is:
Always define the full sentences!
You can also use placeholders like %name% in your langdefines:
Code
In Smarty you can use it by:
Code
- <!--[pnml name="_FOO_NEWMAIL" name=$from.name]-->
In PHP:
Code
By this way even language with different syntax can display correct sentences!
Share This





Latest Comments