Hello Guest

Author Topic: Add multiple languages for text  (Read 4115 times)

Siddharth3322

  • Newbie
  • *
  • Posts: 29
    • View Profile
Add multiple languages for text
« 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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Add multiple languages for text
« Reply #1 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.

Siddharth3322

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Add multiple languages for text
« Reply #2 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?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Add multiple languages for text
« Reply #3 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

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Add multiple languages for text
« Reply #4 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.