Manual:$wgGrammarForms

From Linux Web Expert

Revision as of 06:23, 25 February 2023 by imported>Svartava (Undid edits by 2601:408:C405:232F:796D:945F:726E:749A (talk) to last version by Shirayuki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

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';