Page 1 of 2
Translations
Posted: 19 Sep 2012, 14:20
by Akbalder
Does anyone know how to correctly handle translations in a gamemode?
Re: Translations
Posted: 19 Sep 2012, 16:13
by w1lla
To allow text translation, you can use compose :
CODE: SELECT ALL
UIManager.UIAll.BigMessage = TextLib::Compose("Hello $<%1$>!", Player.Login);
The text "_Hello $<%1$> !_World" will be sent ( _ is in fact a weird unicode character ). The client will attempt to translate "Hello $<%1$> !", it will find "Salut $<%1$> !", and then replace the "%1". The client will then show : "Salut Gugli !".
http://forum.maniaplanet.com/viewtopic. ... ib#p114405
Re: Translations
Posted: 19 Sep 2012, 16:22
by Akbalder
I saw that but there's no info about where to write the different translations (for sentence that aren't already in the game).
Re: Translations
Posted: 19 Sep 2012, 17:42
by w1lla
Re: Translations
Posted: 19 Sep 2012, 20:08
by Akbalder
I know about TextLib::Compose but it only works to translate sentences which are already in the game.
It doesn't seem to be possible to use it to translate new sentences.
Re: Translations
Posted: 20 Sep 2012, 09:32
by Alinoa
What kind of sentences would you like to add? We created
localisation forums where players can improve ingame translations or report if a translation is missing in their language.
Re: Translations
Posted: 20 Sep 2012, 09:53
by Akbalder
I'm talking about the sentences really specific to a custom gamemode (the rules of the gamemode, the sentences describing the objectives...).
These sentences would only be used by one gamemode so I don't think that they should be handled by Nadeo.
I would like to have the possibility, in Maniascript, to add some new translations specific to a gamemode.
Re: Translations
Posted: 23 Sep 2012, 16:03
by mewin
I had this problem too and wrote a library for that. I hope that helps you with your problem.
Download
Re: Translations
Posted: 24 Sep 2012, 08:56
by Akbalder
Yes, we need a library like this but I think that it should be provided by Nadeo.

Re: Translations
Posted: 24 Sep 2012, 16:07
by mewin
Akbalder wrote:Yes, we need a library like this but I think that it should be provided by Nadeo.

As there is nothing like that by Nadeo I'd say its better than nothing

Its your decision, but I am happy evertime I can help ^^.