带有lproj目录的iOS游戏本地化不起作用 [英] iOS game localization with lproj directories not working

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

问题描述

我的游戏以3种不同的语言本地化.为了让iTunes Connect知道游戏已本地化,我创建了以下文件:

My game is localized in 3 different languages. In order to let iTunes Connect know that the game is localized I created these files:

  • ios \ resources \ en.lproj \ Localizable.strings
  • ios \ resources \ es.lproj \ Localizable.strings
  • ios \ resources \ ca.lproj \ Localizable.strings

这三个都具有以下内容:

all three with this content:

"AppName"="MechaNika"

成为 MechaNika 我的游戏名称.

但是,在创建IPA文件并将其上传到使用Application Loader的iTunes Connect之后,它说我的游戏只有英文,所以看来我缺少了一些东西.

However, after creating the IPA file and uploading it to iTunes Connect with the Application Loader, it says that my game is only in English, so it seems that I'm missing something.

请注意,我不是在使用Xcode,而是使用libGDX + IntelliJ IDEA + gradle + RoboVM.

Note that I'm not using Xcode but libGDX + IntelliJ IDEA + gradle + RoboVM.

也就是说,您知道我该怎么做吗?

That said, do you know how can I make this work?

推荐答案

我终于可以在没有任何lproj目录的情况下运行它了,只是将其添加到Info.plist.xml文件中:

I finally got it working without any lproj directories, but just adding this to the Info.plist.xml file:

<key>CFBundleLocalizations</key>
<array>
    <string>en</string>
    <string>es</string>
    <string>ca</string>
</array>

源1

来源2

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

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