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 10-30-2008, 12:54 AM   #1 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 16
cool_cool is on a distinguished road
Question Multi language in iPhone sdk

How will we do multi language in iPhone sdk?

Reply soon.....
cool_cool is offline   Reply With Quote
Old 10-30-2008, 02:23 AM   #2 (permalink)
Registered Member
 
Stitch's Avatar
 
Join Date: Aug 2008
Posts: 400
Stitch is on a distinguished road
Default

It's easy. Assuming you can translate the text

You have to use NSLocalizedString instead of NSString and you will also need a Localizable.strings file for each languague. (This is just a text file).

The user will then select their own language in Settings. If your application can find a Localizable.strings file for that language it will swap the text otherwise it will use the default.

Check out example 5 in the TableViewSuite Sample Code:
https://developer.apple.com/iphone/l...ite/index.html
__________________
BUZZER! : iTunes Library Music Quiz (1 or 2 Player)
Stitch is offline   Reply With Quote
Old 11-24-2011, 04:45 AM   #3 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 16
imksoftware is on a distinguished road
Default

Ok and let asume that i have no text at all ?

and i would like to localize mp3 wav png, jpg files ?

how can i do that ?
imksoftware is offline   Reply With Quote
Old 11-24-2011, 04:56 AM   #4 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

If by no text, you mean no translated strings, then you're kinda of stuck unless you want to use Google translate. But using Google translate is iffy because I think it translates word for word.

For mp3, wav, png, jpg files, create localized resource strings and use NSLocalizedString to retrieve the correct file name.
__________________
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-24-2011, 05:11 AM   #5 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 16
imksoftware is on a distinguished road
Default

Thank you ..
imksoftware is offline   Reply With Quote
Reply

Bookmarks

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: 335
10 members and 325 guests
bignoggins, carlandrews, flamingliquid, hzwegjxg, ilmman, jenniead38, linkmx, nadav@webtview.com, stanny
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

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