hmc结构中的本地化

时间:2015-05-15 08:50:04

标签: xml properties localization structure hybris

我有问题。 我有 hmc.xml 结构的这一部分:

<type name="Order" mode="append"> <!-- LOLLO -->
        <organizer>
            <search mode="append">
                <condition attribute="versionID" operator="is null" />
            </search>
            <editor mode="append">
                <tab name="positions_and_prices" position="0" mode="append">
                    <section name="original_totals" position="1" mode="append">
                        <listlayout>
                            <attribute name="subTotalOriginal" descriptionattribute="currency" labelwidth="530" width="124">
                                <doubleeditor>
                                    <parameter key="align" value="right"/>
                                </doubleeditor>
                            </attribute>
                            <attribute name="totalDiscountsOriginal" descriptionattribute="currency" labelwidth="530" width="124">
                                <doubleeditor>
                                    <parameter key="align" value="right"/>
                                </doubleeditor>
                            </attribute>

我会翻译 original_totals 部分。 我尝试添加像

这样的代码
  

section.original_totals = OriginalTotals

但没有任何反应。 我该如何参考这一部分? 这里有结构截图:

enter image description here

1 个答案:

答案 0 :(得分:1)

在您的 hmc.xml 中,您引用 original_totals ,这应该是 section.original_totals ,从而导致: name =&#34; section.original_totals&#34; 。如果您覆盖/扩展现有功能并且您不确定如何声明代码,那么查找原始文件总是一个好习惯,在本例中是hmc扩展名中的hmc.xml。