IPhone : How to add different language settings in apps settings?

You need to do localization in your application both for strings and images.

Up vote 1 down vote favorite share g+ share fb share tw.

I am developing app which contain more then one language. This app also contain section like Change Language containing different language options. So when one changes the language for example : English to Spanish.

It needs to be changed in Spanish language. My app contains many custom button with different images and that is also need to be changed. How can I do that?

Which is the easiest way to do that? Iphone objective-c cocoa-touch iphone-sdk-4.0 link|improve this question asked Sep 16 '11 at 12:59Devang1,973629 81% accept rate.

You need to do localization in your application both for strings and images, Here there is a complete guide for localization => icanlocalize.com/site/tutorials/iphone-a... Simply there will be folders for images in any language. By default localization works with the phone language but you can find in the guide to change it with a settings variables. For example to use a string tag for any language NSLocalizedString(@"tag",nil); Where tag will be defined in language files let's say spanish and english "tag" = "englishTag"; // in english file (Named Localizable.

Strings ) tag = "tagSpanishTag"; // in spanish file And these files will be the relative language folders with the images.

The easiest way by far is definitely using a macro called NSLocalizedString. What you want to do is called "Localization" here is a link to a good tutorial on how to localize your application in various languages. This tutorial is from english to french.

English to spanish is the same principle. Localization tutorial Basically what you want to do is declare all your strings as NSLocalizedString and then change depending the language the user has in the device automatically. You will end up making a xib for each language each xib with the button labels etc in the corresponding languages.

Then you will generate a text file will all the translations of the NSLocalizedStrings of the program in a UTC16 format. This is only a summary of the tutorial. Follow it it shouldn't be very hard.

Here is an additional link to the internationalization apple documentation: Documentation on internationalization.

If you want to use various language then use nslocalizestring and store what language you want to display. For tutorial you can see icanlocalize.com/site/tutorials/iphone-a... I hope it will help you.

I hope this helps you. If you have any doubts on this then please contact me.

I am not doing localization. I am giving features in my app that allow users to change language settings. – Devang Sep 19 '11 at 8:39 In more detail : The app contains one view.

Which is having option for more than one language. User selects any of them and the app needs to be converted into that language. – Devang Sep 19 '11 at 8:41 @Devang: For Your Information, I think converting the app into the language selected by the user is what we call as Localization.

– Parth Bhatt Sep 19 '11 at 8:49 yeah but as my knowledge its base on which ever the language selected by user means -> iphone's settings -> general -> international -> languages. Whereas I want to change language from my own app. Like segment containing diff language name.

– Devang Sep 19 '11 at 8:57 No that is not necessary you can do it from inside your app itself by using may be a pickerview which shows languages and on selection of a language you can change the other texts in the app. Just you need to set the localization language from localization bundle based on the language selected. – Parth Bhatt Sep 19 '11 at 9:01.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions