How to use multi languages for iPhone application?. Currently I used english language only. But in future I want to use around 20 to 30 languages. How to use it in iPhone development using MonoTouch?
How to use multi languages for iPhone application?. Currently I used english language only.
Share
You have to create a folder for each language you are using in the format “language.lproj” (e.g. en.lproj, de.proj) – in there you have to create a file called Localizable.strings (Compile Action: Content)
The File looks like that:
then you can call NSBundle.MainBundle.LocalizedString(“Name For YourString”, “”, “”)
Here’s a short extension method which makes the translation a little easier:
you use it that way: