如何为继承的 属性 覆盖 i18n?
How override i18n for inherited property?
假设有一个类型从另一个扩展而来:
<type name="sc:myType">
<parent>bpm:workflowTask</parent>
<properties>
<property name="sc:myProperty">
<type>d:text</type>
</property>
</properties>
</type>
i18n for sc:myProperty
看起来像这样:
sc_myModel.property.sc_myProperty.title=Description
但是如果需要为 sc:myType
覆盖 cm:title
怎么办?如何在不覆盖所有类型的cm:title
的情况下做到这一点?
看来最好在field标签中提供一个label-id
属性并指定客户消息。
<field label-id="some.message" id="cm:title">
假设有一个类型从另一个扩展而来:
<type name="sc:myType">
<parent>bpm:workflowTask</parent>
<properties>
<property name="sc:myProperty">
<type>d:text</type>
</property>
</properties>
</type>
i18n for sc:myProperty
看起来像这样:
sc_myModel.property.sc_myProperty.title=Description
但是如果需要为 sc:myType
覆盖 cm:title
怎么办?如何在不覆盖所有类型的cm:title
的情况下做到这一点?
看来最好在field标签中提供一个label-id
属性并指定客户消息。
<field label-id="some.message" id="cm:title">