iOS Localisation of app name

570 views
Skip to first unread message

Horst

unread,
Jul 7, 2011, 10:57:55 AM7/7/11
to phonegap
Hello,

i have treid to lacalize the name of my app. I followed some
instructions, but i failed.
I have added en.lproj and de.lproj folder ond placed a
InfoPlist.strings in it. In this files i added a line
CFBundleDisplayName = "Name of the App";
And i also added LSHasLocalizedDisplayName to info.plist.

But i still get no localisation. Can anyone help? I dont want localise
the app itself. Only the name.

I am a xcode dork, maybe iam doing it the wrong way. I have made the
folders (e.g. "en.lproj") with finder and draged them to xcode project
structure under "Resources". Now iam seeing en.lproj/en.lproj/
InfoPlist.strings in finder. But moving the strings file one step
makes up the file in xcode project red.

And other question: I have tried to upgrade an project to 0.9.6, but
iam failed (because iam an xcode dork). So i have made simple a new
project and copied my assets to it. Works fine. But i used the storage
in the app and the new one cant access the old values. What is the
"key" to be the old app again? The same Executable-Name, bundle name
or something like this? My hope was simple to use the same bundle
identifier. But this wasn't the solution. The same with PRODUCT_NAME.

best regards
Horst (yes, i am a dork with xcode and a dork with eclipse. But i
build apps for iOS and Android with phonegap ;-) )

Horst

unread,
Jul 7, 2011, 2:58:09 PM7/7/11
to phonegap
Addendum:
I think i have the right structure of the language files. I have made
it as descriped in the localization plugin readme (i dont use the
plugin, because i dont want the strings localized).

And the second problem i have solved. I had a typo in the bundle
identifier.

best regards
Horst

Horst

unread,
Jul 8, 2011, 6:12:13 AM7/8/11
to phonegap
Solved. Yippie-a-yeahhh.

I have googled and read through masses of documentation. But after
hours and hours the solution was this:

When making a localized phonegap app, the languages have to be added
into plist.info:
<key>CFBundleLocalizations</key>
<array>
<string>English</string>
<string>German</string>
</array>

But the localized folders are en.lproj and de.lproj. So i had to
change English to en and German to de and it works.
The rest like in apples documentation with en.lproj/InfoPlist.strings
file and LSHasLocalizedDisplayName set to true.
If anyone has questions, please feel free to ask. Iam still a xcode
dumb, but maybe i can help to save some hours. ;-)

best regards
Horst

Pete

unread,
Aug 7, 2011, 5:46:08 PM8/7/11
to phonegap
I think I need to do something with this, so I sent a message to Horst
for a few more details.

My question for the group is:
I localized my app to Spanish with javascript, no problem there.
In my Itunes setup, I put in my Spanish app name and description.
When I open Itunes Spain, the app is listed in Spanish, however when I
open Itunes Mexico, Argentina, etc, my app is listed in English.

Itunes help says this:
Where do the available languages displayed for my app in the App Store
come from?
The languages that are displayed for your application in the App Store
are determined by the localization (.lproj) folders in your
application bundle. Missing or invalid localizations in your
application bundle are typically caused by misconfigured localizations
in your Xcode project. This list of available languages displayed on
the App Store does not come from entered localizations in iTunes
Connect but is taken directly from what you enter in your binary.


So I don't know why my Spanish description shows up correctly for in
Itunes Spain, according to Apple's help it shouldn't.

Anyhow, I want it to work for all countries, so I need to do something
like Horst did for the app name, but would also like to have the app
descriptions listed in Spanish.

Anybody who's done this, please help with adding all the necessary
settings to my Xcode project

thanks




On Jul 8, 3:12 am, Horst <ho...@klier.net> wrote:
> Solved. Yippie-a-yeahhh.
>
> I have googled and read through masses of documentation. But after
> hours and hours the solution was this:
>
> When making a localized phonegap app, thelanguageshave to be added
> into plist.info:
> <key>CFBundleLocalizations</key>
> <array>
> <string>English</string>
> <string>German</string>
> </array>
>
> But the localized folders are en.lprojand de.lproj. So i had to
Reply all
Reply to author
Forward
0 new messages