A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://translatewiki.net/wiki/Grammar below:

Grammar - translatewiki.net

GRAMMAR is a parser function which is used to produce the correct form of a word when:

The magic word, or variable, {{SITENAME}} is the magic word which most often has multiple forms, for which GRAMMAR is needed.

The different grammatical forms of each word can be coded in the language.php file either as an array or as a set of simple grammatical rules.

If your language needs to implement GRAMMAR then please discuss this with other contributors to your language, if any, and then request it on Support. If new words need to be added to an array, for example new sitenames, again please request it on Support. It is a good idea to keep a complete set of test cases on your languages Portal page or a subpage thereof.

Using GRAMMAR in wikitext

When GRAMMAR has been coded in the Language.php file it can then be used in wikitext with other words: {{GRAMMAR:N|word}} where N is the name of the grammatical form needed and word is the word being operated on.

For example, {{GRAMMAR:elative|wiki}} produces wikistä in Finnish.

Languages using GRAMMAR

See a list of languages for which GRAMMAR has been implemented in convergrammar, together with links to the code and arrays for each language, by searching all convertGrammar functions.

Before GRAMMAR was introduced the magic word CURRENTMONTHNAMEGEN was used to produce the genitive form of the month names. The genitive forms are entered as messages in core messages; January-gen (“January”) and so on.

Grammar conversions in other projects

translatewiki.net recommends that all projects offer support for grammatical forms. You should find details of grammar support on the project pages, if any is provided.

External links


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4