In my app, I have a text file that contains something like this:
<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>
This data will be loaded to a UIWebView and everything is working. However, I want the texts to be localizable so I'm thinking of putting them to Localizable.strings. And so, Localizable.strings has something like this:
FIRST_STATEMENT = "This is the first statement";
SECOND_STATEMENT = "This is the second statement";
Now, the question is, how I'm going to access the data from Localizable.strings so that I can put them to the contents of the UIWebView object? I'm thinking of javascript but I'm not sure how to do it. Any ideas?