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

查看:23
本文介绍了带有 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天全站免登陆