Page 1 of 1

Translations

Posted: 25 Dec 2013, 19:20
by mrbantinr
Hi,

Is it possible to add translations for special keys, example: _("MyRules"), available in English/French etc...

Re: Translations

Posted: 26 Dec 2013, 15:49
by djhubertus
It's not possible to add multilingual phrases. You can only use phrases located in localization files.

Re: Translations

Posted: 27 Dec 2013, 01:35
by mrbantinr
Ok, where I can see this ?

Re: Translations

Posted: 27 Dec 2013, 12:48
by djhubertus
http://www21.zippyshare.com/v/93508292/file.html

Open this file with PoEdit or with Notepad++.

Re: Translations

Posted: 28 Dec 2013, 00:06
by mrbantinr
Ok, I cant use this ^^

I will try to do a crappy thing.

Code: Select all

declare str = _("Hello");
if (str == "Aide")
{
   //load the french xml
} else
{
   //load default language (english)
}
It must be easy no ? :s

Re: Translations

Posted: 28 Dec 2013, 10:20
by spaii
You could use <dico>

Example:

Code: Select all

<dico>
   <language id="en">
      <inv>Inventory</inv>
      <info>Info</info>
   </language>
   <language id="ru">
      <inv>Инвентарь</inv>
      <info>Инфо</info>
   </language>
</dico>
<label valign="center" halign="center" posn="-50 45 0"  textid="inv" />
<label valign="center" halign="center" posn="100 45 0"  textid="info" />
<script><!--   
--></script>

Re: Translations

Posted: 30 Dec 2013, 18:41
by mrbantinr
Wow thx !