如何只显示几种语言 liferay 语言组件


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社区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

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

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

"有一个警告:如果你曾经通过 UI(在控制面板 -> 门户设置 -> 显示设置中(,他们将 存储在数据库中并覆盖您在 中配置的内容 因此,您可能需要检查在 控制面板,可能需要在那里配置而不是 门户扩展属性。

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

最新更新