Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Duplicate Localized Resource Files

I have an app that is intended to be localized into 5 languages via Localizable.strings files. When I view the Project > Info: Localizations information, I see duplicates of some languages (English, French, German) and an unintended language (Japanese).

enter image description here

My Resources in XCode, also appear off. But if I look at the Resources directory in Finder, they appear as I would expect.

enter image description hereenter image description here

I have tried:

  • Delete one of the duplicate files, via the - button, both lines disappear and the resource is gone from my Resource tree in XCode and my Resources directory in Finder.
  • Product > Clean Build Folder
  • Viewing subversion file structure in Versions

I'd appreciate any suggestions and an explanation. I'm using XCode 6.1.1 on Mavericks. Thank you.

like image 622
DenVog Avatar asked Dec 04 '14 14:12

DenVog


1 Answers

I was running in the same issue and it was fixed by manually editing the project.pbxproj file inside the .xcodeproj Xcode project file container.

Before:

...
knownRegions = (
    English,
    German,
    en,
    de,
    Base,
);
...

After:

...
knownRegions = (
    en,
    de,
    Base,
);
...
like image 187
Fabian Kreiser Avatar answered Sep 19 '22 16:09

Fabian Kreiser