iPhone language setting and localization to Norsk (bokmal) - iphone

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".

Related

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)

How to test localization "portuguese brazil"?

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!

IPhone sdk: Internationalization doesnt works

Recently I have made intenationalization support for my project.
But there occurs strange thing - when I'm running my application both on the device and emulator shows only 'default' language.
I've done following things:
Used NSLocalizedString everywhere
added InfoPlist.strings (another language)
May be I'm missing something ?
Thanks.
You should store your localized strings in Localizable.strings. Localized InfoPlist.strings is used to change the name of your app for example.

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.

iPhone Localization without English

I have an app that's only supported in Dutch and French. English is not an available language for this app.
If I want to use localizable strings, the default always gets set on English. I want this to be dutch.
So what I did was use the English localizable strings file and fill it up with dutch words. Only problem I have is that it shows English as a supported Language in the App Store. Is there any way to change the default Localizable Strings file to Dutch so that the only two languages that show up are Dutch and French?
Thanks in advance,
Lewion
You should rename the folder where your dutch files lay in from en.lproj to nl.lproj. Everything should still work then but the language will get recognized correctly. You may have to tell Xcode about the new location of the files.
[[NSUserDefaults standardUserDefaults]
setObject:[NSDictionary
dictionaryWithObject:[NSArray arrayWithObjects:#"nl", nil]
forKey:#"AppleLanguages"]];
That will make Dutch the default language.
Create Dutch and French by standard means and delete English.lproj from the app after building, for example as a build phase, as described here (2nd paragraph).