views:

525

answers:

2

In the process of localizing my app, I have about 50 resources (mostly xibs) that need to be localized. I know how to add a localization for each file, but it's a pretty time consuming process to open the info panel and add the localization for each file.

Is there any way to select multiple files and add a localization to each of them in one shot?

Edit to add: Is this a place where AppleGlot or iLocalize can help? I haven't yet looked at those tools.

+1  A: 

Just create a directory for the language you are localizing for if it isn't already there (e.g. "en.lproj") and copy all the files there. Then go into xcode and add the newly copied files to your project.

Eric Petroelje
tried that and End up with a "foo.lproj" group added to my project, instead of new localizations added to each resources's group
Mike Akers
Hmm.. There are a few options when you add the files to your project - did you check any of the "copy files" or "add groups recursively" boxes? If so, that might be why that happened.
Eric Petroelje
Yeah, I've tried all the different options there and always end up with the same result.
Mike Akers
A: 

Have you tried using ibtool? This tool, which runs from the Terminal, can list the classes or objects in a nib files and can also dump the localizable strings into a plist.

I haven't tried this tool though, but you can find more info by typing "man ibtool" in the Terminal.

Earl Claridad