简体   繁体   English

应用包中的本地化文件

[英]Localization files in app bundle

I have localization with 3 languages. 我有3种语言的本地化版本。 Everything was working; 一切正常。 then I wanted to change something in localization files. 然后我想更改本地化文件中的内容。

My changes didn't have any effect, and I can't figure out the reason. 我的更改没有任何效果,我也无法弄清楚原因。 The big idea that it worked and still is finding old resources. 它起作用并且仍然有效的大想法是寻找旧资源。

This is working for me when I want to print the bundle of localization file: 当我想打印本地化文件包时,这对我有用:

PATH/MyFirsy.app/en-LT.lproj> (not yet loaded)

My steps: 我的步骤:

  • Getting your resource files ready for localization 准备好资源文件以进行本地化
  • Collecting all the texts used in the application in resource files 将应用程序中使用的所有文本收集到资源文件中
  • Translating the resource files 翻译资源文件
  • Integrating the resource files back in the application 将资源文件重新集成到应用程序中

Maybe someone who had this problem could help me. 也许有这个问题的人可以帮助我。

for localization to be in affect, you also need to change your simulator's/device's language. 为了使本地化生效,您还需要更改模拟器/设备的语言。 you can check the same in your case. 您可以根据自己的情况进行检查。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM