Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Localization of the iPhone Settings.bundle

Tags:

For some reason I cannot get the Settings.bundle to recognize my additional languages. I must be missing something obvious, but I just cannot figure it out. Here's what I've got:

Project Structure in XCode:

XCode Screen Shot

Root.plist file:

Root.plist file http://img227.imageshack.us/img227/571/screenshot20100624at334.png

French Root.strings file

french Root.strings file http://img121.imageshack.us/img121/571/screenshot20100624at334.png

From everything I've read, I believe the project structure is right. The StringsTable in the Root.plist matches the name of the individual .strings files, and the Key for each item in the Root.plist has a match in the .strings files as well.

Why don't I see French text in my settings when I change the default iPhone language?

Thanks in advance!

like image 264
Axeva Avatar asked Jun 24 '10 19:06

Axeva


People also ask

What is IOS localization?

Overview. Localization is the process of translating and adapting your app into multiple languages and regions. Localize your app to provide access for users who speak a variety of languages, and who download from different App Store territories.

Does Apple use localization?

Apple is one of the most recognizable brands worldwide. In order to maintain its place as one of the biggest brands in the world, successfully leveraging its marketing localization services has been key.

How do I localize my IOS app?

Select your root project file, and then proceed to the project panel. Find the Localization section section, click the “plus” (+) icon, and add the desired languages. Select only the Localizable. strings file for localization.

How do I use Swift bundle settings?

Start a new Single view application project in Xcode called SettingsBundleDemo using Swift and a Universal device. Right-click on the SettingsBundleDemo group folder and select New file. Select the Resources category in the template window. Select Settings Bundle and click Next.


1 Answers

For me, the problem was leaving off a semi-colon!

In localizable.strings, you get a runtime error if you omit the ";", but in Root.strings, you don't get any warnings, you can run it fine, but it just won't work!

So double-check to make sure you punctuate each key:value pair with a semi-colon!

like image 172
Shane Rayner Avatar answered Sep 20 '22 03:09

Shane Rayner