如何仅显示少数语言liferay语言portlet?

如何仅显示少数语言liferay语言portlet?,liferay,liferay-6,liferay-aui,Liferay,Liferay 6,Liferay Aui,我想显示以下语言。我是新来的,雷。我正在使用liferay comunity 6.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 combo

我想显示以下语言。我是新来的,雷。我正在使用liferay comunity 6.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.

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

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

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


来源:

…如果您想通过portal-ext.properties进行配置,请使用
locales.enabled
我已经在Language portlet上完成了配置->单击右上角的选项->配置->设置->语言->将语言从当前状态删除为可用状态。这很有效。对于下拉列表,我选择显示样式->选择框,谢谢您的回答s、 谢谢奥拉夫的建议。
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