Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode: Show all localized files for one language (IOS project)

I have been searching XCode and Google all over, but I just can't find out how to do it:

I am using Base localization and it shows 4 Files Localized for English. I have no idea why it's 4 and I would like to find out why. But how? How can I get a list of all localized files (and where these files are located)?

Is this such an uncommon task that I can't find any answer to it? Or is it that obvious and I am just unable to find it?

I realized that when I am trying to add another language (like Japanase), I will see there are 4x InfoPlist.strings-files for English and 1x file for Base Localization (Storyboard), but I still don't know why and where are these files and how to remove them.

Checking the en.lproj Folder, there is only 1 InfoPlist.strings-file. Why XCode is telling me that I have 4 of them?

like image 407
michaelk Avatar asked Sep 27 '13 07:09

michaelk


2 Answers

There is a way to delete the localized files. If you are using version control, you can make sure your work is committed and your tree is clean. Then when you delete the localized files, you can just check the status of your tree and see what files they were, and recover them a figure out what you need to do from there.

I agree that it is a pretty terrible developer experience. Just add it to the list of ways in which mobile developers are abused.

enter image description here

like image 73
Bruno Bronosky Avatar answered Sep 19 '22 13:09

Bruno Bronosky


The easiest way is to open een finder screen in the root of your project. After that enter en.lproj (or your main language) in the search bar.

Select to only search in the folder

Now you have a list with all the files which are localized.

Search for localized files in xCode project

like image 20
ejazz Avatar answered Sep 18 '22 13:09

ejazz