一次在Xcode中本地化许多图像? [英] localize many images in Xcode at once?

查看:83
本文介绍了一次在Xcode中本地化许多图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个项目需要添加翻译。我已经知道如何向单个图像文件添加本地化,​​但在该项目中有200多个带有文本的图像。我真的必须一次单击一个文件,获取信息,单击添加本地化输入语言并单击确定每个文件?
当我选择多个图像语言并执行这些步骤时,不添加新语言: - /

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 ;-)

谢谢!
S

Thanks! S

推荐答案

我所做的是创建可本地化的目录(en.lproj,fr_FR.lproj等)然后我将所有可本地化的图像拖动到各自的目录中,然后将所有新图像添加到Xcode项目中。 Xcode很聪明,可以意识到多个.lproj目录中存在相同的图像名称

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

所以,重申:


  1. 创建可本地化的目录(您可以使用获取信息 - >使文件可本地化,然后为所有需要的区域设置添加本地化)

  2. 将每个区域设置的图像复制到各自的区域目录

  3. 将所有图像添加到xcode项目中

这篇关于一次在Xcode中本地化许多图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆