Default.png 的本地化不起作用 [英] Localization of Default.png is not working

查看:20
本文介绍了Default.png 的本地化不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知道有没有人遇到过同样的问题以及他们是如何解决的.

I wonder if anyone has encountered the same problem and how they solve it.

我想本地化 Default.png,所以我执行以下步骤,据我所知,这应该是正确的方法(如果我错了,请纠正我).

I want to localize Default.png so I do the following steps which from what I understand should be the correct way (please correct me if I'm wrong).

  1. 在 xcode 中选择 Default.png
  2. Command-I 获取信息
  3. 点击使文件可本地化
  4. 返回常规"选项卡(为什么选择 Apple,为什么?)
  5. 点击添加本地化
  6. 根据这个输入西班牙语的es:
  7. 在查找器中,我替换了 es.lproj 文件夹中的 Default.png

我已经尝试在模拟器和 iPhone 上更改英语和西班牙语之间的语言,但我只得到原始文件.其他本地化(例如应用名称和字符串)也可以正常工作,但不是这个...

I have tried in both the simulator and on an iPhone with changing the language between English and Spanish, but I only get the original file. Other localizations like app name and strings works just fine, but not this one...

我使用的是 xcode 3.2.3

I'm on xcode 3.2.3

谢谢

推荐答案

我从开发者论坛获得了这个解决方案(感谢 Sascha Paulus,感谢 Sascha!).

I got this solution from Developers Forum (credit to Sascha Paulus, thanks Sascha!).

我在另一个本地化项目中遇到了类似的问题,但解决方案对这两个问题都有效.

I had a similar problem in another project with localization, but the solution worked for both issues.

我们开始吧:

  1. 从模拟器中删除应用(只是为了确定)

  1. Delete App from Simulator (just to be sure)

删除所有版本的本地化 Default.png(在 XCode 和光盘上)

Delete all versions of the localized Default.png (in XCode & on Disc)

选择构建 > 清除所有目标

Select Build > Clean All Targets

如果尚未完成,请制作本地化目录(例如 es.lproj、de.lproj)

If not done yet, make the Localizion Directories (e.g. es.lproj, de.lproj)

将本地化的 Default.png 复制到相应的本地化目录中

Copy the localized Default.png in the appropriate Localizion Directory

我认为诀窍是删除有问题的文件,清除所有文件,然后重新添加.如果您没有任何本地化,则无需创建特定文件夹.

I think the trick is to delete the file you have a problem with, clean all and then add it again. If you don't have any localization there is no need to create a specific folder.

试一试,对我有用.

这篇关于Default.png 的本地化不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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