我有一个带有自定义小部件的模块,我需要翻译小部件名称和参数 转换文件存在于模块中,并且用于除小部件之外的其他字符串。 辅助器也存在于模块中。 这是我的widget.xml:
<widgets>
<current_coupons type="coupons/coupon_widget_current" translate="name description" module="coupons">
<name>Current Coupons List</name>
<description>List of Coupons that currently active</description>
<is_email_compatible>1</is_email_compatible>
<parameters>
<coupons_count translate="label">
<required>1</required>
<visible>1</visible>
<value>5</value>
<label>Number of Coupons to Display</label>
<type>text</type>
</coupons_count>
<coupons_type translate="label">
<required>1</required>
<visible>1</visible>
<value>latest</value>
<label>Type of the listing (Annonce or Latest)</label>
<type>select</type>
<values>
<latest translate="label">
<value>latest</value>
<label>Latest</label>
</latest>
<annonce translate="label">
<value>annonce</value>
<label>Annonce</label>
</annonce>
</values>
</coupons_type>
</parameters>
</current_coupons>
请帮忙。谢谢!
答案 0 :(得分:0)
通过在config.xml文件中添加section到section来解决问题。