Hi,
Is it possible to add translations for special keys, example: _("MyRules"), available in English/French etc...
Translations
Moderator: NADEO
- djhubertus
- Translator
- Posts: 1097
- Joined: 09 Jul 2012, 18:30
- Location: Poland
- Contact:
Re: Translations
It's not possible to add multilingual phrases. You can only use phrases located in localization files.
My Gamemodes:
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib
- djhubertus
- Translator
- Posts: 1097
- Joined: 09 Jul 2012, 18:30
- Location: Poland
- Contact:
Re: Translations
My Gamemodes:
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib
Re: Translations
Ok, I cant use this ^^
I will try to do a crappy thing.
It must be easy no ? :s
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)
}
Re: Translations
You could use <dico>
Example:
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>
Who is online
Users browsing this forum: No registered users and 1 guest