Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make iOS app name localizable? [duplicate]

I'm trying to find the easiest way to localize my app. I'm using sqlite, so I need basically only to switch my database name. Problem is the app name - can it be localized from code or I have to make x apps for x languages, so anyone will have app name in his/hers native language? The latter one seems like already rejected app to me... anyone?

like image 654
raistlin Avatar asked May 16 '12 10:05

raistlin


People also ask

Can two iOS apps have same name?

Two iOS apps currently can not have the same App store name (as entered in iTunes Connect), nor the same bundle ID suffix. They can, however, have the same name under the icon (the Bundle Display Name as entered in the app's plist).

Can I change app name?

Yes you can. By changing the android:label field in your application node in AndroidManifest. xml . to your Splash Screen, then the Launcher Icon name will be changed to the name of your Splash Screen Class name.

How many characters is an app name?

The Android platform has similar length limitations — approximately 12 characters, including spaces, carefully tested, is probably prudent.


1 Answers

I assume you mean the Bundle Display Name that appears on the device's home screen: You should create a localized file called InfoPlist.strings similar to the Localizable.strings file that you use for the usual text snippets.

In the InfoPlist.strings you can localize the different keys from your Info.plist. To localize the app name add:

"CFBundleDisplayName" = "My localized app name"; 

To localize a file: Simply create a new strings file in Xcode. Then reveal the right Xcode pane and add localizations via the menu shown here:

XCode localizations

Using this technique you can localize any file you like. Simply add the correct version to your bundle. If you then use [[NSBundle mainBundle] pathFor... you will automatically get the path to the correct localization. We do this for sqlites, strings and sometime even images.

like image 109
Felix Lamouroux Avatar answered Oct 03 '22 08:10

Felix Lamouroux