Seite 1 von 1

How to make a backend module multilingual ?

Verfasst: Mi 3. Dez 2003, 09:58
von hrj
Hi core developers,

I am just evaluating Contetido and trying to use it for slovak/english web.
I have found some bugs regarding i18n (see my post in section Bugs 4.4, date 2003-12-02).

My next question is:
Is it possible to make a multilingual module in backed?
It seems that the texts are hardcoded (e.g. Module Hauptnavigation, in Input (Eingabe) there are texts "Baum wählen", etc.).
What to do with it?

regards
Jozef

Verfasst: Mi 3. Dez 2003, 10:10
von emergence
you can use constructs like this in the input modul...

Code: Alles auswählen

<?php
     echo "<OPTION VALUE=\"\">".i18n("--- None ---")."</OPTION>\n";
?>

<OPTION VALUE=""><? echo i18n("--- None ---"); ?></OPTION>

Verfasst: Mi 3. Dez 2003, 10:20
von timo
Additional note: You have to edit the .po/.mo files and if you upgrade, you have to merge your changes.

I don't know how we'll handle this problem in the future, but stay tuned.

Verfasst: Mi 3. Dez 2003, 10:30
von hrj
Hi Timo and emergence,

Thanks for advice.
I have once again looked at functions.i18n.php and found the function you mention.
"Alles klar" :wink:

I am continuing with evaluation and i will probably prepare a small meditation "Contenido & i18n - CMS for Central European countries".
Stay tuned.

Moechtet Ihr die Meditation lieber auf deutsch? :wink:
Ich kann es versuchen, kein hochdeutsch und mit vielen Fehler.

Regards
Jozef

Verfasst: Mi 3. Dez 2003, 10:41
von emergence
egal bischen übung finde ich schadet nicht...