Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It looks like the only way localization works in iOS is different. You base folders hierarchy should be by inverted: first goes actual folders structure and in each and every folder you want to localize, you put corresponding <code>.lproj</code> sub-folder with localized resources. So in your example it should be something like:</p> <pre><code>/Images /iPad /en.lproj btn-check-pressed~ipad.png /ru.lproj btn-check-pressed~ipad.png /iPadRetina /en.lproj btn-check-pressed@2x~ipad.png /ru.lproj btn-check-pressed@2x~ipad.png </code></pre> <p>This might be sub-optimal if you intended to have big hierarchy but this is the only way it works out of the box. </p> <p>Of course you can always say that you don't need Xcode support and use some custom build rules to re-arrange files in you project in the way you like and then copy them into proper structure during build but I doubt it worths troubles.</p> <p><strong>Update</strong>: it looks like XCode (<em>4.5</em>) build script is the main villain.</p> <p>According to my experiments build script should flattens resources structure at least for images. So the only way localized app can be inside is:</p> <pre><code>/YourApp YouApp info.plist .... /en.lproj btn-check-pressed~ipad.png btn-check-pressed@2x~ipad.png /ru.lproj btn-check-pressed~ipad.png btn-check-pressed@2x~ipad.png </code></pre> <p>The trick is that by default XCode (as of version 4.5) can flatten your project structure only if it is as described above and I don't see a standard way to change this behavior.</p> <p>Of course, original comment about custom build scripts is still true.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload