Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6778633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:17:19+00:00 2026-05-26T16:17:19+00:00

I have and XCode project with a list of supported languages. By default, XCode

  • 0

I have and XCode project with a list of supported languages. By default, XCode only lists 4 default languages when you click on “Add Localization” on the Localized Group info window. I just followed a sample project and added Localizations in a mix of full language names and some using the what I think is ISO 639-1 notation. What is weird is this:

I added a localization name “zh_CN” (just imitated the existing project) for Simplified Chinese. When the project is compiled, it has the .app/Contents/Resources/zh_CN.lproj/Localizable.strings. I change the system’s language to Simiplified Chinese and run the app. Voila, it works and gets the Simplified Chinese Localizable.strings.

However, if I use NSLocale’s API, I get “zh-Hans”. “zh_CN” strings were loaded yet NSLocale returns “zh-Hans”.

How does the Mac OS determine to use the “zh_CN” strings when using Simplified Chinese as the locale? Is there an API to know that the current system language will use the “zh_CN”?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:17:20+00:00Added an answer on May 26, 2026 at 4:17 pm

    zh_CN is a old way to indicate Simiplified Chinese.
    and now it’s better to use “zh-Hans” instead. (in order to support old vernon of iOS and OSX, I think Apple will still support old style names like zh_cn.

    (this document “Language and Locale Designations” explains everything :D)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Xcode project with the following group structure: ProjectName/ Classes/ class1.h class1.m
I have an XCode project where when I click on Project->Edit Project Settings I
I have an Xcode project with several static library dependancies set up in the
I have developed a view based project in Xcode. It is successfully running in
I have started a project from an XCode template I have created. When I
I have made a ViewController in XCode for an iPhone project I'm working on,
I have an xcode project which has 2 classes - Stem & Player, I'm
I have created an xcode project. Now I want to give .app file to
I have an Xcode 4 project that uses the Google Analytics SDK. The SDK
I have a 3.1 xcode project that has been running my app just fine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.