2016-05-23 103 views
1

我已成功创建新的liferay资产资源,但我无法为自己的新资源设置自定义标签。更改liferay资源标签

Workflow Control Panel

正如你所附加的图片中看到,我有标记为“model.resource.com.it.portlet.gestionincidencias.model.Incidencia”的资源。

我想改变我的模型类“Incidencia”

任何帮助的标签“model.resource.com.it.portlet.gestionincidencias.model.Incidencia”,并设置唯一的名字?谢谢!

回答

2

您必须创建一个全局语言钩子来声明语言属性并在其中添加您的密钥。

在Liferay中,hook.xml:

<language-properties>content/Language.properties</language-properties> 

而在你Language.properties文件:

model.resource.com.it.portlet.gestionincidencias.model.Incidencia=Incendia