Xcode localization issue - ios

I am new to Xcode swift programming and have developed an app with german as my development and base language. I did this by setting developmentRegion = de; in my project.pbxproj file.
Later on I added an english localization which works fine and I also set Localization native development region to English in the info.plist file. The reason is because the language should be english in all other regions which are not german.
Now I have the problem that if I switch the device language back to german the app will appear in english too.
How can I fix that?

Related

Swift iOS 11 Beta Today Widget infoPlist.Strings Not Localizing

I have been using the Today Widget in my Swift program and have not had any issues, until I started using iOS 11 beta. Since then the Bundle Display Name is not getting localized. Within my Info.Plist I have:
<key>CFBundleDisplayName</key>
<string>NSLocalizedString(CFBundleDisplayName, nil)</string>
And in my InfoPlist.Strings files I have
"CFBundleDisplayName" = "Recent Chats";
If I display the widget on anything before iOS 11 beta, the String is localized properly, however when I use an iOS 11 beta device, the String NSLocalizedString(CFBundleDisplayName, nil) is displayed.
Does anyone know of a change in iOS 11 beta or bug that could be causing this issue?
Did you test on ios 11 simulator or real device? If you test on simulator, Please change simulator language from Settings>General>Language&Region in simulator.
Another interesting thing which i realize that if you use base.lproj as only English version and there is no such a English localization, when simulator language is changed to Enlish(U.S) or English(U.K), InfoPlist.Strings (Base) value is not shown.

Japanese Strings are not displayed when device region and language are set to Japan

Problem: Japanese Strings are not displayed when device region and language are set to Japan.
I've described my project environment below
Environment:
• Device settings:
- iPhone language is set to Japanese and region is set to Japan
Xcode settings:
- Select the project in the project navigator, Targets and open the info and
set to Japan in Localization native development region
• iOS version: 9.0 or up
Expectation: App name and LocalizedStrings should be displayed as Japanese language
Actual result: App name is displayed by English and Strings are key values of NSLocalizedString.
In Info.plist file, if I change value from ja_JP to ja in CFBundleDevelopmentRegion, then I get Japanese string. I want to know why ja_JP is not working on iOS 9 or up?
Below iOS 9, ja_JP is worked fine and I get Japanese strings and Japanese app name also.

iOS Xcode 5 Base internalization does nothing

I'm trying to use Base internalization to localize my app. What I did - I made two .strings files for English and Russian version (Xcode did it for me), but when I change any string in MainStoryboard.strings(English), with the iPhone to English locale and launch app in debug mode nothing happens, all strings are still in Russian. What Im doing wrong ?

Changing language on iOS 8.1 simulator does not work

If I change the language on an iOS 8.1 simulator to anything and try to detect this from code with
NSString * language = [[NSLocale preferredLanguages] objectAtIndex:0];
NSLog(#"Language: %#", language);
I get "en" back. I've tried resetting the navigator, etc. I've tried this using the iOS 7.1 runtime (in Xcode 5.1.1), and it worked fine. Has anyone managed to find a workaround to this problem?
According to the release notes this is a known issue. There is a work around.
If you go to "Edit Scheme..." then the "Options" tab there's an "Application Language" option. This only affects the current run settings, not the app, much like changing the language of the device.
Another dupe of iOS8.1 Simulator always uses US keyboard layout despite german hardware keyboard
Known and documented bug as mentioned in the Xcode 6.1 release notes. File a radar if you want to add your +1 to the complaint list at http://bugreport.apple.com
My simulator is in French language. When I want to check interface in English then changing the iphone language is not enough. I have to switch the region settings minimum two times.
use [[NSLocale availableLocaleIdentifiers]
In my case, editing schema works for region but not for language.
It looks overwrite by development language.
Changing developmentRegion works fine with project.pbxproj like this.
developmentRegion = ja;
Xcode Version 11.3.1 (11C504)
iPhoneX iOS 13.3.1

Localize Settings.Bundle in Xcode 5

I can't be able to localize Settings.Bundle in Xcode 5.
When I create it only show the English localization.
I would like to add Italian localization but I have no ideas...

Resources