Translations

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Akbalder
Posts: 1059
Joined: 15 Jun 2010, 11:00
Contact:

Translations

Post by Akbalder »

Does anyone know how to correctly handle translations in a gamemode?
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Translations

Post 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
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
Akbalder
Posts: 1059
Joined: 15 Jun 2010, 11:00
Contact:

Re: Translations

Post 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).
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Translations

Post by w1lla »

TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
Akbalder
Posts: 1059
Joined: 15 Jun 2010, 11:00
Contact:

Re: Translations

Post 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.
User avatar
Alinoa
Posts: 4582
Joined: 14 Jun 2010, 11:55
Location: France, Paris
Contact:

Re: Translations

Post 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.
Ubisoft Support
Your Player Page

More information about maniaplanet, support, contents, community activities: useful links

ManiaPlanet technical documentation portal (Dedicated server, Mediatracker, ManiaLink, ManiaScript, Titles...)
Akbalder
Posts: 1059
Joined: 15 Jun 2010, 11:00
Contact:

Re: Translations

Post 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.
mewin
Posts: 24
Joined: 15 Aug 2012, 14:45
Contact:

Re: Translations

Post by mewin »

I had this problem too and wrote a library for that. I hope that helps you with your problem.

Download
Akbalder
Posts: 1059
Joined: 15 Jun 2010, 11:00
Contact:

Re: Translations

Post by Akbalder »

Yes, we need a library like this but I think that it should be provided by Nadeo. :)
mewin
Posts: 24
Joined: 15 Aug 2012, 14:45
Contact:

Re: Translations

Post 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 ^^.
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest