Questions tagged [nslocalizedstring]

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

410 questions
0
votes
2 answers

Localizing with different element count

I'd like to give my users a warm welcome, when they are opening my application. So I want to have different sentences to show them randomly. The count of messages differs in each language. What is the preferred way to solve this problem? My…
0
votes
2 answers

Localize iPhone app

I have a basic iPhone/iPad app which has a ; a. List view & b. Detail view The list view displays a set of list (Link 1, Link 2, Link 3, etc) in a table view On click of any of the links, the corresponding detail view is shown (Detail view 1,…
copenndthagen
  • 49,230
  • 102
  • 290
  • 442
0
votes
1 answer

NSLocalizedString and app language

I wonder if some body know how can I connect my application language and NSLocalizeStrings, For example: my app is on fr, ru,ro but User device is on en, and when user turn on app it on en but in app settings there is ro or fr. How can I pass my…
0
votes
1 answer

Double free error when using Apple LLVM compiler

I have a project written for iOS 4.x. Recently i update it to iOS5 using XCode 4.3.2. It's strange that the app stop everytime with double free error when using Apple LLVM compiler. After i change back to LLVM GCC, it works fine. Is there any…
xi.lin
  • 3,326
  • 2
  • 31
  • 57
0
votes
1 answer

NSLocalizableString not found my key

I'm developing iPad international application. I'm using methods NSLocalizableString to translate my application. I have added keyword manually in my Localizable.strings in English and in French named "Orders" with value. When I call my method…
alexmngn
  • 9,107
  • 19
  • 70
  • 130
-1
votes
1 answer

String with Unicode literal not displaying properly on UILabel

I've got some localized strings with Unicode literals in them, like so "some_key" = "\u{1F6C8} Some info text"; which I assign to UILabel myLabel.text = "some_key".localized Where localized getter looks like that extension String { var…
mag_zbc
  • 6,801
  • 14
  • 40
  • 62
-1
votes
1 answer

NSLocalizedString load key return key in iOS 13.2(other iOS version working fine why?)

i have 15 language files in Localizable.strings - configure the key / value on the English or others Like: codes: NSLog(@"--->test1-%@-",NSLocalizedString(@"stringtest",…
JNYJ
  • 515
  • 6
  • 14
-1
votes
1 answer

Fatal Error with NSLocalizedString due to one system language

I have recently started using localized Strings in my app and today I found this weird issue. For the time being, I support in my app two languages: English (the language of the project) and Italian (my native language). Today I tried changing my…
-1
votes
2 answers

iOS 11 SDK update – wrong Localizable.strings

After updating my app from iOS 10 to iOS 11 SDK I started receiving messages from users, that localization after update has been broken. There are a lot of user who complain but only one provided me details about that issue: region: Brazil …
-1
votes
1 answer

Set Language in Swift 3 failed

Sir. I am trying to create an app of multi-language support. I use the abbreviations like zh-Hant, en , jp to save as user default. And change the language of the app. Taking place holder of textfield as an example, if I click the collection view…
Jeff Bootsholz
  • 2,971
  • 15
  • 70
  • 141
-1
votes
1 answer

Change app language at run time

I am trying to change the the lang that I get with NSLocalizedString at run time. I know that this question as been already asking, but I do not find an answers for Swift 3. I have try: UserDefaults.standard.removeObject(forKey:…
Lauriane
  • 91
  • 1
  • 8
-1
votes
3 answers

How to change font color of text coming from NSLocalizedString using Objective-C?

I am retrieving text from Localizable.strings and assigning to label. I can't able to change the label colour. How to do this? I tried like this way: self.sampleLabel.text = NSLocalizedString(@"HELLO WORLD", nil); . i am trying to change label…
Arshad Shaik
  • 1,095
  • 12
  • 18
-1
votes
2 answers

How to change all the strings in an iphone application with respective selected language in settings?

I need help from you, I need to display all the text, labels , strings and what ever text is showing to user in the iphone application with respective selected language in settings of iphone. for example user selects German or French in settings of…
Madan Mohan
  • 8,764
  • 17
  • 62
  • 96
-1
votes
2 answers

Concatenating Two strings in Localization Objective-c

My Previous Code without Localization. It worked perfect. case LOGIN_LOGOUT: ((Cell*)cell).lbl.text = [self isLoggedIn] ? [NSString stringWithFormat:@"Logout %@", email] :NSLocalizedString(@"Login", @"Message"); break; But when I…
user5872894
-1
votes
2 answers

What is wrong with this NSLocalizableString code?

I have this code on Viewcontroller.m, on Xcode: NSString *language = NSLocalizedString(@"es", @"language"); NSString *connector = NSLocalizedString(@"de", @"connector to link words"); And this one on the "Localizable.strings…
BigK
  • 43
  • 7
1 2 3
27
28