Loading...
 
Skip to main content

Multilingual/i18n


You are viewing a reply to How to build a multilingual site

Aw: Re: Aw: Aw: Re: How to build a multilingual site

Do I get you right: is not a Smarty http://smarty.php.net/manual/en/language.builtin.functions.php|Built-inQuestion Function], but a PluginQuestion, defined by TikiWiki (though I didn't find, a "*.tr.php" in the tikiwiki directory). invokes the function tra() in tiki-setup_base.php. This function looks up the English string either in a DB or in some files and returns the translated string. If I want to write my own extensions to TikiWiki, I need my own strings. Am I supposed to add them to the global database or should I override the tra function with "mytra", which first serches my database before searching the global database?

How do I handle complete message sentences like "foo fooo %1 foo foo %2 foo" translates to "bar bar %2 bar bar %1 bar" (mind the position of %1 and %2)?

Christian