Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: [Bug] App name having TWO Chinese languages

[Bug] App name having TWO Chinese languages 6 months 1 week ago #2267

  • fur
  • fur's Avatar
  • Offline
  • New Member
  • Posts: 11
  • Thank you received: 1
  • Karma: 1
Currently in post-process, I2 get the language codes with:
LocalizationManager.GetAllLanguagesCode(allowRegions=false)

This breaks the app name localization for languages such as Chinese Traditional[zh-TW] + Chinese Simplfied[zh-CN], merging them into Chinese[zh]. iOS didn't do a fallback and so didn't localize the app name but keep it as English (default Unity set app name).

Simple solution is just make allowRegions=true, I am not sure if this will affect others, but for me Chinese is the only language having 2 regions. e.g. I use Spanish[es] ONLY for Spanish, not other regions. I assume all developers are same as me?
Last Edit: 4 months 1 day ago by fur.
The administrator has disabled public write access.

[Bug(?)] PostProcess - GetAllLanguagesCode regions 6 months 6 days ago #2273

  • fur
  • fur's Avatar
  • Offline
  • New Member
  • Posts: 11
  • Thank you received: 1
  • Karma: 1
I can confirm that using
LocalizationManager.GetAllLanguagesCode(true)

Fails Android build, because Android doesn't like value-zh-CN, following the this and this, I need hard code this for now:
string c = code;
if (c == "zh-CN")
    c = "zh-rCN";
else if (c == "zh-TW")
    c = "zh";

string dir = pathToBuiltProject + "/res/values-" + c;

After this build success, but haven't tried the app name localization is working yet...
Last Edit: 6 months 6 days ago by fur.
The administrator has disabled public write access.

[Bug(?)] PostProcess - GetAllLanguagesCode regions 6 months 6 days ago #2274

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 915
  • Thank you received: 196
  • Karma: 58
Hi,
Thanks for letting me know, I will test this tomorrow and correct the code for the cases where IOS or Android could fail.
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
The administrator has disabled public write access.

[Bug(?)] PostProcess - GetAllLanguagesCode regions 4 months 1 day ago #2392

  • fur
  • fur's Avatar
  • Offline
  • New Member
  • Posts: 11
  • Thank you received: 1
  • Karma: 1
Updated to 2.7.0 and TWO Chinese problem in Android still not take care of, and I need to manually change the script again....

There should be 3 values folders for Chinese:
zh-rCN (Simplified Chinese)
zh-rTW (Traditional Chinese)
zh (Traditional Chinese)

More info can be found in this post

And these are my languages:
Last Edit: 4 months 1 day ago by fur.
The administrator has disabled public write access.

[Bug(?)] PostProcess - GetAllLanguagesCode regions 4 months 1 day ago #2393

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 915
  • Thank you received: 196
  • Karma: 58
I added a fix for this, its included in the latest beta (2.8.0 a3), but haven't released it to the AssetStore yet.
The new version includes lots of new stuff that I'm still testing, hope to be able of releasing it in a week or so.
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
The administrator has disabled public write access.

[Bug] App name having TWO Chinese languages 1 month 3 weeks ago #2525

  • fur
  • fur's Avatar
  • Offline
  • New Member
  • Posts: 11
  • Thank you received: 1
  • Karma: 1
I think you fixed Android but forgot iOS....

in PostProcessBuild_IOS.cs line 21, it should be:
var langCodes = LocalizationManager.GetAllLanguagesCode(true);

Currently only ONE zh folder is generated (which is recognized as Simp.Chinese, so Trad.Chinese won't be translated and fell back to English):


After change TWO folders are here and Trad.Chinese is correctly shown:
Last Edit: 1 month 3 weeks ago by fur.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.119 seconds
Colors