I’m trying to localize my strings in Xcode 4, but the only thing I get are the keys, not the values.
I’ve localized the strings using NSLocalizedString(key, comment).
I’ve generated the file Localizable.strings using genstrings from the command line.
I’ve dragged and dropped Localizable.strings from Finder to Xcode (into the Resources folder).
I’ve localized Localizable.strings and added the appropriate countries.
I’ve made sure the encoding is UTF-16.
I’ve translated the different Localizable.strings for each country.
I’ve rechecked that the encoding is still UTF-16.
I’ve checked that each statement in Localizable.strings ends with a semi colon.
Still not working.
Any idea of what I’ve missed?
edit
Here a part of my 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...";
I managed to get it working.
What I did was remove the Localizable.strings (from the harddrive, I haven’t touched the files located in the xx.lproj folders) file which genstrings created for me and removed the app-file on my device.