2D Toolkit Forum

2D Toolkit => Support => Topic started by: Siddharth3322 on December 17, 2014, 11:30:22 am

Title: Add multiple languages for text
Post by: Siddharth3322 on December 17, 2014, 11:30:22 am
For my game, I want to add support for multiple languages such as french, chinesse etc.
At present game exist in english language.

What to do from here? I have created all texts using tk2dTextMesh component. I need your help in this.
Title: Re: Add multiple languages for text
Post by: unikronsoftware on December 17, 2014, 12:05:39 pm
tk2dTextMesh doesn't do localization, but should be pretty straightforward to roll your own. On startup simply replace the text with what it needs to be - you'll need a font with all the characters you'll need though, so chinese might be bit of an issue.
Title: Re: Add multiple languages for text
Post by: Siddharth3322 on December 17, 2014, 12:09:00 pm
I understand what you said.
At present, I am using .png and .fnt file for English language.
So as per your suggestion I need different .png and .fnt file for multiple languages.
Am I right?
Title: Re: Add multiple languages for text
Post by: unikronsoftware on December 17, 2014, 12:17:43 pm
Yes you can do it that way, you can also include all the characters into one fnt and png
Title: Re: Add multiple languages for text
Post by: unikronsoftware on December 17, 2014, 12:18:42 pm
Also, make sure you register your copy of 2D Toolkit, you've been on the forum for a long time.