[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Ripuarian (RipoarÄ—sh) specific code. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Author: | Purodha Blissenbach |
File Size: | 209 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
LanguageKsh:: (3 methods):
convertGrammar()
commafy()
convertPlural()
Class: LanguageKsh - X-Ref
Ripuarian (RipoarÄ—sh)convertGrammar( $word, $case ) X-Ref |
Convert from the nominative form of a noun to other cases. Invoked with {{GRAMMAR:case|word}} inside messages. case is a sequence of words, each of which is case insensitive. Between words, there must be at least one space character. Only the 1st character of each word is considered. Word order is irrelevant. Possible values specifying the grammatical case are: 1, Nominative 2, Genitive 3, Dative 4, Accusative, -omitted- Possible values specifying the article type are: Betoont focussed or stressed article -omitted- unstressed or unfocussed article Possible values for the type of genitive are: Sing, Iehr prepositioned genitive = possessive dative Vun, Fon, -omitted- postpositioned genitive = preposition "vun" with dative Values of case overrides & prepositions, in the order of preceedence: Sing, Iehr possessive dative = prepositioned genitive Vun, Fon preposition "vun" with dative = postpositioned genitive En, em preposition "en" with dative Values for object gender specifiers of the possessive dative, or prepositioned genitive, evaluated with "Sing, Iehr" of above only: Male a singular male object follows -omitted- a non-male or plural object follows We currently handle definite articles of the singular only. There is a full set of test cases at: http://translatewiki.net/wiki/Portal:Ksh#GRAMMAR_Pr%C3%B6%C3%B6fe Contents of the leftmost table column can be copied and pasted as "case" values. param: string $word param: string $case return: string |
commafy( $_ ) X-Ref |
Avoid grouping whole numbers between 0 to 9999 param: string $_ return: string |
convertPlural( $count, $forms ) X-Ref |
Handle cases of (1, other, 0) or (1, other) param: int $count param: array $forms return: string |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |