Add new language to existing Xcode project localization
        Posted  
        
            by leolobato
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by leolobato
        
        
        
        Published on 2010-05-14T13:27:53Z
        Indexed on 
            2010/05/14
            13:34 UTC
        
        
        Read the original article
        Hit count: 487
        
Hey guys,
I'm working on an existing Xcode 3.2.2 Universal iPhone OS project which is already localized for 4 languages (EN, IT, DE and FR). We are now adding a new language (JA) into this project.
Each existing .lproj folder (en.lproj, it.lproj, de.lproj and fr.lproj) has almost 60 files - including PNGs, HTMLs and the Localizable.strings file. Each one of those files appear as localized groups inside Groups & Files in Xcode. They're spread all over the tree.
If I right-click one of those groups (say, Localizable.strings) inside Xcode, Get Info, click on "Add Localization" and type "ja" - as the Xcode docs suggest, nothing happens. From what I read in this newgroup, it's possibly because of the way those folders are named. If they were named like English.lproj and Italian.lproj, this was supposed to work.
So, for me to actually import a new language localized file into the existing group, I have to:
- Right-click the localized group file.
- Choose "Add Existing File".
- Select the corresponding file inside the ja.lprojfolder.
I'm about to get a new ja.lproj folder with those 60 localized files and would love to import them in the project in a way that doesn't involve searching for every single file in Groups & Trees and performing those steps... for every one of those 60 files.
Is that possible? Is there a right (or better) way to import a new language into this Xcode project?
© Stack Overflow or respective owner