Top "Nslocalizedstring" questions

This is a function defined in the Foundation Framework.

How to force NSLocalizedString to use a specific language

On iPhone NSLocalizedString returns the string in the language of the iPhone. Is it possible to force NSLocalizedString to use …

ios objective-c localization internationalization nslocalizedstring
What's NSLocalizedString equivalent in Swift?

Is there an Swift equivalent of NSLocalizedString(...)? In Objective-C, we usually use: NSString *string = NSLocalizedString(@"key", @"comment"); How can I …

ios swift localization nslocalizedstring
Best practice using NSLocalizedString

I'm (like all others) using NSLocalizedStringto localize my app. Unfortunately, there are several "drawbacks" (not necessarily the fault of NSLocalizedString …

objective-c ios localization nslocalizedstring
How to provide a localized description with an Error type in Swift?

I am defining a custom error type with Swift 3 syntax and I want to provide a user-friendly description of the …

swift swift3 error-handling nslocalizedstring
How to localize an iOS storyboard

I've an iPhone storyboard with some views. For instance, a navigation item title is named News, which should be translated …

objective-c ios nslocalizedstring uistoryboard
NSLocalizedString with swift variable

I'm trying to localize my app using NSLocalizedString. When i import the XLIFF file, most works like a charm but …

ios swift localization nslocalizedstring xliff
NSLocalizedString only retrieves the key, not the value in Localizable.strings (IOS)

I've made a strings file named "Localizable.strings" and added two languages to it, like so: "CONNECTIONERROR" = "Check that you …

ios xcode uialertview nslocalizedstring localizable.strings
Possible to use variables and/or parameters with NSLocalizedString?

I have tried using a variable as an input parameter to NSLocalizedString, but all I am getting back is the …

objective-c localization nslocalizedstring
NSLocalizedString with format

How would I use NSLocalizedString for this string: [NSString stringWithFormat:@"Is “%@“ still correct for “%@“ tap “OK“ otherwise tap “Change“ to …

objective-c nslocalizedstring
How to make iOS app name localizable?

I'm trying to find the easiest way to localize my app. I'm using sqlite, so I need basically only to …

iphone ios xcode localization nslocalizedstring