How to make iOS app name localizable? [duplicate]

I assume you mean the Bundle Display Name that appears on the device’s home screen: You should create a localized file called InfoPlist.strings similar to the Localizable.strings file that you use for the usual text snippets. In the InfoPlist.strings you can localize the different keys from your Info.plist. To localize the app name add: “CFBundleDisplayName” … Read more

Do I need English beside Base localization which would contain the exact same ‘translation’?

Apart from addressing question what language end-users will see, you need to consider also what will be shown in the AppStore. My current experience is that if you use Base for English, English won’t appear in list of supported languages (how Apple knows in which language your base localization is) in the description of your … Read more

NSLocalizedString only retrieves the key, not the value in Localizable.strings (IOS)

In my case it was because I had mistakenly named the file “Localization.strings” and hadn’t noticed (it has to be named Localizable.strings). As explained previously the symptom is because the compiler cannot find the string. Otherwise the cause could be any number of things but usually it’s a missing semi colon or quotation mark. These … Read more

Possible to use variables and/or parameters with NSLocalizedString?

If what you want is to return the localized version of “This is an Apple/Orange/whatever”, you’d want: NSString *localizedVersion = NSLocalizedString(([NSString stringWithFormat:@”This is an %@”, @”Apple”]), nil); (I.e., the nesting of NSLocalizedString() and [NSString stringWithFormat:] are reversed.) If what you want is the format to be localized, but not the substituted-in value, do this: NSString … Read more

Best practice using NSLocalizedString

NSLocalizedString has a few limitations, but it is so central to Cocoa that it’s unreasonable to write custom code to handle localization, meaning you will have to use it. That said, a little tooling can help, here is how I proceed: Updating the strings file genstrings overwrites your string files, discarding all your previous translations. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)