Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Localize Localizable.strings with Xcode 4.5 [duplicate]

Possible Duplicate:
Localization - Add additional language to localizable.strings file

With Xcode 4.5 SDK iOS 6.0, I cannot add localization to Localizable.strings file. In Xcode 4.4.1- under the list of all added languages was a "+" to add other languages. But in Xcode 4.5 I can't see it and I can't add any other languages apart the default English.

enter image description here

Someone has resolved this problem ?

Thanks !

like image 909
Fry Avatar asked Sep 22 '12 18:09

Fry


People also ask

How do I localize a string in Swift?

Select the project and under “Localizations”, click the “+” icon. Add any language you want (I selected Italian) then click on “Finish”. Now go back to Localizable. string file, select it and on the File Inspector (right menu) select “Localize”.

How do I add localization to Xcode?

To do this, in Xcode, select Product > Scheme > Manage Schemes ... Then in the Run/debug tab, change the "Application Language" to your desired language. And now every time you build and run your app from Xcode, it will use that language as the preferred language.

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.

Is Xcode localized?

Xcode adds the Base and the development language to the localization table by default. Use the Base localization for resources that support string substitution at runtime, such as storyboard, XIB, and Siri intent definition files.


1 Answers

If you select your top level project file in the Project Navigator, and then in the area on the right select your project under "PROJECT" and more to the right click the "Info" pane, there is a part called "Localizations" where you can add new languages to your project. Once done, you can add these languages to any file you wish to localize.

This is for Xcode 4.4.1 but I am pretty sure 4.5 allows this as well.

like image 70
Richard Altenburg - Brainchild Avatar answered Nov 15 '22 21:11

Richard Altenburg - Brainchild