gpt4 book ai didi

ios - 如何为 Apple Store(ionic 应用程序)正确设置英语以外的其他语言

转载 作者:行者123 更新时间:2023-11-29 00:36:46 24 4
gpt4 key购买 nike

我第一次将这个 ionic 应用程序上传到 Apple Store 时,它​​显示为语言“英语”,因为我查看了这里和网络并设法添加了本地化文件。现在我的项目说:

enter image description here

我将新版本上传到 iTunes Connect,但它仍然显示英语作为应用程序语言(应该是德语)

我的 de.xliff 文件是:

    <?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 http://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd">
<file original="myApp/myApp-Info.plist" source-language="en" datatype="plaintext" target-language="de">
<header>
<tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="8.1" build-num="8B62"/>
</header>
<body>
<trans-unit id="CFBundleDisplayName">
<source>${PRODUCT_NAME}</source>
</trans-unit>
<trans-unit id="CFBundleName">
<source>${PRODUCT_NAME}</source>
</trans-unit>
<trans-unit id="CFBundleShortVersionString">
<source>1.1.0</source>
</trans-unit>
</body>
</file>
<file original="myApp/Localizable.strings" source-language="en" datatype="plaintext" target-language="de">
<header>
<tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="8.1" build-num="8B62"/>
</header>
<body>
<trans-unit id="Load Error">
<source>Load Error</source>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="Loading...">
<source>Loading...</source>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="►">
<source>►</source>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="◄">
<source>◄</source>
<note>No comment provided by engineer.</note>
</trans-unit>
</body>
</file>
</xliff>

我做错了什么?

最佳答案

您的 de.xliff 文件不包含单个目标语言字符串。翻译后的 XLIFF 文件应包含 <target>每个可翻译的元素 <source>元素,像这样:

  <trans-unit id="Load Error">
<source>Load Error</source>
<target>Ladungsfehler</target>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="Loading...">
<source>Loading...</source>
<target>Laden...</target>
<note>No comment provided by engineer.</note>
</trans-unit>

请不要在您的应用中使用我的翻译:它们很可能不正确,因为 Load 可以有多种含义。您应该考虑在其中添加一条注释,告诉您的翻译人员 Load Error 的含义。和 Loading... .

关于ios - 如何为 Apple Store(ionic 应用程序)正确设置英语以外的其他语言,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40406372/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com