Skip to content

Localizable.strings is parsed only if it is added to the project in a folder reference #3

@imrekel

Description

@imrekel

If the Localizable.strings file is directly referred by the project, it is not parsed by rgen.

I have tracked the bug to the point that ResourcesGenerator receives loadFileReference:targetName: with the XcodeFile name:"Localizable.strings" and absolute path:"/Users/Test/Dev/Test/Localizable.strings", but then comes this check to see if it is a directory:

if ([[NSFileManager defaultManager] fileExistsAtPath:absPath
                                       isDirectory:&isDir] && isDir) {

Since this is not a directory but a file, the check fails and the code which would detect that it is indeed the Localizable.strings file, never executes. I don't really see why would I have to add strings resources via folder references.

I have tried that if I add an arbitrary folder reference, containing the Localizable.strings file then it is recognized correctly, e.g.:

Screen Shot 2013-02-11 at 19 45 42

This issue affects monolingual files only (which doesn't have multiple variants).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions