2
In Language portlet I want to display only few language. Is it possible?
I have tried portal-ext.properties and added locale properties like below.
and I want to display language in combobox please provide solution.

我想显示以下语言。我是liferay的新手。我正在使用 liferay 社区版本 6.2。我不想添加任何额外的语言或语言环境。

locales=en_US,de_DE

I have deleted database and create database and start again server. It show all the language.

My portal-ext.properties look like below.Please help me out.

jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/liferay62?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=root
locales=en_US,de_DE
4

2 回答 2

3

您无需更改portal-ext.properties. 只需转到控制面板->门户设置,然后从右侧菜单中选择显示设置。然后限制可用语言部分中的当前列表,保存您的更改,您就完成了。

请注意,此设置不仅会限制 Language portlet 的语言,还会限制整个门户网站的语言。

于 2014-09-11T11:15:50.700 回答
3

“有一个警告:如果您曾经通过 UI 设置过此配置(在控制面板 -> 门户设置 -> 显示设置中),它们将存储在数据库中并覆盖您在 portal-ext.properties 中配置的内容。因此,您可能想检查您在控制面板中找到的内容,并且可能需要在那里配置而不是 portal-ext.properties。

来源:https ://www.liferay.com/community/forums/-/message_boards/message/45421596

于 2015-10-01T13:47:17.417 回答