在 Liferay 7.x 中,我们如何在一个模块中拥有更多的 portlet 并为每个 portlet 提供不同的 Language.properties?

问题描述

我在 Liferay 7.x 中创建了一个 mvc-portlet 模块,它有 2 个 portlet,test 和 test2。每个 portlet 都有自己的 Language.porperties。每个属性都是它的子文件夹

resources/content/test/Language.properties 

resources/content/test2/Language.properties. 

在我拥有的 portlet 组件属性中

"javax.portlet.resource-bundle=content.test.Language" 

"javax.portlet.resource-bundle=content.test2.Language" 

但不会加载键的默认值(对于 mvc-portlet 模板)。我在这里做错了什么?

您可以在此处找到一些示例代码:https://github.com/charalamposc/liferay-literals

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)