Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IOS: Add languages as Localizable.strings

I want to localize my app, and I add French and Spanish to the target properties other than English

enter image description here

But, those languages are not showing inside the file inspector to select. Only 'English' and Something called 'Base'.

enter image description here

Any Help?

like image 732
Chanuka Avatar asked Sep 17 '13 07:09

Chanuka


People also ask

How do I add localizable strings?

To add Localizable. strings file, go to File->New->File , choose Strings File under Resource tab of iOS, name it Localizable. strings , and create the file. Now, you have a Localizable.

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.

What is a localizable string?

A localized string can have different values depending on the language in which the project is being build. There are two categories of localized strings: the strings included in the installation package's UI, common to every MSI file.

How do I add languages to Xcode?

In the project editor, select the project name under Project, and click Info. Under Localizations, click the Add button (+), then choose a language and region combination from the pop-up menu.


1 Answers

If you go to the "Info" pane of your project, you'll see a panel that shows your Deployment Target, Configurations and also the current localizations that you support (including a checkmark for "Use Base Internationalization"). Base Internationalization, b.t.w., allows you to have a single storyboard file that has different string files populating the string fields in the storyboard. It works for iOS 6 and newer.

When you start, it might look like this:

The Info Pane before adding any localizations

Here I've added Hindi as a language possibility:

The Info Pane after adding Hindi

And when you're done, you have the checkbox to choose from:

And here's our new option

like image 81
Michael Dautermann Avatar answered Nov 15 '22 18:11

Michael Dautermann