I’ve read few tutorials, but each one says something different and I’ve got really confused. What is the propiret way to localize my application?
some says like this:
NSLocalizedString(@"Welcome to app", @"Welcome title label");
and other says:
NSLocalizedString(@"AppWelcomeMessage", nil);
And in the Localizable.strings, I need to set like this:
"AppWelcomeMessage" = "Welcome to my application!";
Is the comment in NSLocalizedString(key,comment) is just a description of the key? or it’s important and have an effect on the translation itself? what is the right order?
Thanks for helping!
The comment in
NSLocalizedStringis for the use ofgenstrings. You can leave itnilif you do all your localizations yourself. Otherwise, you should make an effort to add a meaningful piece of information to help the people who do localizations for you. Improving their understanding of the context in which the translation is to be made has direct impact on the quality of the translations that you are going to get.