Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: breakmachine on September 04, 2014, 02:21:35 AM

Title: Localization, getting a translation in another language than the one loaded.
Post by: breakmachine 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.
Title: Re: Localization, getting a translation in another language than the one loaded.
Post by: ArenMook 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?
Title: Re: Localization, getting a translation in another language than the one loaded.
Post by: breakmachine 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.
Title: Re: Localization, getting a translation in another language than the one loaded.
Post by: ArenMook 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.