Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

CFBundleLocalizations – Traditional Chinese?
Started by philipp3 Sep 12 2018 03:20 AM

1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

philipp3

[GLOBAL: userInfoPane.html]
philipp3
  • Enthusiast

  • 51 posts
  • Corona SDK

Hello,

 

The CFBundleLocalizations takes two-digit localization strings. However, I need to add both simplified Chinese and traditional Chinese. When I add "zh", simplified Chinese is activated. How do I add traditional Chinese?

 

Context: I think system.getPreference("locale", "language") can only be called when the language is activated in build.settings, otherwise it will return your default language.



[TOPIC: post.html]
#2

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Contributor

  • 765 posts
  • Corona SDK

Not sure if you are interested but I have been using GBC Language Cabinet and I don't put anything in my build settings. 

 

https://marketplace.coronalabs.com/corona-plugins/gbc-language-cabinet

 

To get the language I use:

 

 

 

GBCLanguageCabinet.getDeviceLanguage()

This is a helper function that will return the 2 character language code currently set on the device.




[topic_controls]
[/topic_controls]