I am looking for a way that would allow me to localize some strings from inside a HTML file that is displayed in a UIWebView under iOS.
I want to use NSLocalizesString() for doing the localization, so I am looking for a simple solution that would like me to generate the localized html file before displaying it.
I do have full control over the HTML file and plant to use some kind of placeholders.
Use a custom tag then, parse the HTML with NSXMLParser, and anything within your custom tag… e.g.
<localize>Something</localize>– you strip the tags, localize the string, then hand this HTML over to your web view.