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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-15-2008, 02:06 PM   #1 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 94
Default Internationalizing separately for Spain and Mexico

I'd like to have my app load separate plists for Spain Spanish (is the adjective Iberian?) or Mexican Spanish. However it seems setting the phone's language to Spanish and then the region format to Spain has no effect. Any idea how I can do this? The language of the phone returns "es" in either configuration.
yezaev is offline   Reply With Quote
Old 12-15-2008, 03:37 PM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 420
Send a message via AIM to jeff_lamarche Send a message via Yahoo to jeff_lamarche
Default

This is theoretically possible, however I have found working with localization based on country and language, rather than just country to be problematic. Xib files, for example, seem to disregard the region and just grab the localization for the language.

The way to do it (in theory) is to use, for your localization name, the ISO language code in lower case letters, followed by the ISO country code in upper case.

So, in your case, a localization for Spain, would be:

es_ES.lproj

And the one for Mexico would be

es_MX.lproj

In theory, any resource that could be shared could be put in:

es.lproj

or

Spanish.lproj

Though the former is preferred.

That's all there is to it, really. But, like I said, I've found this functionality to be kinda buggy and inconsistent, though I haven't tested it since SDK 2.0 release.
__________________
Check out my iPhone Dev Blog
You can send me e-mail at my forum username at mac dot com.
jeff_lamarche is offline   Reply With Quote
Old 12-15-2008, 03:58 PM   #3 (permalink)
Registered Member
 
Join Date: Sep 2008
Posts: 356
Default

is there a guide to internationalizing? Right now my app is completey in English and I'm not sure where to start with putting in languages. Thanks!
erotsppa is offline   Reply With Quote
Old 12-15-2008, 04:01 PM   #4 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 420
Send a message via AIM to jeff_lamarche Send a message via Yahoo to jeff_lamarche
Default

iPhone Dev Center

You'll have to log in to view it.
__________________
Check out my iPhone Dev Blog
You can send me e-mail at my forum username at mac dot com.
jeff_lamarche is offline   Reply With Quote
Old 12-15-2008, 04:17 PM   #5 (permalink)
monotreme
 
Join Date: Oct 2008
Location: UK
Posts: 150
Default

We've just used the locale to load different data for UK and Ireland from a SQLite database and it seems to work fine - no problems during testing and no complaints so far anyway.
spinyanteater is offline   Reply With Quote
Reply

Bookmarks

Tags
internationalization, localization

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 256
22 members and 234 guests
@sandris, ADY, ArtieFufkin10, bookesp, ckgni, dacapo, Dani77, DarkAn, Davey555, Desert Diva, HemiMG, iDifferent, jakerocheleau, JasonR, LEARN2MAKE, prchn4christ, Rudy, ryantcb, Speed, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,766
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:43 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0