Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-10-2010, 09:31 AM   #2 (permalink)
alexy
Registered Member
 
alexy's Avatar
 
Join Date: Jul 2009
Location: Melbourne, Aus
Posts: 199
alexy is on a distinguished road
Default

Quote:
Originally Posted by greenhoney View Post
I am developing an app that will be available in various languages (spanish, english, german).
is it necessary to publish three different version (for each language) of the app or is there a way to upload only one app to the app store and the app detects the language of the user automatically and offers the right language?
what’s best practice for that?
Thanks!
I use localized based strings for this, for eg:
fr french
en english
de German
gr greek

You essentially define a key/value pair in these files, and from the code, you do something like:

labelHeading.text = NSLocalizedString(@"headingSettings", "Settings");

In this case, I'd have an entry of (in my en file):
"headingSettings" = "Settings";

It gets a bit more complicated with .xib files, but I find altering the controls (UILabel, etc) by code is better than having multiple localized .xib

Note, the sample app "International Mountains" might help you with a solid example of Localization

Last edited by alexy; 02-10-2010 at 09:35 AM. Reason: International Mountains Sample app may help you
alexy is offline   Reply With Quote
 

» Advertisements
» Online Users: 552
13 members and 539 guests
Domele, ganesh.sics, iconomania, ilmman, manop_cs, Matl43Owa, mistergreen2011, Newbie123, Objective Zero, oztemel, PavelSea, pinky, proindigo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,448
Threads: 94,031
Posts: 402,607
Top Poster: BrianSlick (7,978)
Welcome to our newest member, Matl43Owa
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:20 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.