0

I have added two language localisation in my iOS project

  1. Spanish(es)
  2. 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.

Cintu
  • 913
  • 2
  • 16
  • 32

1 Answers1

2

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

slecorne
  • 1,720
  • 1
  • 11
  • 14
  • I have changed the region to Argentina, but still the app loads the Normal Spanish – Cintu Nov 22 '13 at 07:16
  • "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 – slecorne Nov 22 '13 at 07:22
  • What does it mean? There is an option in xcode for adding Argentinean spanish. So how can i test the added language localisation texts? – Cintu Nov 22 '13 at 07:24
  • From what I understand, this feature only works on OSX, you cannot use it on iOS – slecorne Nov 22 '13 at 07:24
  • Then we cannot use Argentinean Spanish (es-AR) for iphone apps? Is there is any possibility or any other way i can support the Argentanian language for my iphone app? – Cintu Nov 22 '13 at 07:33
  • Look here, sounds a bit like a hack though: http://stackoverflow.com/questions/3308519/iphone-app-localization-english-problems – slecorne Nov 22 '13 at 07:43
  • Awesome.. Is apple accepts my app if i add this code in main.m? – Cintu Nov 22 '13 at 07:46
  • It looks like it is using only official API so no reason to be rejected – slecorne Nov 22 '13 at 07:47