I have the following line of code:
NSLog([NSString stringWithFormat:NSLocalizedString(@"KEY", nil),80.1]);
80.1 is a float that is inserted into a localized string. It works great. However, I want the% character in a localized string. I tried using %%, but it does not output the% character - instead, it displays the space, the numbers 5302, and also removes the part of the line that precedes the %% characters.
How to add the% character to the string returned by NSLocalizedString?
source share