Default.png的本地化无效 [英] Localization of Default.png is not working

查看:145
本文介绍了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. 点击Make File Localizable

  4. 返回General标签(为什么Apple,为什么? )

  5. 点击添加本地化

  6. 根据此输入西班牙语es:

  7. 在Finder中我更换es.lproj文件夹中的Default.png

  1. Select Default.png in xcode
  2. Command-I to Get Info
  3. Click on Make File Localizable
  4. Go back to General Tab (why Apple, why?)
  5. Click on Add Localization
  6. Enter es for Spanish according to this:
  7. In finder I replace the Default.png in the es.lproj folder

我在模拟器和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)

选择Build> Clean All Targets

Select Build > Clean All Targets

如果尚未完成,请制作Localizion目录(例如es.lproj,de.lproj)

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

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

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天全站免登陆