Questions tagged [nslocalizedstring]

This is a function defined in the Foundation Framework. It returns a localized version of a string.

410 questions
0
votes
1 answer

AppleLanguages value overrides the value of language set in IOS settings preferred language

I am working on Localization of my app that supports both spanish and English languages.These options are listed in a tableview.On clicking English i am setting the value "en" for the key "AppleLanguages" in NSUserDefaults.So that it can show the…
sagar
  • 121
  • 1
  • 3
  • 7
0
votes
1 answer

how to extract NSStrings from objective-c code

I want to extract all the Strings from my codebase and put in an excel sheet. What is the best way to do that? And how can I do that? To add on it. I am able to search all the strings in my project using the following expression: @"(any)" where…
0
votes
0 answers

NSLocalized string returns key instead of value

Our app contains two Localizable files in en.lproj and in nl.lproj. The files are copied to the product. (Check the IPA.) When requesting the localized string with NSLocalizedString(@"input_dialog_title", nil) we get the key as a result. The…
Alessandro Vermeulen
  • 1,321
  • 1
  • 9
  • 28
0
votes
1 answer

OSX Localization - What am I doing wrong?

I'm trying to setup some basic localization via XCode. I have done the following: Added a new Localize.strings file. Added French to my applications localization settings.The one localized file is the Localize.strings file. I have added an 'Open…
Kyle
  • 17,317
  • 32
  • 140
  • 246
0
votes
2 answers

How can i localize uipickerview's titles / text

I am working on localizing my app and adding NSLocalizedString() all over my code where the string will be shown on the screen. The question is i have a UIPickerview that shows 12 items and i would like to localize it and not add different language…
Yan
  • 3,533
  • 4
  • 24
  • 45
0
votes
1 answer

How to display a HTML localized string with parameters?

I have a HTML string that needs to be localized; the only problem is that it has parameters, like this: NSString *htmlString = [NSString stringWithFormat:NSLocalizedString(@"" "