localize many images in Xcode at once?

为君一笑 提交于 2020-01-21 03:10:06

问题


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


回答1:


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


来源:https://stackoverflow.com/questions/2942771/localize-many-images-in-xcode-at-once

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!