title: How to localize html strings in iOS
body: <p>I want to write html code locally and show it in UIWebview ,so for this ,I have taken a simple html code ,as below and created a .html extension file..</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  
  &lt;h1&gt;My First Heading&lt;/h1&gt;
  
  &lt;p&gt;My first paragraph.&lt;/p&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I added this file into my xcode project ,now I want to load this file inside webview ,so I have written this code</p>
  
  <pre><code>[m_websiteView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"test" ofType:@"html"]isDirectory:NO]]];
  </code></pre>
  
  <p>but the output I get when I run this code in UIWebView is same htmlcode, I cant figure out what the problem is..but when I tried using this code</p>
  
  <pre><code> NSString *path = [[NSBundle mainBundle] bundlePath];
      NSURL *baseURL = [NSURL fileURLWithPath:path];
  
      NSString *testString = @"&lt;h1&gt;&lt;i&gt;This is an image using reference in HTML&lt;/i&gt;&lt;/h1&gt;"
      "&lt;img src='active.png'&gt;&lt;/img&gt;";
      [m_websiteView loadHTMLString:testString baseURL:baseURL]; 
  </code></pre>
  
  <p>this works perfect.also I want to localize the strings in this html code,so in the above code,how can I localize this string "This is an image using reference in HTML"..</p>
  
  <p>Regards
  Ranjit</p>