iPhone: localization / internationalization default strings file

后端 未结 2 1742
刺人心
刺人心 2021-02-09 16:29

I currently have two supported languages: English and Spanish. Thus I have two main.strings files for each language. One in en.lproj and one in e

相关标签:
2条回答
  • 2021-02-09 16:41

    If you want to avoid this long syntax, I have another solution posted here

    Localizing strings in iOS: default (fallback) language?

    0 讨论(0)
  • 2021-02-09 16:49

    What I want now is that the English main.strings is the default file if a user with a locale other than en or es arrives at the application, e.g. de or fr.

    Did you try that? I’m almost certain the application will fall back to the English locale without you doing anything at all. Even the system dialogs will come up in English unless your application explicitly supports the current locale.

    0 讨论(0)
提交回复
热议问题