Questions tagged [localizable.strings]
321 questions
98
votes
24 answers
Localizable.strings - The data couldn’t be read because it isn’t in the correct format
If I copy something from textedit or web and paste it to localizable file it shows this compilation error. If I type those in localizable file it does not show any error. I am assuring you that I using the correct format and ';' in the file.
"New" =…

Rashad
- 11,057
- 4
- 45
- 73
48
votes
30 answers
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 have a working internet connection.";
"CONNECTIONERRORTITLE" = "Network error";
I have also converted the files to…

Smiden
- 645
- 1
- 6
- 11
34
votes
4 answers
Localizing Dynamic Plural Noun messages (e.g. "5 Items Processed") on iPhone using Objective-C
In my current app, I have code that displays a message, e.g. "5 Items Processed." To keep the phrase grammatically correct, i.e. whether or not it should be "5 Item" or "5 Items," I use the following code:
int numItems = 5;
NSString *myString =…

Jason
- 14,517
- 25
- 92
- 153
27
votes
4 answers
Add "newline" character in localizable.strings
How to add a newline character in localizable.strings?
I tried putting \n, but no success.

Burhanuddin Sunelwala
- 5,318
- 3
- 25
- 51
22
votes
4 answers
How to implement localization in reactjs?
We need to implement the localization in reactjs to define the string
value(s). How can I implement that?
One link is there https://www.npmjs.com/package/react-localization, but I am not getting the correct steps to add that.
I have tried by…

Gorakh Nath
- 9,140
- 15
- 46
- 68
21
votes
4 answers
How Can I set Localised Direction within application?(RTL if user select arabic, LTR is selected language is English)
My Application must support Arabic(right to left direction) and English(left to right direction) language, I need to set UI and based on user select language from my application.
I will implement UI with NSLayoutConstraint so it can update UI…

Kanjariya-IOS
- 652
- 1
- 5
- 17
18
votes
9 answers
Can i link a uilabel to a localizable string in Interface Builder?
have googled around but found no solution:
Basically, i have a Localizable.strings set up, which i'm using in my code. However, it would be really sweet if i somehow could just refer those values in my XIB's too, so that i can avoid having to create…

Mathias
- 3,879
- 5
- 36
- 48
18
votes
5 answers
iPhone App Localization - English problems?
I have an app that I am translating to a bunch of different languages. The problem is that the app will have a few different values in Australia than will in New Zealand, which are both English speaking countries.
I have created an en_AU and an…

dewberry
- 225
- 1
- 2
- 8
17
votes
4 answers
Adding strings localization files from a server
We are building an application with dynamic data that we wish to localize.
We know how to localize strings in iOS and Android but in this case the data will be downloaded dynamically from the server so we will need to download the localization files…

shannoga
- 19,649
- 20
- 104
- 169
17
votes
3 answers
App localization showing the key instead of the value in iOS
I've been using localization in my app, but for some reason, some of the strings (not all of them) won't translate, I see the key instead the value. I've tried to check if the app finds the localization files by doing this:
NSString *enPath =…

ytpm
- 4,962
- 6
- 56
- 113
17
votes
2 answers
How to localize an app icon?
I am comfortable with localizing strings and images within the app. But I am having a lot of difficulty trying to localize the app icon for my supported languages (english and german).
Is this even possible? According to the Apple documentation, you…

Andrew Davis
- 2,310
- 1
- 24
- 43
16
votes
2 answers
iOS Localization: Unicode character escape sequences, which have the form '\uxxxx' does not work
We have key-value pair in Localization.string file.
"spanish-key" = "Espa\u00f1ol";
When we fetch and assign to label then app displays it as "Espau00f1ol".
Doesn't work.
self.label1.text= NSLocalizedString(@"spanish-key", nil);
It works- shows in…

Gaurav Borole
- 796
- 2
- 13
- 32
15
votes
4 answers
iphone - reading from Localizable.strings file as a key-value in a dictionary
I want to read the text from the localizable.strings file. I am collecting the strings for translation from several directories and file in one .strings file. But then I have several copies of the same translation strings. I want to remove this…

karim
- 15,408
- 7
- 58
- 96
14
votes
1 answer
Xcode warning: The specified input encoding is Unicode (UTF-8), but file contents appear to be Unicode (UTF-16); treating as Unicode (UTF-16)
I create the .strings file by using genstrings command. Output file of this command encoded with UTF-16, but when i add generated .strings file to my project and then bild, Xcode show warning:
The specified input encoding is Unicode (UTF-8), but…

Nikolai Nagornyi
- 1,312
- 2
- 11
- 26
13
votes
5 answers
Swift: Localization in Storyboard - Labels not added to Main.strings?
When I try to localize my app and I create a new Main.strings file for the target language, everything I have created in interface builder (labels, buttons, ...) is added to the new Main.strings files (base and language versions) and I can localize…

RjC
- 827
- 2
- 14
- 33