Liferay 如何使用现有的JSP钩子覆盖Languange_ru.properties?

Liferay 如何使用现有的JSP钩子覆盖Languange_ru.properties?,liferay,hook,Liferay,Hook,嗨,我有一个用于忘记密码的钩子和其他与登录相关的portlet 在忘记密码.jsp中,我有一个按钮,其值是send password reset link 此条目没有俄语翻译。所以我想为Language_ru.properties添加钩子 在Liferay-hook.xml中,我添加了 com/dcp/serviceportal/portlets/hook/resources/Language\u ru.properties 我在liferay论坛中添加了一些帖子,但它并没有起到这样的作用 内容

嗨,我有一个用于忘记密码的钩子和其他与登录相关的portlet

在忘记密码.jsp中,我有一个按钮,其值是send password reset link

此条目没有俄语翻译。所以我想为Language_ru.properties添加钩子

在Liferay-hook.xml中,我添加了 com/dcp/serviceportal/portlets/hook/resources/Language\u ru.properties

我在liferay论坛中添加了一些帖子,但它并没有起到这样的作用 内容/语言属性


它也不起作用。我还尝试将属性文件从Language_ru.properties重命名为Language_ru.properties。但同样是运气不好。

添加到
portlet.xml
资源包中

<portlet>
    <portlet-name>My Portlet</portlet-name>
    <portlet-class>com.my.MyPortlet</portlet-class>
    <init-param>
        <name>view-jsp</name>
        <value>/html/view.jsp</value>
    </init-param>
    <expiration-cache>0</expiration-cache>
    <supports>
        <mime-type>text/html</mime-type>
    </supports>
    <resource-bundle>content/Language</resource-bundle>
    <portlet-info>
        <title>My Portlet</title>
    </portlet-info>
    <security-role-ref>
        <role-name>administrator</role-name>
    </security-role-ref>
</portlet>

我的Portlet
com.my.MyPortlet
查看jsp
/html/view.jsp
0
文本/html
内容/语言
我的Portlet
管理员
并将
Language\u ru.properties
放入
src/content/


有关详细信息,请参见

谢谢您的帮助。我找到了我的语言钩不起作用的原因。实际上,在我的项目中,我们已经有了比Language-ext\u-ru.properties和Languange\u-ru.properties优先级更高的Language-ext\u-ru.properties。这就是为什么我不能为Langauge_ru.房地产申请hook的原因