Smartling / ios-i18n

The ios-i18n library provides seamless integration of plurals into iOS 6 apps.
http://www.smartling.com
Apache License 2.0
205 stars 41 forks source link

Correctly handle string table names with fallback langs #12

Closed JensAyton closed 10 years ago

JensAyton commented 10 years ago

In the case of dialect locales like es-MX (with a language list like "es_MX", "es-MX", "es", "English") the old code had two interrelated problems:

paiv commented 10 years ago

Hi @JensAyton , To confirm - you have this issue on OS X, correct? iOS ignores directories with dialect specifier.

JensAyton commented 10 years ago

It does not; we successfully use es_MX.lproj on iOS 7 with no special effort. By installing an app with an es_MX localization, “Español (Mexico)” appears in International prefs. (We also use it on iOS 6 by manipulating the locale.)