【发布时间】:2016-01-07 00:01:09
【问题描述】:
我在导入 xliff 文件时遇到了一些奇怪的问题。我的代码中的一些故事板字符串和字符串都没有导入,即使它们在 xliff 文件中。
她是我的xliff:
<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
/* 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";
如您所见,“Attempts left”被排除在外......
有人知道为什么吗? (故事板中的一些字符串也被省略了)
谢谢..
【问题讨论】:
标签: xcode localization