I need to translate text in controller.body
My code:
controller.body = [NSString stringWithFormat:@"\n\n"
"Label 1: %@ \n"
"Label 2: %@ \n"
"Label 3: %@ \n"
"Label 4: %@", label1.text, label2.text, label3.text, label4.text];
I have file Localizable.strings, how can I localize a string with formatting placeholders? I mean that text “Label 1”, “Label 2” etc…
You will need to use
NSLocalizedStringyour
localizable.stringwill look likeAnd your code