Author Topic: How to change Language at Run Time  (Read 5110 times)

Magic Frame

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
How to change Language at Run Time
« on: June 24, 2014, 12:13:09 PM »
Hi, I using NGUI 3.0.2 , I would like to know how I can change the language at runtime, I want to create a scene that contains the flags of different countries and if you touch a flag of Spain to change the texts to Spanish, Possible?

Another question, how can I detect the device language and the language automatically change the language of the phone.

P.D: my game is for iOS, Android and Facebook

Darkmax

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 1
  • Posts: 93
    • View Profile
Re: How to change Language at Run Time
« Reply #1 on: June 24, 2014, 04:40:43 PM »
Localization.language = "key_language"; is to change the language at run time.

To check the language of the device I recomend you to check the forums and documentation of unity, to check if there is a method to get that info.

http://docs.unity3d.com/ScriptReference/index.html
http://unity3d.com/community

These sites have more info about the methods of unity.