Author Topic: Localization, getting a translation in another language than the one loaded.  (Read 6276 times)

breakmachine

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 71
    • View Profile
Is there any way of getting a text in another language than the one set in Localization? For example. I want to send a notification to a friend who speaks another language. So I want to get the notification-text in his language rather than mine without changing language completely.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Why not send the localization key, and have each player localize it themselves using their chosen language?

breakmachine

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 71
    • View Profile
Because I'm using notifications which can be delivered straight to the OS if the app is closed. Which means I can't intercept and translate it.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Well, NGUI was designed with a chosen language in mind. In your case if you want to get the value of a different language, you will need to access Localization.dictionary, and get the values from there.