I have a HTML string that needs to be localized; the only problem is that it has parameters, like this:
NSString *htmlString = [NSString stringWithFormat:NSLocalizedString(@"<html><head>"
"<style type=\"text/css\"> body {font-family: \"Verdana\"; font-size: 12;} </style></head>"
"<body><h2>%@ %@</h2><p>email: %@<p>phone: %@<p>services: %@<p><img src=\"%@\"/>"
"</body></html>",nil),
client.aClientFirstName,
client.aClientLastName,
client.aClientEMail,
client.aClientPrimaryPhone,
appt.aServices,
fileURL];
The problem is that the "key" never contains the same data, and therefore will never match. This works fine when working with 'en' (because it defaults to that when it can't find a match), but all other languages fail when it gets displayed in a UIPopover. The question is: is there a way to code around this so no matter what the 'client' info is, it will display properly for each localization?