Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Project Localized to Portuguese (Brazil), why still show English?

My Xcode project is localized to "Portuguese (Brazil)", then I tried to set language to "Portuguese" and "Portuguese (Portugal)" on device and simulator, but the interface still show English, what's wrong?

Other localized languages work well, only Brazil failed to work. I wonder what language setting would Brazil people choose?

like image 590
RRN Avatar asked Jan 27 '14 13:01

RRN


2 Answers

I asked some coders, in Xcode, they just localize to "Portuguese" and skip "Portuguese (Brazil)". No idea why Apple would make such a difference between iOS and Xcode.

like image 166
RRN Avatar answered Nov 15 '22 18:11

RRN


Today I had the same issue and I am able to make my project work correctly now. I would say this is happening because of the way xCode provides us options to select Portuguese Brazil.

Actually this line from Apple Documentation helped me:

The language ID for scripts or dialects uses subtags, as in pt-PT where pt is the code for Portuguese and PT is the code for Portugal. For example, use pt as the language ID for Portuguese as it is used in Brazil and pt-PT as the language ID for Portuguese as it is used in Portugal.

For Brazil Portuguese select only Portuguese language (pt) and not Brazil Portuguese. For Portugal Portuguese, you can select Portuguese Portugal (pt-PT). It will work.

Thanks.

like image 43
helloWorld Avatar answered Nov 15 '22 18:11

helloWorld