Я пытаюсь локализовать свои строки в Xcode 4, но я получаю только ключи, а не значения.
Я локализовал строки, используя NSLocalizedString(key, comment)
.Я сгенерировал файл Localizable.strings, используя genstrings из командной строки.Я перетащил Localizable.strings из Finder в Xcode (в папку ресурсов).Я локализовал Localizable.strings и добавил соответствующие страны.Я убедился, что кодировка UTF-16.Я перевел разные Localizable.strings для каждой страны.Я перепроверил, что кодировка по-прежнему UTF-16.Я проверил, что каждый оператор в Localizable.strings заканчивается точкой с запятой.
Все еще не работает.
Есть идеи о том, что я пропустил?
edit
Здесь часть моих Localizable.strings
/* Text displayed on the comment button if there are more than one comment. */
"CommentButtonTextPlural" = "comments";
/* Text displayed on the comment button if there is exacly one comment. */
"CommentButtonTextSingular" = "comment";
/* Text displayed on the post button. */
"CommentViewPostButtonLabel" = "Post";
/* Default text displayed in the area where the user types in a comment. */
"CommentViewWriteAComment" = "Write a comment...";
/* Error message explaining that a document isn't viewable on the user's device. */
"DocumentRendererStatusDetailedErrorText" = "This document is not viewable on this device.";
/* Message explaining that the document is downloading. */
"DocumentRendererStatusDownloadingText" = "Downloading...";