【问题标题】:What is <context-group> in xliffxliff 中的 <context-group> 是什么
【发布时间】:2017-10-19 03:16:55
【问题描述】:

我注意到在生成 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>

【问题讨论】:

    标签: xml xliff


    【解决方案1】:

    &lt;context-group&gt; 元素包含与它所在的树中的级别相关的上下文元素。因此,上下文可以设置为&lt;group&gt; 级别、&lt;trans-unit&gt; 级别或&lt;alt-trans&gt; 级别。每个&lt;context-group&gt; 元素都可以命名,允许每个组有不同的用途。当&lt;context-group&gt; 被命名时,这些使用可以通过使用XML 处理指令来控制。因为&lt;context-group&gt; 元素可能出现在非常高的级别,所以可以为文件中的所有&lt;trans-unit&gt; 元素建立默认上下文。此默认值可以在许多后续级别上被覆盖。可选名称属性可以唯一标识&lt;file&gt; 元素内的&lt;context-group&gt;。可选的 crc 属性允许验证数据。可选目的属性指示使用此上下文信息的用途;例如“match”表示上下文信息用于内存查找。

    欲了解更多信息,请参阅:http://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html#context-group

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-06-26
    • 2016-12-07
    • 2013-05-04
    • 1970-01-01
    • 2021-08-26
    • 1970-01-01
    • 2023-01-13
    • 2010-12-18
    相关资源
    最近更新 更多