localised.string in a language that is not available in settings - ios

I am creating an app and I have some translations.
The app is programmed to detect the ios language and most of the languages are in the settings, except Slovenian.
Is there any other way to do that.
Perhaps read region format?
Or, how to add a list.

While the OS itself my not support the language (iPhone Language setting) you can still use the below option in Settings to Add Languageā€¦ to add the language to your preferred list of languages. Then if an app supports that language it still will even if the OS does not (ie. The OS's strings aren't translated).

Related

Additional languages are shown in supported languages, although only one language is supported in iOS

I recently uploaded an app to the app store. During earlier stage it required to be supporting 5 Languages and I added the strings file for it. But retracted later with language support in current version need to be supported in English only. After successfully pushing the app, the iTunes is showing supported languages as English + 4 additional languages. Can I edit the settings to show support language only as English? Do I need to delete localizable strings for other languages and submit again?
Yes, it will pick localization support from project settings. As many languages one adds to that setting, that many strings files will be generated. I would suggest to use English in project settings and remove the other languages locations files.
Refer below image: in the Localizations section, there should be only those languages which app is going to support.

Localisation Language settings iPhone

I have added two language localisation in my iOS project
Spanish(es)
Argentinean Spanish (es-AR)
In my iPhone language setting i have checked 'esponal' but it loads the Spanish(es) strings.
Now i need to check the Argentinean Spanish too. So what settings i need to do in my iPhone to check Argentinean Spanish.
You need to set the iPhone region settings to Argentina.
Edit:
Actually, it look slike this is not supported on iOS:
Important: In iOS, the bundle interfaces do not take dialect or script information into account when looking for localized resources; only the language designator code is considered. Therefore if your project includes language-specific project directories with both a language and region designator, those directories are ignored. The bundle interfaces in OS X do support region designators in language-specific project directories.
https://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPInternational/Articles/LanguageDesignations.html#//apple_ref/doc/uid/20002144-BBCEGGFF

iOS Bundle Display Name - en-GB and en-US

Context:
We are developing an iOS app that has the word Math/Maths in it. This needs to change depending if the device's language is English or British English.
Problem:
So, I have two InfoPlist.string files for en-GB and en-US and in the iOS simulator the App displays either an en-GB or en-US App name depending if the language was set to English or British English. However, it's very glitchy (sometimes working, sometimes not) and according to Apple's Dev guide it's not (or shouldn't be) possible! That's not to say the doc isn't outdated or wrong.
From: https://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPInternational/Articles/LanguageDesignations.html#//apple_ref/doc/uid/20002144-BBCEGGFF
Important: In iOS, the bundle interfaces do not take dialect or script
information into account when looking for localized resources; only
the language designator code is considered. Therefore if your project
includes language-specific project directories with both a language
and region designator, those directories are ignored. The bundle
interfaces in OS X do support region designators in language-specific
project directories.
Am I on a wild goose chase and it's not actually possible or it is, and just very buggy? If it is possible, how?
You are right. It is not possible automatically. For localizeng the os looks for the language, not for the region. So it just takes into account the en. But the good news is that there is a indirect solution which requires little effort: check the approved answer here.

can I change an app's language based on an iOS Device's default language?

I have Created one simple in-house app for ipads. I would like to have 2 language for that app. Based on ipad default language App language should be same as ipad default language.
I tried to goggling it but didn't find proper answer.
Is it possible?
How can I do that?
Any Links, examples any documents?
You can use TSLanguageManager SDK in order to do that. In basic, you define different string for each languages. Then the SDK checks your language and converts your defined strings/view elements into that language string. Also, you can switch between language by using this SDK in your app.
This is a good starting point for internationalization and localization resources for iOS apps.

Xcode - iOS 4 system messages appear in wrong localization (English even though language is set to German)

I'm building an iPad app for a German customer. The app is not planned to support any languages other than German so I didn't use any of Xcode's localization functionality but simply hard coded the strings.
My problem is the following: The entire app now is in German except for the system messages that (I suspect) come from iOS itself like copy, paste, cut in a text field. This happens in spite of the language of iOS being set to German in the system preferences. I always thought the handling of that was entirely up to the user so that he would see those kinds of messages in whatever language he chose in the system preferences. Apparently that's not the case.
Can anyone give me a hint what I need to change in order to have those messages displayed in German?
TIA!

Resources