Jump to content

Manual:$wgGrammarForms

From mediawiki.org
Language, regional and character encoding settings: $wgGrammarForms
Used for {{GRAMMAR:}} parser function.
Introduced in version:1.7.0 (r14381)
Removed in version:Still in use
Allowed values:(array of array of strings)
Default value:[]

Details

Some languages need different word forms, usually for different cases. Used by method Language::convertGrammar to implement the {{GRAMMAR:}} parser function.

Example:

$wgGrammarForms['en']['genitive']['car'] = 'car\'s';