Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Base internationalization doesn't work

I'm trying to localize my app. I noticed that if I add a language every localized file become doubled. In this way it's impossible to maintain code or storyboard so I learnt that I need Base internationalization.

The problem is that when I select that checkbox in xcode project setting it shows a window without nothing to select, does anyone know how to fix this?

Here's a screenshot

enter image description here

like image 671
Sparviero Avatar asked Apr 13 '13 09:04

Sparviero


People also ask

What is use base internationalization Xcode?

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.

What is base internationalization in iOS?

iOS Internationalization Internationalization (i18n) is the process of making your iOS app adaptable to different locales. From an iOS developer's perspective, it is the process of making strings externally editable – be it in a storyboard or in code. Furthermore, in order to set dates, numbers, etc.

How do I add localizable strings to Xcode?

Choose File → New → File ..., select Strings File under Resources, and click Next. Name it Localizable, then click on Create.


1 Answers

First, you need to go to your storyboard file, open the bar on the right side, and go to Show the File Inspector, the furthest tab to the left. Then, scroll down and click localize. After this, when you check Use Base Localization, you should see the storyboard appear.

like image 72
charleyh Avatar answered Sep 18 '22 17:09

charleyh