[Solved] what is the use of NSLocalizedString and when to use?


Second parameter will be used as a prompt to translators about context of string being used in your application. It will be added to file generated by genstring tool, output will be something like:

self.textfiled.text = NSLocalizedString(@"AboutUserKey", @"Title for about user button")];
...
// en/Localizable.string
/* Title for about user button */
"AboutUserKey" = "About";

// ru/Localizable.string
/* Title for about user button */
"AboutUserKey" = "О пользователе";

1

solved what is the use of NSLocalizedString and when to use?