Having trouble setting language [solved]
6 years 7 months ago - 6 years 7 months ago #3018
by cephalo
Having trouble setting language [solved] was created by cephalo
Using
LocalizationManager.CurrentLanguageCode = "fr";
does not change the language in my game. Am I supposed to do something else to update scenes with the new language?
LocalizationManager.CurrentLanguageCode = "fr";
does not change the language in my game. Am I supposed to do something else to update scenes with the new language?
Last edit: 6 years 7 months ago by cephalo.
Please Log in or Create an account to join the conversation.
6 years 7 months ago #3020
by Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic Having trouble setting language [solved]
Just to be sure:
- Does your I2Languages.prefab has a language with the code "fr"?
- Is the only language source you are using the I2Languages.prefab or do you have any source instantiated in your scene?
- Does your I2Languages.prefab has a language with the code "fr"?
- Is the only language source you are using the I2Languages.prefab or do you have any source instantiated in your scene?
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
To get the betas as soon as they are ready,
check this out
Please Log in or Create an account to join the conversation.
6 years 7 months ago - 6 years 7 months ago #3021
by cephalo
Replied by cephalo on topic Having trouble setting language [solved]
Yes, the language is called 'French' with code 'fr'.
I have six languages, French being one of those, and none of them change the language.
I am using only the one Language Source in the recommended place in I2>Resources. I did recently update I2, but I did not find another one with the new package.
I am running that code in a button, one for each language, and the code is executing as I can print to the debug log inside the button handler that contains the change language code.
EDIT: It's working now! I believe it wasn't working because I had recently added all the languages. Now that I have shut down the Unity editor and reloaded the project it is working.
I have six languages, French being one of those, and none of them change the language.
I am using only the one Language Source in the recommended place in I2>Resources. I did recently update I2, but I did not find another one with the new package.
I am running that code in a button, one for each language, and the code is executing as I can print to the debug log inside the button handler that contains the change language code.
public void OnFrench()
{
print("switching to French");
LocalizationManager.CurrentLanguageCode = "fr";
}
EDIT: It's working now! I believe it wasn't working because I had recently added all the languages. Now that I have shut down the Unity editor and reloaded the project it is working.
Last edit: 6 years 7 months ago by cephalo.
Please Log in or Create an account to join the conversation.
6 years 7 months ago #3022
by Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic Having trouble setting language [solved]
weird! haha.
Please, let me know if the problem continue!
Thanks,
Frank
Please, let me know if the problem continue!
Thanks,
Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
To get the betas as soon as they are ready,
check this out
Please Log in or Create an account to join the conversation.
Time to create page: 0.130 seconds