Welcome,
Guest
. Please
login
or
register
.
May 02, 2026, 04:58:18 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Localization, getting a translation in another language than the one loaded.
« previous
next »
Print
Pages: [
1
]
Author
Topic: Localization, getting a translation in another language than the one loaded. (Read 6273 times)
breakmachine
Jr. Member
Thank You
-Given: 0
-Receive: 3
Posts: 71
Localization, getting a translation in another language than the one loaded.
«
on:
September 04, 2014, 02:21:35 AM »
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.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Localization, getting a translation in another language than the one loaded.
«
Reply #1 on:
September 04, 2014, 10:48:15 AM »
Why not send the localization key, and have each player localize it themselves using their chosen language?
Logged
breakmachine
Jr. Member
Thank You
-Given: 0
-Receive: 3
Posts: 71
Re: Localization, getting a translation in another language than the one loaded.
«
Reply #2 on:
September 04, 2014, 01:34:14 PM »
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.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Localization, getting a translation in another language than the one loaded.
«
Reply #3 on:
September 05, 2014, 09:27:11 AM »
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.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Localization, getting a translation in another language than the one loaded.