nslocalizedstring Questions
19
Solved
Is there an Swift equivalent of NSLocalizedString(...)?
In Objective-C, we usually use:
NSString *string = NSLocalizedString(@"key", @"comment");
How can I achieve the same in Swift? I found a f...
Benoite asked 1/8, 2014 at 13:48
8
Solved
I'm trying to localize my app using NSLocalizedString. When I import the XLIFF file, most works like a charm but something do not and some string is not localized. I have noticed that the problem i...
Sweetener asked 9/10, 2014 at 11:45
9
I create tow Localizable.strings files one for english and the second for arabic :
/* The number 1 */
"LABEL_ONE" = "label number one";
I am using this code to get the string value:
[self.Lable...
Alarice asked 17/5, 2014 at 20:14
4
Solved
I have an iOS project that is localized into 16 languages. Only some words are not localized (Mainly those that go into an update and the localization office did not deliver in time).
For my keys I...
Heller asked 25/11, 2013 at 15:17
7
Solved
I am defining a custom error type with Swift 3 syntax and I want to provide a user-friendly description of the error which is returned by the localizedDescription property of the Error object. How ...
Rosettarosette asked 27/8, 2016 at 0:6
1
I've encountered what I think is a bug in iOS16: When a localized string is passed from Swift to Objective-C and compared with another identical localized string (defined in Objective-CC), the resu...
Sopping asked 17/10, 2022 at 6:45
3
Is there a way to get localized strings into an iOS playground? I have a number of right-to-left language translations that include format codes that I had to edit with a hex editor (to ensure the ...
Waterscape asked 11/3, 2016 at 19:48
28
Solved
On iPhone NSLocalizedString returns the string in the language of the iPhone.
Is it possible to force NSLocalizedString to use a specific language to have the app
in a different language than the d...
Laxation asked 3/11, 2009 at 19:33
4
I'd like to add multi-language support to a CocoaTouch Framework.
The problem: The Localizable.strings file I created only gets used by NSLocalizedString when it's part of the main app and its ta...
Willhite asked 25/2, 2015 at 16:46
2
Solved
I'm building an application for iOS that will be available in both English and French languages. I've read some tutorials around internationalization and I have an understanding of how it works and...
Turner asked 20/2, 2015 at 17:7
8
Solved
I have tried using a variable as an input parameter to NSLocalizedString, but all I am getting back is the input parameter. What am I doing wrong? Is it possible to use a variable string value as a...
Thetisa asked 10/8, 2010 at 4:0
30
Solved
I've made a strings file named "Localizable.strings" and added two languages to it, like so:
"CONNECTIONERROR" = "Check that you have a working internet connection.";
"CONNECTIONERRORTITLE" = "Net...
Cusack asked 12/2, 2012 at 17:59
3
I'm trying to add a language to my app and it was working until now. After a day to try to understand what's happen, I give up.
This is my problem :
My base language is english (development languag...
Nationalist asked 14/9, 2016 at 16:29
3
I am currently trying to create a localized accessibilityLabel in the storyboard (I am trying to avoid doing it programatically). It seems that whenever I use the Localized String option, the acc...
Keratitis asked 19/2, 2014 at 4:18
2
Is there a way to force a specific locale when running unittests?
Eg. always use en_US or force no locale, so that none of the .lproj files are loaded.
My unittest is sensitive to the currently s...
Girdle asked 29/7, 2013 at 16:15
4
Solved
I know many developers just do it like this: They start developing their app in English, and put NSLoclaizedString(@"Tap this to do that!", @"Telling what to do...") instead of simply @"Tap this to...
Cephalometer asked 26/11, 2011 at 19:47
4
Solved
How would I use NSLocalizedString for this string:
[NSString stringWithFormat:@"Is “%@“ still correct for “%@“ tap “OK“ otherwise tap “Change“ to choose new contact details", individual.contactInf...
Topsoil asked 20/2, 2013 at 16:10
1
Ive run into an issue where NSLocalizedString is always returning strings capitalized regardless of its input. localization was working
and Im assuming I did something that caused this but I cannot...
Horthy asked 18/9, 2018 at 18:32
3
Situation:
We use XCode exporting/importing tools to generate localizable files for our translators. This was going fine in XCode 8. Since we updated to XCode 9 we see a couple of problems.
Prob...
Undershoot asked 19/10, 2017 at 13:50
5
Solved
I have a UILabel with an attributed string. Here is a printscreen of it:
Now, I have to translate this attributed string to english and italian.
I am searching for a way to do this. Can I build ...
Willianwillie asked 4/4, 2014 at 6:14
4
Solved
I have the following problem with a small iOS 7 project on which I'm testing the localisation capabilities.
I have a default project, with one VC, in which I have one button in the middle of the ...
Butanol asked 13/2, 2014 at 12:56
4
Solved
I'm new to native iOS development, and have been playing with localizing storyboards.
I've been localizing the text for UILabel and UIButton objects in my storyboard by updating the Main.strings f...
Harmaning asked 28/7, 2014 at 5:55
1
Solved
I am trying to put a unicode character inside my localization.strings file. When I manually set a label's text to "\u{F071}", the character appears properly. When I have that character as part of a...
Toowoomba asked 14/4, 2015 at 15:1
7
Solved
I have an iPhone iOS4.1 application that uses localized strings. I have just started building unit tests using the SenTestingKit. I have been able to successfully test many different types of value...
Carilla asked 30/9, 2010 at 17:18
3
Solved
Do I need English beside Base localization which would contain the exact same 'translation'?
I'd expect the base file to contain my English words since my project has "Localization native development region" set to English.
Update - to clarify my question:
Thromboplastic asked 11/11, 2013 at 21:31
1 Next >
© 2022 - 2025 — McMap. All rights reserved.