Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8 how to add a language?

I want to translate my app in German and Japanese. I have read tutorials to make it but I cannot find the Base Internationalization box that I am supposed to check in the info tab of my app. Main parts in my info tab are "custom IOS target properties", "document types", "exported UTIs"... There is nothing about Localization.

I guess I have to manage it in the "custom IOS target properties" but I don't know how. There I have added the key "Localizations" with "English", "German" and "Japanese" values, and I also have a key "Localization native development region" with value "en".

Then I have added my Localizable.strings file in Base.lproj but in the File Inspector I can only see "Base" and "English" as Localization, there is nothing about German and Japanese.

I have also noticed that when I go to Editor > Add Localization, I cannot select any language.

Do you see what's wrong?

Thank you,

Alex

like image 358
Alex9494 Avatar asked Sep 14 '17 08:09

Alex9494


People also ask

How do I add languages to Xcode?

Select your project file in Project Navigator, and select your project in the project and targets list. Open Info tab, and click “+” button under Localizations section. Then choose a language you want to support from the dropdown list shown. XCode opens a dialog showing resources to be added for the new language.

Can you use other languages in Xcode?

As Xcode supports a wide range of programming languages such as C, C++, Java, and Python, you can develop apps using these platforms.

How do I Create a localizable string in Xcode?

Let us move on to create a string file called 'Localizable' that will hold the text we want to localize. Choose File → New → File ..., select Strings File under Resources, and click Next. Name it Localizable, then click on Create.

What is Lproj Xcode?

lproj folder is a directory that stores language-specific resources. See Localized Resources in Bundles and Language and Locale IDs for details. If none of the user's preferred languages are supported by your app, iOS chooses the language matching your app's development region ( CFBundleDevelopmentRegion ).


1 Answers

Click on the project and add Localization languages enter image description here

And then select your storyboard -> File inspector

enter image description here

like image 157
Hakikat Singh Avatar answered Sep 20 '22 23:09

Hakikat Singh