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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-19-2011, 01:09 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 29
jagrutibhadani is on a distinguished road
Default Multi Language Support

HI.....

I want to develop an iphone application where u can change the language from the application it self rather than iphone setting.

how can it be possible??
Is there any tutorial available for it??

waiting for the responses.

Regards,
Jagruti
jagrutibhadani is offline   Reply With Quote
Old 11-19-2011, 01:13 AM   #2 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

The language of your app or the language of the whole phone? The latter is not possible.
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is offline   Reply With Quote
Old 11-19-2011, 01:21 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 29
jagrutibhadani is on a distinguished road
Default

I want to change the language of application only..not whole iphone..can you give me suggestions??
jagrutibhadani is offline   Reply With Quote
Old 11-19-2011, 01:40 AM   #4 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

You'd have to create your own form of NSLocalizedString and give it a third parameter, a NSLocale object. Then have a language picker in your app. I usually don't like to put stuff in the AppDelegate but since language is app wide, you can add a NSLocale property to your app delegate.
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is offline   Reply With Quote
Old 11-19-2011, 01:41 AM   #5 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 44
Karl6669 is on a distinguished road
Default

Use an in app settings page, then save the setting using NSUserDefaults.

ex:

When the user selects their language via a UIPickerView, save the setting like this:

-(void)pickerViewUIPickerView *)pickerView didSelectRowNSInteger)row inComponentNSInteger)component
{
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:[languageArray objectAtIndex:row] forKey:@"selectedLanguage"];
// Now run whatever code is required to change the text on the screen to the new language.
}

Good luck.
Karl6669 is offline   Reply With Quote
Reply

Bookmarks

Tags
multi language supoort

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: 387
18 members and 369 guests
7twenty7, Alex-alex, Apptronics RBC, baja_yu, chiataytuday, dedeys78, dre, Duncan C, e2applets, ipodphone, jeroenkeij, leostc, matador1978, mbadegree, n00b, QuantumDoja, Retouchable, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,125
Posts: 402,910
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

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