NSLocalizedString not defaulting to Base language

后端 未结 4 2127
情话喂你
情话喂你 2021-02-20 09:20

I have the following problem with a small iOS 7 project on which I\'m testing the localisation capabilities.

  • I have a default project, with one VC, in which I have
4条回答
  •  我在风中等你
    2021-02-20 09:52

    the order of default languages is a user setting on OSX and not editable (AFAIK) on iOS
    BUT still adhered to!

    the app is passed the array AppleLanguages (or so..) that specifies the languages to try. The NSLocalizedString macro will try load each language in the array in the order they appear UNTIL it finds a working one and then it uses that

    compare: How to force NSLocalizedString to use a specific language

提交回复
热议问题