How to test localization "portuguese brazil"? - iphone

I wonder How to trigger the localization language portuguese-brazil in iphone? (or simulator is all right)?
that's, how can I test Portuguese-Brazil localization on iphone?
I found there's only Portuguese and Portuguese(Portugal) in the international setting but unfortunately neither could be the answer.
Thanks in advance

Well, I am Portuguese, to trigger those, you should put the language as Portuguese. If it's not working on your case, might be a problem related with the code. Try doing the following:
Keep only 1 version of the Localized.strings file as the Portuguese version, remove everything else (just for testing).

Ok, i had the same problem and i just solved it.
Use "Portuguese" instead "Portuguese-Brazil" in your project, and your Portuguese language of device should work fine.
Here is the problem:
I was trying to set the portuguese language with Portuguese-Brazil at the "+" when i selected the project file, and when i changed my device and my simulator (used both to test) language to portuguese (once there is no portuguese-brazil), the text was coming from the default language (english), what means it was not working.
I tried deleting "Portuguese-Brazil" and adding "Portuguese", and it worked when i changed my devices to portuguese language;
I think that is a bug in XCode, that language "Portuguese-Brazil", since the device has no language like that in Settings > General > International> Language of devices, only "Portuguese"

Maybe you're looking at the wrong setting. To change the language in iOS, go to Settings > General > International > Language. There is also Settings > General > International > Region Format but this setting controls things such as date, time and number formats (i.e. locale formats, not localization)
When you change the Language setting, even in the simulator, you will see that the iOS user interface will have changed to the new language. If you then launch your app and you don't see it localized as you expect (assuming that of course you added the localized resources in that language), then something is wrong!

Related

Determine localized language of macOS device?

I want to get the language of the device (macOS). All I found is a bunch of examples for the app itself or the prefered user setting, not the device itself:
Locale.preferredLanguages => ["en", "de-DE"] (I'm using english XCode, non localized app and german macOS)
I want to set the labels of the Finder as extended attributes the same language as the OS itself. For me it is "de", regardless of the localization of the app.
I also found some old tips (5 - 10 years old) which needed a lot of changes in code, but still don't work.
What's the correct function call to get the language used by the OS to set color names like "Rot" or "Red" later on? (e.g. "de" for my setup)
I found an solution:
((Locale.current as NSLocale).object(forKey: NSLocale.Key.languageCode)! as! String)

iOS App doesn't work in other language

My iOS-App was first German and English. As it was just a fault, I removed the English localization. Somehow if I change the language in the iOS Simulator to english not it loads the old storyboard that doesn't even exist anymore. I cleaned the folder and there is now only a base storyboard. Although I cleaned the Project the App is still crashing after start (because it's loading an old storyboard of prior App version (I removed english localization in 1.1, and now in 1.2 it still loads the 1.0 storyboard).
This is really weird, how can I achieve that the App ALWAYS uses the same storyboard, no matter which language? I already removed the english localization!
Thanks very much!
From my understanding based on a previous experience, if you are localizing an application you need to keep the English one. Because it will default to English if the device is not set in the language that you are supporting.
(Have you notice in the setting app how english is always the second choice and that you can't change the order like on the desktop to default to something else before english)
So if you are planning on supporting only 1 language remove all localization into your application. Because other wise it would default to a non-existing asset and crash.
That would be my best guest for a try.
Have you delete the application on your device after all those change and a clean up may be necessary. I've notice that file, (especially not code file) that get deleted have a tendency to lay around the executable.
And if you get file (1) b.xml and (2) fr.lproj/b.xml even if the device if in french the french one (2) won't get used. The system will see (1) first and think there is no localization for that file.
As for "losing" your German Xib. If you take a copy out of your de.lproj (and put that copy up a directory in the file system it should work)

iPhone language setting and localization to Norsk (bokmal)

i have a real weird thing going on. I am trying to get the language settings in my
*strings file for "Norwegian Bokmal - Norway"
to display. But It will not work and always takes the default.
I set the
iPhone language to Norsk (bokmal)
and have the file setup correctly.
This app has already 8 language *string files and Norwegian is the 9th.
Did anybody experience something similar?
I tried 2 different iPhones (both iOS5) and the simulator (iOS4.3) - there is no way my app recognizes the Norwegian strings file - it always shows up with the default language.
Thanks very much!
Did you use the correct language code in your folder structure? I believe it should be "nb".

iOS: Setting primary language for app when localizing

I have built an app for swedish language only. Now I have added multilanguage support (english uk/us, german, spanish) and would like to submit the app to all App Stores in the world.
The problem is that I have chosen swedish as the primary language in Itunes Connect when creating my account.
Reading several threads about this I have come to the conclusion that if I submit the app now, the default language will be swedish for languages I haven't localized. This is a huge problem since there seems to be no way of changing this primary language.
Anyone know what can be done?
On the upside: When using a link in Itunes Connect "Version summary" I can see the language is in english when for example choosing "Slovenia" or any other country that hasn't been localized... Can I trust this really? Not according to several forum threads, example:
https://discussions.apple.com/thread/1678830?start=0&tstart=0
https://discussions.apple.com/thread/1657193?start=0&tstart=0
Thanks
I have now released the app and tried out several different App Stores and it seems like it does take english as the default langauge, not swedish which I have as primary.
This goes against what has been said before in forums and such. Also, Apple called me and we talked about this, but the support person wasn't sure why it worked either :)
For future people coming here, here is how it works for me now:
-I have localized in Itunes Connect for german, spanish and english.
In these App Stores the language will be displayed correctly for each country.
-I have NOT localized for Canada. If I add the app to this app store the language will be in swedish (your primary language).
-A language that is not possible to localize, like estonian, will in fact display my english app description in the Estonian app store. This could have something to do with the "Localization native development region" as Digital Robot stated as a comment.
have you tried this key on the Info.plist? To force iTC to see english as the default language.

iOS localization with region (de_LU) [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
iPhone App Localization - English problems?
I am working on an App for iOS devices. I made it available for English (en) and German (de). That works fine with localization. Now I want to create a specified localization for German with region Luxemburg: German (Luxemburg) or de_LU.
I added it into my Localizable.strings but nothing happened... I deleted the cache, I reinstall the app serval times: Nothing. He ignores that.
My iPhone is configured with the German language and Luxemburg as region.
Where is the problem? Or is it impossible to do that?
It is possible, to localize into that culture you should have a de-LU.lproj folder, is that the case?
A typical application has at least one strings file per localization, that is, one strings file in each of the bundle’s .lproj subdirectories. The name of the default strings file is Localizable.strings but you can create strings files with any file name you choose.
(Quoting Apple documentation)
If you're using Xcode 4, just go to project settings, Info tab, then add your localization from there, it will setup the project accordingly for you.
Also note that Apple recommends that you save strings files using the UTF-16 encoding
Check for region & language in code. If language German & region Luxemburg then keep new key for localization.And initialize that key in German language localized file. It is working for me.
Unfortunately, I believe that supporting dialects is currently impossible in iOS 4.