Internationalization: instead of a localized string, only the key name is displayed in Simulator

Localization works in languages ​​other than English, pretty well. Every time I compile my application, I see a key name instead of a localized string. Example:

NSLocalizedString(@"WelcomeKey", @"")

In Localizable.strings, I have a corresponding entry:

"WelcomeKey" = "Welcome";

In the simulator, I always get the key name WelcomeKeyinstead Welcome. On the device, this works fine. In the simulator, no!

I also found out that my EN Localizable.strings file was filled with "???????" characters. So I added the old values ​​and saved them in Xcode. I also added the entry manually instead of using it genstrings. In the simulator, the second language also works fine. The problem is that only English. Perhaps I deleted the English .lproj and created the EN.lproj folder?

I tried:

  • Empty cache
  • Clear all goals
  • Delete the folder "User / xxx / Library / Application Support / iPhone Simulator / User"
  • Mac reboot
  • Convert to UTF-16
  • Created new Localizable.strings for EN
  • Delete the folder and EN.lproj files. Localization is made completely new.

What am I missing? I think the simulator hates English ...

Edit:

, Mac. ! , Xcode, .

+5
5

, iPhone/iPhone.

, . X. . "", .

+2

, Localizable.strings - UTF-16.

0

Localizable.strings , UTF-8.

0

, , - Reset iOS Simulator.

0

1 - .

2 - Localizable.strings . . Localizable.string .

3 - localizable.strings(, sharekit). ..

0

All Articles