在我的应用程序中,我有一个包含以下内容的文本文件:
<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,但我不知道该怎么做。有任何想法吗?