在我的应用程序,我有一个包含像这样的文本文件:如何阅读Localizable.strings的内容并把它放到一个UIWebView
<html>
<style rel="stylesheet" type="text/css">
body {
font-family: Arial, sans-serif;
font-size: 18px;
color: #333333;
padding: 14px;
text-align: justify;
}
h2 {
font-size: 18px;
}
</style>
<body>
<p>
This is the first statement.
<br>
This is the second statement.
</p>
</body>
</html>
该数据将被加载到一个UIWebView和一切工作。但是,我希望文本是可本地化的,所以我正在考虑将它们放到Localizable.strings中。因此,Localizable.strings有这样的事情:
FIRST_STATEMENT = "This is the first statement";
SECOND_STATEMENT = "This is the second statement";
现在的问题是,我要如何从Localizable.strings访问数据,这样我可以把他们的一个UIWebView对象的内容?我在想JavaScript,但我不知道该怎么做。有任何想法吗?