We have a Mac OS project that uses NGui for localization via CSV file. Works great. For the same project we also use Mac App Store Toolkit. The symptom - after applying the toolkit, no more localization. Everything is in English (default language for my locale). We have one class (MainMenu.cs) that sets up localization. Here is the code executed from Awake ():
Localization.language = "English";
if (Localization.knownLanguages != null) {
for (int i = 0, imax = Localization.knownLanguages.Length; i < imax; ++i) {
if (string.Equals (Application.systemLanguage.ToString(), Localization.knownLanguages)) {
Localization.language = Application.systemLanguage.ToString();
break;
}
}
}
If we attach MainMenu.cs to MainCamera and build - localization works. Once we apply Mac App Store Toolkit, no more localization.
If we attach to UIRoot(2D) and build - localization works. If we apply Mac App Store Toolkit, localization still works.
I worked all afternoon with the author of the toolkit trying to fix the broken localization. Only by accident did we find out, that it mattered where MainMenu.cs was attached. Since the toolkit has no runtime component, this shift in execution was unexpected.
Now it is fairly trivial for me to just attach the localization setup differently for our upcoming release. But it would be good to know what the heck is going on. Here are some params:
Mac OS 10.9.4, latest UT Pro version, NGui 3.7.0 - 3.7.2, current Mac App Store Toolkit
I have a demo project if needed.