如何更改语言的默认值?
当用户第一次登录时,默认语言是英语,我需要更改它。
如何更改语言的默认值?
当用户第一次登录时,默认语言是英语,我需要更改它。
您可以从“控制面板” - “门户网站设置” - “显示设置” - “默认语言”更改默认语言。 您还可以在portal-ext.properties上覆盖params:
#
# Set the default locale used by Liferay. This locale is no longer set at
# the VM level. See LEP-2584.
#
user.country=US
user.language=en
BR, 保罗
您可以从“控制面板” - “门户网站设置” - “显示设置” - “默认语言”更改默认语言。 您还可以在portal-ext.properties上覆盖params:
#
# Set the default locale used by Liferay. This locale is no longer set at
# the VM level. See LEP-2584.
#
user.country=US
user.language=en
BR, 保罗
在Liferay 7中,可以在UI中找到默认语言设置:
控制面板>实例设置>杂项>显示设置
正如MDT所说,它会覆盖所有内容 portal-ext.properties
。