Questions tagged [localizable.strings]

321 questions
7
votes
2 answers

NSLocalizedString shows raw key instead of loading a string from another language

I'm having trouble using NSLocalizedString(key, comment: "") to load strings from Localizable.strings when the key is missing for the current language. NSLocalizedString returns a raw key For instance, when string is present for English…
Laevand
  • 822
  • 9
  • 14
7
votes
4 answers

Using plural strings without number

I'm a bit confused by the .stringsdict documentation (scroll to "Localized Property List File"). Given a number of files, I want to show Save File or save Save Files accordingly. I thought the following would work, but doesn't. In code: NSString…
hpique
  • 119,096
  • 131
  • 338
  • 476
7
votes
2 answers

Is there a way to invalidate NSBundle localization cache, withour restarting application? [iOS]

Let's assume that we can change in runtime Localizable.strings, that is placed in NSBundle At the current moment, even if we change it's contents, NSLocalizedString would return old(cached) values. Run Application Get LocalizableString for specific…
tt.Kilew
  • 5,954
  • 2
  • 33
  • 51
7
votes
1 answer

Localizable.strings error - compiler says file is missing

I tried adding a Localizable.strings file and add some strings to test with, everything works fine. However, when I try to add a localization things starts to get weird. I am able to add a localization (english and russian) and I can see in finder…
user373455
  • 12,675
  • 4
  • 32
  • 46
6
votes
2 answers

Localizing Silverlight application using resources

I have a problem with localization of Silverlight application using resources. I wanted to make my multilingual mechanizm to be cross platform thats why I placed all localizable resources in project of type Portable Class Library. In this project I…
6
votes
3 answers

NSBundle - (not loaded yet) Error

I am trying to get a strings file table for use with NSLocalizedStringFromTableInBundle. I am using this method: +(NSBundle*)getBundleForLang:(NSString*)lang{ //get the path to the bundle NSString *bundlePath = [[NSBundle mainBundle]…
shannoga
  • 19,649
  • 20
  • 104
  • 169
6
votes
5 answers

IOS/iPhone: Nested Localizable.strings Files?

I'm creating an app that will have a number of variants. These variants will be controlled by a few strings in multiple Localizable.strings files. However, 90% of the strings will remain the same. I'd like to have it so that each of the unique…
Chris Marshall
  • 4,910
  • 8
  • 47
  • 72
6
votes
6 answers

Xcode 10, could not decode input file using specific encoding

I am working on an iOS app. It is working fine in Xcode 9.4.1, but when I build it in Xcode 10 it gives me following error: I tried the solution given in the following post by changing the encoding, but it didn't work. I tried it by both…
Akshay Sunderwani
  • 12,428
  • 8
  • 29
  • 52
6
votes
1 answer

How do I reverse engineer Mac OS X language localisation files for natural language learning?

OK, the goal of this question is not strictly programming related but it is a question programmers can answer using programming tools, and programmers may find useful answers here. Bear with me. I find changing the system language in Mac OS X a…
arandomlypickedname
  • 1,349
  • 1
  • 11
  • 12
6
votes
4 answers

using different string files in android

I'm porting my iPhone app to android and I'm having a problem with the string files now. The app is a translation tool and users can switch the languages, so all the localized strings are in both languages and they are independent from what locale…
boreas
  • 1,041
  • 1
  • 15
  • 30
6
votes
2 answers

iOS - Could I change the localizable.strings content during runtime?

I am loading the translation through a JSON file every time I launch the application. Could I parse that JSON, clean it up and place it in the localizable.strings file? If not, will I be able to load localization from localizable file created in the…
Abdalrahman Shatou
  • 4,550
  • 6
  • 50
  • 79
6
votes
4 answers

localizable.strings editor for translators

Does anyone know any good and easy to use editor for translating localizable.strings files generated from xCode ? The program will be used by total non technical people, so it should be very easy to use and ensure that no errors are made during the…
Lefteris
  • 14,550
  • 2
  • 56
  • 95
5
votes
1 answer

Swift Package manifest property 'defaultLocalization' not set

Experimenting with Swift Packages, I created a new package. Source files and resources from an existing Xcode project framework target were moved over into the new structure. Attempting to build, the transcript shows an error: manifest property…
Max MacLeod
  • 26,115
  • 13
  • 104
  • 132
5
votes
1 answer

Xcode 8 how to add a language?

I want to translate my app in German and Japanese. I have read tutorials to make it but I cannot find the Base Internationalization box that I am supposed to check in the info tab of my app. Main parts in my info tab are "custom IOS target…
Alex9494
  • 1,588
  • 3
  • 12
  • 22
5
votes
0 answers

How to add Unicode escape sequence in Localizable.strings?

How can a Unicode escape sequence be added to a string in Localizeable.strings file if the string is casted to NSString? Here is one (ugly) example: // Localized string: "\u{200F}Number %@" = "\u{200E}Number %@"; let string =…
Manuel
  • 14,274
  • 6
  • 57
  • 130
1 2
3
21 22