This is a function defined in the Foundation Framework. It returns a localized version of a string.
Questions tagged [nslocalizedstring]
410 questions
2
votes
2 answers
iOS Localize app manually then switch
I have been facing a problem with iOS Programming since its the first time I'm using Localization,,
I used the following to know which lang I'm having:
- (NSString*) getLanguage{
NSArray* languages = [[NSUserDefaults standardUserDefaults]…

iJazJaz
- 45
- 8
2
votes
1 answer
Prevent Restart of IOS application after Language change
I know that we can change the language in runtime by setting the value for "AppleLanguages" in user defaults. Can anyone suggest me how to achieve the following:
App is running->Press Home button -> Change Language in Settings -> Springboard will…

Kiran Kulkarni
- 1,434
- 2
- 18
- 40
2
votes
1 answer
iOS, Cocoa, AppiRater - How to localized Cancel Button for SKStoreProductViewController
How can I localize the "Cancel" button in the AppiRater view controller that is popped over?
I was looking in the AppiRater code... it makes us of the SKStoreProductViewController like this:
SKStoreProductViewController *storeViewController =…

electronix384128
- 6,625
- 11
- 45
- 67
2
votes
2 answers
localize existing iOS app
I can't believe this hasn't been asked before (either I'm too unorganized in my coding practices or I didn't use the right keywords): How can I localize an existing iOS app that doesn't use NSLocalizedString (specifically just the first step,…

newenglander
- 2,019
- 24
- 55
2
votes
1 answer
NSLocalizedString woes
I have Localizable.strings files for eng, span, port, rus, arab, chin.
A very strange issue started to happen, the key is showing up instead of the value. What makes it strange is that this is what caused it stop working:
I had:
self.title =…

random
- 8,568
- 12
- 50
- 85
2
votes
1 answer
iOS localization with sqlite database
I did some reading on localization in iOS and it seems like the two main things are localizing the nib file, and using the NSLocalizedString to grab the localized string from the string file. For our app, we have a sqlite database (using the FMDB…

Crystal
- 28,460
- 62
- 219
- 393
2
votes
1 answer
How to use get all NSLocalization using genstrings while preserved current translations
Let say my iOS app already have translation localizatible.strings for Japanese. Say "Continue" = "続ける";
However, I've added new NSLocalization additions to my code but I want to use genstrings to get all new NSLocalizations without having to…

mskw
- 10,063
- 9
- 42
- 64
2
votes
2 answers
Localized NSStrings and NSStrings Comparations
I have a tiny question regarding NSStrings. I'm currently making an app, the development language is English. I have a string like this:
NSLocalizedString(@"cancel", @"cancel string");
I have intentions of localising this app to Spanish afterwards…

Andy Ibanez
- 12,104
- 9
- 65
- 100
2
votes
2 answers
Create localizable.strings from Code in iOS
I'm currently localizing my iOS-Application. This works pretty decent so far.
I've already created localizable.strings and several xib-files and so about 80% of the app is already translated.
But the App also loads data from a WebService which…

Mehlyfication
- 498
- 5
- 9
2
votes
0 answers
change NSLocale/Language of iPhone programmatically in running app
I have an issue. I had created a view, where user can select Language of application among English, Dutch & Spanish. Then texts of UILabel in next view should be according to selected language.
I have used following code to set current language :
…

Surjit Joshi
- 3,287
- 2
- 18
- 20
2
votes
1 answer
NSLocalizedString is not returning the localized text XCode4
After creating new cocoa application,I have added localization string files localizeFile.strings(English) and localizeFile.strings(Spanish)
In localizeFile.strings(English) file I added "TITLE" = "Hello!";
In localizeFile.strings(Spanish) file I…

Akbar
- 1,509
- 1
- 16
- 32
1
vote
2 answers
cell.textLabel.text NSLocalizedString parameters
I am just wondering what the second parameter to NSLocalizedString is used for.
cell.textLabel.text = NSLocalizedString(@"Detail", @"Detail");

C.Johns
- 10,185
- 20
- 102
- 156
1
vote
2 answers
iOS - Some but not all strings appearing localised.
I've successfully added a French localisation to my app. In XCode 4, it was just a case of selecting Localizable.strings and adding a new (French) localisation in the File Inspector. I then copy/pasted the French translation (from Word - unicode 16)…

Smikey
- 8,106
- 3
- 46
- 74
1
vote
2 answers
switching XIBs on the fly according to a specific localization
I use these methods
[[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObject:@"ar"] forKey:@"AppleLanguages"];
[[NSUserDefaults standardUserDefaults] synchronize];
to force my app to change its localization during run time (when…

JAHelia
- 6,934
- 17
- 74
- 134
1
vote
1 answer
Insert into array translated value from NSLocalizedString
I have a plist with an array of dictionaries.
example:
items: (array)
item0: (dictionary)
Label: (string)
Img: (string)
item1: (dictionary)
Label: (string)
Img: (string)
using NSLocalizedString, the labels…

Vins
- 1,814
- 4
- 24
- 40