Note that there are some explanatory texts on larger screens.

plurals
  1. POsubfolders in iPhone localization folders
    text
    copied!<p>I would like to localize some images in my iPhone project. So I created files:</p> <pre><code>en.lproj/Images/iPad/btn-check-pressed~ipad.png en.lproj/Images/iPadRetina/btn-check-pressed@2x~ipad.png ru.lproj/Images/iPad/btn-check-pressed~ipad.png ru.lproj/Images/iPadRetina/btn-check-pressed@2x~ipad.png </code></pre> <p>and so on and added them to my project. But Xcode shows "English 0 files localized", "Russian 0 files localized" in Localizations list. </p> <p>It also shows a warning </p> <p><code>Warning: Multiple build commands for output file /Users/User/Library/Developer/Xcode/DerivedData/TestLocalizationDefaultPNG-ckplzmcjurofxrccjuvyzjaqketc/Build/Products/Debug-iphonesimulator/TestLocalizationDefaultPNG.app/btn-check-pressed~ipad.png</code></p> <p>for each of my files when I try to build the project. So, as far as I understand, it copies all files in one folder, and since my files have the same names - only one of them can survive. But, if I remove my subfolders:</p> <pre><code>en.lproj/btn-check-pressed~ipad.png en.lproj/btn-check-pressed@2x~ipad.png ru.lproj/btn-check-pressed~ipad.png ru.lproj/btn-check-pressed@2x~ipad.png </code></pre> <p>everything works fine.</p> <p>Is there is a way to keep subfolders? Here <a href="http://developer.apple.com/library/ios/#documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html" rel="nofollow">http://developer.apple.com/library/ios/#documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html</a> in Listing 2-4 subfolder used for the audio files, so it should be.</p>
 

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