Translations
Moderator: English Moderator
Translations
Does anyone know how to correctly handle translations in a gamemode?
- w1lla
- Posts: 2287
- Joined: 15 Jun 2010, 11:09
- Manialink: maniaplanetblog
- Location: Netherlands
- Contact:
Re: Translations
http://forum.maniaplanet.com/viewtopic. ... ib#p114405To 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 !".
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
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
Re: Translations
I saw that but there's no info about where to write the different translations (for sentence that aren't already in the game).
- w1lla
- Posts: 2287
- Joined: 15 Jun 2010, 11:09
- Manialink: maniaplanetblog
- Location: Netherlands
- Contact:
Re: Translations
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
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
Re: Translations
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.
It doesn't seem to be possible to use it to translate new sentences.
Re: Translations
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...)
Your Player Page
More information about maniaplanet, support, contents, community activities: useful links
ManiaPlanet technical documentation portal (Dedicated server, Mediatracker, ManiaLink, ManiaScript, Titles...)
Re: Translations
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.
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
I had this problem too and wrote a library for that. I hope that helps you with your problem.
Download
Download
Re: Translations
Yes, we need a library like this but I think that it should be provided by Nadeo. 

Re: Translations
As there is nothing like that by Nadeo I'd say its better than nothingAkbalder wrote:Yes, we need a library like this but I think that it should be provided by Nadeo.

Its your decision, but I am happy evertime I can help ^^.
Who is online
Users browsing this forum: No registered users and 1 guest