Translations

Discuss everything related to custom data creation.

Moderator: NADEO

Post Reply
mrbantinr
Posts: 7
Joined: 10 Jul 2013, 07:18

Translations

Post by mrbantinr »

Hi,

Is it possible to add translations for special keys, example: _("MyRules"), available in English/French etc...
User avatar
djhubertus
Translator
Translator
Posts: 1097
Joined: 09 Jul 2012, 18:30
Location: Poland
Contact:

Re: Translations

Post by djhubertus »

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
mrbantinr
Posts: 7
Joined: 10 Jul 2013, 07:18

Re: Translations

Post by mrbantinr »

Ok, where I can see this ?
User avatar
djhubertus
Translator
Translator
Posts: 1097
Joined: 09 Jul 2012, 18:30
Location: Poland
Contact:

Re: Translations

Post by djhubertus »

http://www21.zippyshare.com/v/93508292/file.html

Open this file with PoEdit or with Notepad++.
My Gamemodes:
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib
mrbantinr
Posts: 7
Joined: 10 Jul 2013, 07:18

Re: Translations

Post 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
User avatar
spaii
Posts: 1075
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

Re: Translations

Post 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>
mrbantinr
Posts: 7
Joined: 10 Jul 2013, 07:18

Re: Translations

Post by mrbantinr »

Wow thx !
Post Reply

Return to “Title Pack & Custom Data Creation”

Who is online

Users browsing this forum: No registered users and 1 guest