Author Topic: Localization language  (Read 6526 times)

vip_prizrak_3

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 31
    • View Profile
Localization language
« on: September 10, 2015, 09:14:19 AM »
Hi! Please help.
Can I change in runtime the language of localization?

In Start() I set default language:
Localization.language = "some language 1";

And then in the runtime I want to change it
Localization.language = "some language 2";

But the language has not changed, it is required to restart the game.

I use NGUI 3.9.1 and Unity 5.1. Prior to that I used ngui 3.7 and there it was possible to do that.

 

Holy Manfred

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 8
  • Posts: 71
    • View Profile
Re: Localization language
« Reply #1 on: September 10, 2015, 12:43:54 PM »
I use 5.2.0f3 and NGUI 3.9.2 and it works fine for me. Maybe the language string is incorrect or something?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Localization language
« Reply #2 on: September 13, 2015, 05:48:17 AM »
Indeed works fine in 3.9.2. NGUI has an example that tests localization and has a drop-down that changes the language.

vip_prizrak_3

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 31
    • View Profile
Re: Localization language
« Reply #3 on: September 15, 2015, 08:25:55 AM »
Thank you.
I have every language localization was in a separate file, because this was a problem.