Jump to content

手册:$wgParserEnableUserLanguage

From mediawiki.org
This page is a translated version of the page Manual:$wgParserEnableUserLanguage and the translation is 100% complete.
统计和内容分析: $wgParserEnableUserLanguage
将其设置为true,以允许{{USERLANGUAGE}}魔术字返回实际的用户语言。
引进版本:1.43.0​(Gerrit change 508295; git #10ab0e40
移除版本:仍在使用
允许的值:未指定
默认值:false

细节

将其设置为true,以允许{{USERLANGUAGE}}魔术字返回实际的用户语言。 如果它是false{{USERLANGUAGE}}将返回页面语言。 不鼓励将其设置为true,因为内容区域通常应使用页面语言。 使用此功能访问用户语言会降低解析。