title: NSBundle pathForResource doesn't work for subdirectory localization?
body: <p>I saw quite a few questions regarding <code>[NSBundle MainBundle] pathForResource</code> (using inDirectory or not), but my case seems different.</p>
  
  <p>My problem is: Yes, it works fine for whatever files in subdirectory if without localization. For example, it returns the correct path for the file <code>data/a/words.txt</code> when I use</p>
  
  <pre><code>[[NSBundle mainBundle] pathForResource:@"words.txt" ofType:nil inDirectory:@"data/a"]
  </code></pre>
  
  <p>However, after I localized the <code>words.txt</code>, let's say the real path becomes: <code>data/a/en.lproj/words.txt</code>, then the above code cannot find the path anymore.</p>
  
  <p>I checked the file in the .app package and the file has been copied into the correct path <code>(data/a/en.lproj)</code>, it's just somehow the code cannot find it.</p>
  
  <p>I'm using XCode 5.1.1</p>
  
  <p>Isn't <code>pathForResource</code> supposed to find the text automatically?</p>