我有下面的xliff-Translation-Format。我需要在xliff-file中将Textitems标记为未翻译,以便Weblate将其显示为未翻译。
<source>Delete</source>
<note priority="1" from="description">Delete alert dialog</note>
<note priority="1" from="meaning">Delete button label</note>
<target state="needs-translation">Delete</target>看起来weblate不能识别状态属性。仅当Target-Tag为空时,Weblate才会将项目显示为未翻译。但Target-Tag始终需要不为空,因为应用程序没有回退,此时将不会显示任何内容。
发布于 2019-02-12 21:25:30
Weblate documentation非常清楚,如果<target>元素包含内容,则可以使用state属性指定其状态,例如,使用new、needs-translation、needs-adaptation、needs-l10n。
你所描述的似乎与上述描述不符。因此,在确保错误不在您这一端之后(您使用的是正确的XLIFF文件和最新的Weblate版本,您没有在<trans-unit>元素上使用任何与目标状态冲突的属性,等等),请确保提交一个issue。
同时,你可以尝试上面列出的其他状态值,也许Weblate会选择这些值。或者,您可以尝试各种上传选项(文档中提到了"Upload as translated“)。
https://stackoverflow.com/questions/54647448
复制相似问题