Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS localization in XCode 7

I'm having trouble getting started with localization. Specifically, the UI I see in XCode (7.1) is different than the UI on Apple's docs site.

According to Apple's docs, there should be a "Localizations" section under my project info, but I can't find it.

What apple's docs show

enter image description here

(From https://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPInternational/InternationalizingYourUserInterface/InternationalizingYourUserInterface.html)

What I see

enter image description here

Similarly, I don't see a checkbox for "base internationalization", and if I try to add languages via Editor -> Add Localization all the menu items are unselectable.

like image 493
Michael Avatar asked Nov 09 '15 17:11

Michael


People also ask

How do I add localization files to Xcode?

Right click your project folder, select 'New File' , then scroll down to find 'Strings', select it and click 'Next'. Then name the file as 'Localizable. strings' and click 'Create'.

Is Xcode localized?

In Xcode, localization refers specifically to the set of resources for a specific language and region that you support. You add a localization to your project and select the resources you want to include for that language and region.

How do you implement localization in iOS Swift?

Click on iOS->App/Single View App->Next. Name your project and select the language as Swift. Select a desired location and click on Create. To start with Localization, click on your Project Name -> go to Info Tab -> Under Localizations, click on the '+' button.


1 Answers

To add on to @wakachamo's answer, click the icon indicated by the red arrow to reveal the "two sections, 'PROJECT' and 'TARGETS'. Select the item under 'PROJECT', and then, select the 'General' tab. You should see it there."

where the KEY button is

like image 163
Vic Avatar answered Sep 21 '22 12:09

Vic