iPhone: NSLocalizedString reading from English .strings file even when another lang is set

后端 未结 5 1696
一个人的身影
一个人的身影 2021-01-06 07:53

I have an app that has some non-US Localizable.strings files. They appear in the project as I expect them to: there\'s a Localizable.strings object, and sub objects for \"en

5条回答
  •  隐瞒了意图╮
    2021-01-06 08:39

    It can also help to uninstall the application from the simulator after localizing a .NIB, as the localized version will have two (or more) new files in new locations (like, 'en.lproj', 'fr.lproj'). However, when you build to the simulator, it's too stupid to know to delete the old .xib file, so it'll keep loading the old stale xib file, not your new localized version until you clean the device out by reinstalling the app.

提交回复
热议问题