Я пытаюсь локализовать свои строки в Xcode 4, но единственное, что я получаю, это ключи, а не значения.
Я локализовал строки, используя NSLocalizedString(key, comment)
. Я создал файл Localizable.strings, используя genstrings из командной строки. Я перетащил Localizable.strings из Finder в Xcode (в папку «Ресурсы»). Я локализовал Localizable.strings и добавил соответствующие страны. Я убедился, что кодировка UTF-16. Я перевел разные Localizable.strings для каждой страны. Я перепроверил, что кодировка все еще UTF-16. Я проверил, что каждое выражение в Localizable.strings заканчивается точкой с запятой.
До сих пор не работает.
Есть идеи, что я пропустил?
изменить
Здесь часть моего 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...";