iPhone en_* sublanguage localization

后端 未结 6 1622
故里飘歌
故里飘歌 2021-02-08 14:53

I want to localize strings in my iphone app for en_GB and other \'en\' sub-languages, but XCode and the iphone refuse to let this happen. I have created a localization of \"Loca

6条回答
  •  心在旅途
    2021-02-08 15:46

    When you choose 'English' from the list of languages on the iPhone preferences, that actually means the 'en_US' language.

    So until apple update their software with additional sublanguages like "English (British)" etc. we are left with going by the locale region setting, and loading strings manually from another string table.

    However, the language and regional locale are separated for a reason: a Spanish user in the UK may want dates/times formatted according to the local customs, but program strings in their native tongue. It would be incorrect to detect the regional locale (UK) and therefore display UK strings.

    So basically there is no way to do this currently.

提交回复
热议问题