How to localize some strings from a HTML file that is displayed in a UIWebView controller under iOS?
问题 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. 回答1: Use a custom tag then, parse the HTML with NSXMLParser, and anything within your custom tag..