如何摆脱旧的 Localized.strings?
所以我有这个应用程序已经在应用程序商店中。为了获得对多语言本地化的支持,我们最近更改了本地化配置。
旧配置:
./Localizable.strings
新配置:
./Swedish.lproj/General.strings
./Swedish.lproj/Localizable.strings
./Swedish.lproj/Settings.strings
如果我删除旧版本并安装新版本,一切都会按预期工作,但如果我在安装新版本时将旧版本保留在手机上,则 ./Swedish.lproj 中的翻译/Localized.strings
将不可见。所以在我看来,旧的 ./Localized.strings
仍然留在手机上,隐藏了新的 ./Swedish.lproj/Localizes.strings
。 ./Swedish.lproj/General.strings
和 ./Swedish.lproj/Settings.strings
中的翻译均有效。
我担心的是,如果我们按原样发布更新,用户将被迫在安装更新之前卸载应用程序以使翻译正常工作,这意味着他们会丢失所有保存的数据。所以你可以明白为什么这个问题具有高优先级。
如果我正确理解了问题的原因,我的问题是如何摆脱手机上已经存在的 ./Localized.strings
?更普遍的问题是我该如何解决这个问题?
So I have this app that is already on the app store. To get support for multi language localization we recently changed the localization configuration.
Old configuration:
./Localizable.strings
New Configuration:
./Swedish.lproj/General.strings
./Swedish.lproj/Localizable.strings
./Swedish.lproj/Settings.strings
If I remove the old version and install the new one everything works as expected, but if I leave the old version on the phone when I install the new one, the translations in ./Swedish.lproj/Localizable.strings
won't be visible. So it seems to me like the old ./Localizable.strings
is still left on the phone, hiding the new ./Swedish.lproj/Localizable.strings
. The translations in ./Swedish.lproj/General.strings
and ./Swedish.lproj/Settings.strings
both works.
My fear is that if we release the update as is the users would be forced to uninstall the app before installing the update to get the translations to work, which would mean that they lose all their saved data. So you can see why this issue has high priority.
If I have understood the cause of the problem correctly, my question is how do I get rid of the ./Localizable.strings
already present on the phone? The more general question would be how do I solve this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否在调试模式下对此进行测试,并且 Xcode 正在将新的二进制文件安装到设备/模拟器上,或者您是否正在执行临时构建和存档,然后通过 itunes 测试更新?
我知道 xcode 有时在构建并在调试模式下运行时不会覆盖文件。触摸该文件不会有任何帮助,但只有全部清理、退出并重新启动 Xcode 和模拟器才能解决该问题。
如果您使用临时构建,则完整的应用程序包将被覆盖。如果这不起作用,则可能存在严重问题。
Are you testing this in debug mode and Xcode is installing the new binary onto the device/simulator or are you doing an Adhoc build-and-archive and then test the update via itunes?
I know that xcode at times will not overwrite files when doing an build and run in debug mode. A touch of the file will not help, but only a clean-all, exit and restart of both Xcode and simulator cures it.
If you are using the adhoc build then the complete app bundle sould be overwritten. If this is not working something serious is at fault.