Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7159273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:12:13+00:00 2026-05-28T13:12:13+00:00

I have a localized iOS application in which I wish to include some localized

  • 0

I have a localized iOS application in which I wish to include some localized HTML files. I can’t work out how to do it.

Currently, my folder structure looks like this:

/myapp
   /en.lrproj
       /Localizable.strings
   /fr.lrproj
       /Localizable.strings
   /webviews
      /view1
         /index.html
         /pic1.png
      /view2
         /index.html
         /pic2.png

As you can see, I currently have the views organized into their own folders with the associated images.

In XCode, when I selected the Localizable.strings files I can add new localizations. When searching for the solution to this problem I see that other people have done the same for the HTML files, however when I select the HTML files there are no options displayed for localizations, so I’m wondering if the folder structure is the problem.

On the other hand, I don’t know how to structure the HTML into language code folders whilst not replicating the graphics that have to be along side.

Clearly I’m not understanding something – what do I need to do to get this working?

Thanks,

Tim

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:12:14+00:00Added an answer on May 28, 2026 at 1:12 pm

    Arrange your index.html right next to the Localized.strings, keep the pics in the web views directory:

    /myapp
       /en.lrproj
           /Localizable.strings
           /view1/index.html
           /view2/index.html
       /fr.lrproj
           /Localizable.strings
           /view1/index.html
           /view2/index.html
       /webviews
          /view1
             /pic1.png
          /view2
             /index.html
             /pic2.png 
    

    The build a file path:

    NSArray* availableLocalizations = [[NSBundle mainBundle] localizations];    
    NSArray* userPrefered = [NSBundle preferredLocalizationsFromArray:availableLocalizations forPreferences:[NSLocale preferredLanguages]];
    NSString *filePath = [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html" inDirectory:@"view" forLocalization:[userPrefered objectAtIndex:0]];
    

    The picture in the html tree are now similar to

    /myapp/en.lrproj/view1/index.html  
    /myapp/webviews/view1/pic1.png
    

    Inside your index.html make the <img> tags point to ../../../webview/pic1.png
    (Not sure about the number of ../‘s that you need. You might want to open a terminal, navigate to /myapp/en.lrproj/view1/ and test with ls ../../../webview/pic1.png. )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some static resources (images and HTML files) that will be localized. One
I have a WinForms application which can be localized through satellite assemblies for the
I have a rails app which is localized in multiple languages. Some time for
I have already released an iOS application that is localized in english and greek
I have an PHP application that I want localized. Currently, the way I'm doing
I have localized application where user can choose her preferred language in dropdown control.
I have a localized application, and I am wondering if it is possible to
How can I have a localized default values in the Settings bundle? I encounter
Is it possible to customize a django application to have accept localized date format
If you have an application localized in pt-br and pt-pt , what language you

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.