Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS - Using Base localization pane is always empty

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: base internationalization pane

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

like image 243
Atilla Jax Avatar asked Mar 18 '15 13:03

Atilla Jax


People also ask

What is base localization?

There is also a concept called a “Base” localization. Xcode will by default add a directory called “/Base. lproj” to your project. The purpose of this directory is to hold the default layouts of your views (i.e. storyboards/XIBs) in your “development language”.

Does Apple use localization?

In order to maintain its place as one of the biggest brands in the world, successfully leveraging its marketing localization services has been key. Apple has had to adapt its products and materials to fit global audiences, keeping in mind cultural and linguistic nuances.

What is use base internationalization?

Using Base Internationalization. Base internationalization separates user-facing strings from .storyboard and .xib files. It relieves localizers of the need to modify .storyboard and .xib files in Interface Builder.


2 Answers

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."

like image 99
Yaubs Avatar answered Oct 19 '22 11:10

Yaubs


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.

like image 21
Atilla Jax Avatar answered Oct 19 '22 13:10

Atilla Jax