首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >xcode本地化-未导入所有翻译

xcode本地化-未导入所有翻译
EN

Stack Overflow用户
提问于 2016-01-07 08:01:10
回答 1查看 409关注 0票数 0

我在导入xliff文件时遇到了一些奇怪的问题。我的代码中的一些情节提要字符串和字符串都没有导入,即使它们在xliff文件中也是如此。

下面是我的xliff:

代码语言:javascript
复制
 <body>
        <trans-unit id="Athenticate for login">
            <source>Athenticate for login</source>
            <note>No comment provided by engineer.</note>
            <target>Autentisering for innlogging</target>
        </trans-unit>
        <trans-unit id="Attempts left: ">
            <source>Attempts left:</source>
            <note>No comment provided by engineer.</note>
            <target>Forsøk igjen: </target>
        </trans-unit>
        <trans-unit id="Wrong PIN-code. Try again">
            <source>Wrong PIN-code. Try again</source>
            <note>Message displayed when user enter wrong PIN-code</note>
            <target>Feil PIN kode. Forsøk igjen</target>
        </trans-unit>
    </body>

这是我的localizable.strings

代码语言:javascript
复制
/* No comment provided by engineer. */
"Athenticate for login" = "Autentisering for innlogging";

/* Message displayed when user enter wrong PIN-code */
"Wrong PIN-code. Try again" = "Feil PIN kode. Forsøk igjen";

如你所见,“剩余的尝试”被省略了……

有人知道为什么吗?(情节提要中的一些字符串也被省略了)

谢谢..。

EN

回答 1

Stack Overflow用户

发布于 2016-01-07 16:25:47

问题可能是在您的XLIFF中,“尝试左”的ID和源文本是不同的: ID有一个尾随空格,源文本已经在冒号之后结束。尝试向XLIFF源内容添加一个空间,然后查看导入是否有效。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34645150

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档