Manual:$wgLang

From MediaWiki.org
Jump to: navigation, search


[edit] Details

The user language object is the language object selected in user preferences. It is one of two global language objects, the other being $wgContLang. See the page language in MediaWiki for more information.

[edit] Often used Methods

This is not an exhaustive list, view class above to see a complete listing.

$wgLang->commaList( $list )
delimit a list of strings according to the conventions of the user's language
$wgLang->getCode()
return the user's language code, for example 'en'
Language: English  • Polski
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox