Change language from my application in iphone - iphone

How i can change my language within my app ŲŒknowing that my application include xib and also NSlocalizedstring inside my nib.

For localization on iPhone, you must add specific .strings files to your project for each language you want to support.
Here is a great article about localization for iPhone.

Related

EKEventEditViewController localization

How to change the default language in EKEventEditViewController, it is always English, even if I set AppleLanguages object manually
I solved this problem by adding a Localizations item to my app plist. For example, if you want your app to show the form in Spanish, add a Localizations key in your plist and inside it create the Spanish item.
1) In info.plist set "Localization native development region" to your languages e.g. en,de,fr and so on.
2) Add new file -> iOS resource - > Strings File and name it Localizable.
Select this file in your bundle and add on the "Utility View" your localizations.
Then your EventController should be in the correct language.

How to put each set of localized NIBs into its own Bundle, in iPhone?

How to put each set of localized NIBs into its own Bundle, in iPhone?
You can create a localized copy of your nib via the File Inspector. Just add localizations by adding languages via the plus-sign

Localized App Icons with Retina Display for iOS

I have issues showing a localized app icon with retina display support.
How could this be done?
I tried to make Icon.png and Icon#2x.png localized, then I tried to make the proj-Info.plist localized and try to link to different Images.
But only the Icon of the project language are being shown...
You need to create one infoplist.strings file for each of the language. For that, create language.lproj folders manually and put Infoplist.string file in each of the folder.
Inside the file enter the following: CFBundleIconFile="Icon_en.png" or CFBundleIconFile = "Icon_pt.png".

NSInternalInconsistencyException Could not load nib ind bundle

I am developing an application for the iPad. The application has following details:
Base SDK: 4.2
Deployment Target: 3.2
The application is a game application and it has got 10 rounds.
In each round I am loading 6 controllers and after the completion of each round again the same cycle starts.
The application works fine till 4 rounds but at the end of 4th round it crashes given following error:
"NSInternalInconsistencyException Could not load nib ind bundle:"
I have checked for everything solution like checking the nib file name, checking the nib file path. Nib file name and nib file path both are correct and targets are also correct but still it crashes.
Any help for this will be appreciated.
Thanks,
Shyam
Right click your nib file in xcode and make sure its type is 'file.xib'.
I had this problem too, in my case the cause was that my project had no localization to italian but the app was running under "it" settings.
The simulator has English as regional setting by default, everything was ok on it while the actual device had italian settings, so the app crashes immediately when attempting to load the RootViewController, because it was looking for an italian version of it.
In XCode I added an italian localized version to the RootViewController (now I see two entries under it, one for english created by default and italian). Note that you don't need to do the real translations in the view, it's enough that you create it and leave as default. Xcode copies all labels and text from the original view, you just leave as is for the moment.
You'll have to do this for each view controller in your project. Refer to Apple docs, for explanations on internationalization and localization here.
As a workaround, some people might prefer to change the device regional settings to English while performing tests...

localization problem in iPhone App with XCode

i need to localize an existing iphone app. I've added strings files for German and English, which work well.
BUT !
I've also opened the Info-Pane of the XIB Files, klicked "add Localization", chose the languages (German and Englisch). In the View of all Ressources in XCode is see under the XIB Files now "German" and "Englisch".
I can translate all design elements in Interface Builder for German and Englisch. If i start the App on the Device or in Simulator there is always the german language displayed, also if i change the device language to "English". I also cleared all targets and deleted the app on the device and the simulator before testing.
What am i doing wrong ??
Any help is much apprechiated !
Greetings
MadMaxApp
ok ... looks like XCode has still a bug. The localization should not be named "German" and "Englisch". You need to name it "de" and "en". After clearning all targets and running in Simulator the right language xib is displayed.