iPhone application for non-english language
I 开发者_JS百科want to build iPhone application for non-english language and I have read about application localization.
- do I have to support string localization if I'm going to support only one language?
- Will I need to make any changes to project setting to support non-english app?
- I was using UIsearchBar to search data on tableview using the following code and it worked fine with english strings and failed with other, any idea why this is happening?
.
for (NSString *sTemp in searchArray)
{
NSRange titleResultsRange = [sTemp rangeOfString:searchText options:NSCaseInsensitiveSearch];
if (titleResultsRange.length > 0)
[copyListOfItems addObject:sTemp];
}
Any help would be appreciated, Thanks
My advice : use NSLocalizedString, even if you're not planning to translate your application for now... The day you will it will be localization-ready.
Edit : and yes, you have to modify the info.plist to set the "main language" for the project...
You don't need localization if you are going to have only one language, just create app in that language and submit it.
What error do you get when it fails on UISearchBar
精彩评论