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

查看:14
本文介绍了一次在 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

推荐答案

我要做的是创建我的可本地化目录(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. 创建可本地化的目录(您可以使用 Get Info->Make File Localizable 然后为所有需要的语言环境添加本地化)
  2. 将每个语言环境的图片复制到各自的目录中
  3. 将所有图片添加到 xcode 项目中

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

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