iOS - Using Base localization pane is always empty

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 12:32:56

问题


In Xcode have added two localizations, German and English. I am following documentation on Apple regarding "Use Base Internationalization" which is obtained by going to the project, clicking Info and pressing on the checkbox.

If I do this, it launches a pane or page which is empty.

IE:

How do I get it to be populated, or otherwise be in a situation to select the relevant resource file?


回答1:


The answer is to localize your storyboards. Go to storyboard, there is a button called localize. If you do this, the pane is no longer empty.




回答2:


Check the answer from hassan83 (https://stackoverflow.com/users/1586924/hasan83) in another question. It solved my problems.

https://stackoverflow.com/a/27720065/7017099

"This could happen if Base Internationalization was active before then disabled and files deleted manually.

  1. Create Base.lproj folder in your project folder using the finder.
  2. Move your main story board to it also using the finder.
  3. Fix the reference to it from Xcode.
  4. Remove app from device, clean & build your project.

All will be back to normal."



来源:https://stackoverflow.com/questions/29123875/ios-using-base-localization-pane-is-always-empty

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!