Liferay : Location of Language.properties

倖福魔咒の 提交于 2019-12-11 11:32:34

问题


I am following the learning path of Liferay in the docs.

I am implementing the AlloyUI, However I got stocked because the

docroot/WEB-INF/src/content/Language.properties

is nowhere to be found in my package explorer, I have no content folder in my src.

Any idea where can I find this?

Thanks.


回答1:


You don't give a lot of context, but content/Language.properties is the default location for the resource bundles in Liferay - probably you're either developing a portlet or a hook. As you say that the directory is not there, you can just create it. It's nothing else but a java package. Then create Language.properties in the directory and you can use Liferay's LanguageBuilder to create the other language files (e.g. Language_de.properties).



来源:https://stackoverflow.com/questions/31980111/liferay-location-of-language-properties

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!