我注意到在生成xliff文件时,它创建了名为context-group
的节点。我不确定它们用于什么。
<trans-unit id="edc96753971323c438706da1820e74730a79d1af" datatype="html">
<source>Your response to this survey has already been recorded. Thank You.</source>
<context-group purpose="location">
<context context-type="sourcefile">app\core\forbidden.component.ts</context>
<context context-type="linenumber">5</context>
</context-group>
<note priority="1" from="description">Message for survey already taken</note>
<note priority="1" from="meaning">Survey Already Taken Page</note>
</trans-unit>
答案 0 :(得分:1)
<context-group>
元素保存与发生它的树中的级别相关的上下文元素。因此,上下文可以设置为<group>
级别,<trans-unit>
级别或<alt-trans>
级别。可以命名每个<context-group>
元素,允许每个组使用不同的元素。命名<context-group>
时,可以通过使用XML处理指令来控制这些用途。由于<context-group>
元素可能出现在非常高的级别,因此可以为文件中的所有<trans-unit>
元素建立默认上下文。可以在许多后续级别覆盖此默认值。可选的name属性可以唯一标识<context-group>
元素中的<file>
。可选的crc属性允许验证数据。可选的目的属性指示使用该上下文信息的用途;例如&#34;匹配&#34;表示上下文信息用于内存查找。
有关详细信息,请参阅:http://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html#context-group