In an application I only want to support German language. This is fine with all of the texts that I define myself, but I cannot change the texts displayed by views provided by the system, such as the cancel button of a UISearchBar
:
If the device language is set to German, the cancel button shows "Abbrechen" correctly. However, if I set the device language to English (or to any other language), the button shows "Cancel", which is incorrect since everything in the application is in German, so I want to have this button in German as well. Is it possible to get this done? What do I do wrong?
- I only have a de.lproj folder, and I do not have an en.lproj folder. I have the InfoPlist.strings and my main nib files inside the de.lproj folder.
- The nib for the content view of
UIViewController
whosesearchDisplayController
property I use to access the search bar is also inside the de.lproj folder. I have set the development region inside the .pbxproj to German:
developmentRegion = de;
I have set the "Localization native development region" to "de" inside the Info.plist file:
<key>CFBundleDevelopmentRegion</key> <string>de</string>