Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

localize many images in Xcode at once?

I have this project that i need to add a translation to. I already know how to add localisation to single image files, but there are 200+ images with text on it in that project. Do i really have to click one file at a time, "get info", click "add localisation" enter the Language and click OK for every file? When i select multiple images the languages and do those steps the new language is not added :-/

Please someone have a way to save me from insanity ;-)

Thanks! S

like image 840
Sebastian Avatar asked May 31 '10 10:05

Sebastian


1 Answers

What I do is create my localizable directories (en.lproj, fr_FR.lproj, etc) then I will drag all the localizable images into their respective directories, then add all the new images to the Xcode project. Xcode is smart enough to realize that the same image name exists in multiple .lproj directories

So, to reiterate:

  1. Create localizable directories (you can use Get Info->Make File Localizable then add localizations for all desired locales)
  2. Copy images for each locale into their respective directories
  3. Add all the images to the xcode project
like image 71
johnboiles Avatar answered Sep 30 '22 16:09

johnboiles