How do I use NSLocalizedString in this case when I have a header where I define a few parameters, say:
#define appKey @"appKey1 is: %@"
I think I know that my Localizable.strings should look like that:
"blabla" = "appKey1 is: %@"
but how do I use NSLocalizedString? I read that I need to use stringWithFormat, but not sure how…
thanks!
You would define your constant as:
Then it should get picked up by the genstrings tool in the usual way.
In the strings file it would then come out like this:
And you would translate just the right hand side.