diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-01-18 16:46:04 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-01-18 16:46:04 +0100 |
commit | 63601400e476c6cf43d985f3e7b9864681695ed4 (patch) | |
tree | f7846203a952e38aaf66989d0a4702779f549962 /languages/classes | |
parent | 8ff01378c9e0207f9169b81966a51def645b6a51 (diff) |
Update to MediaWiki 1.20.2
this update includes:
* adjusted Arch Linux skin
* updated FluxBBAuthPlugin
* patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024
Diffstat (limited to 'languages/classes')
78 files changed, 1654 insertions, 540 deletions
diff --git a/languages/classes/LanguageAm.php b/languages/classes/LanguageAm.php deleted file mode 100644 index 29ae9c11..00000000 --- a/languages/classes/LanguageAm.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -/** - * Amharic (አማርኛ) - * - * @ingroup Language - */ -class LanguageAm extends Language { - /** - * Use singular form for zero - * - * @param $count int - * @param $forms array - * - * @return string - */ - function convertPlural( $count, $forms ) { - if ( !count( $forms ) ) { return ''; } - $forms = $this->preConvertPlural( $forms, 2 ); - - return ( $count <= 1 ) ? $forms[0] : $forms[1]; - } -} diff --git a/languages/classes/LanguageAr.php b/languages/classes/LanguageAr.php index 95e76392..553ff077 100644 --- a/languages/classes/LanguageAr.php +++ b/languages/classes/LanguageAr.php @@ -1,36 +1,33 @@ <?php -/** Arabic (العربية) +/** + * Arabic (العربية) specific code. * - * @ingroup Language + * 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file * @author Niklas Laxström + * @ingroup Language */ -class LanguageAr extends Language { - /** - * @param $count int - * @param $forms array - * @return string - */ - function convertPlural( $count, $forms ) { - if ( !count( $forms ) ) { return ''; } - $forms = $this->preConvertPlural( $forms, 6 ); - - if ( $count == 0 ) { - $index = 0; - } elseif ( $count == 1 ) { - $index = 1; - } elseif ( $count == 2 ) { - $index = 2; - } elseif ( $count % 100 >= 3 && $count % 100 <= 10 ) { - $index = 3; - } elseif ( $count % 100 >= 11 && $count % 100 <= 99 ) { - $index = 4; - } else { - $index = 5; - } - return $forms[$index]; - } +/** + * Arabic (العربية) + * + * @ingroup Language + */ +class LanguageAr extends Language { /** * Temporary hack for bug 9413: replace Arabic presentation forms with their diff --git a/languages/classes/LanguageAz.php b/languages/classes/LanguageAz.php index 947e6560..0956dc42 100644 --- a/languages/classes/LanguageAz.php +++ b/languages/classes/LanguageAz.php @@ -1,8 +1,31 @@ <?php -/** Azerbaijani (Azərbaycan) - * - * @ingroup Language - */ +/** + * Azerbaijani (Azərbaycan) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +/** + * Azerbaijani (Azərbaycan) + * + * @ingroup Language + */ class LanguageAz extends Language { /** diff --git a/languages/classes/LanguageBe.php b/languages/classes/LanguageBe.php deleted file mode 100644 index 7d881ac9..00000000 --- a/languages/classes/LanguageBe.php +++ /dev/null @@ -1,41 +0,0 @@ -<?php -/** Belarusian normative (Беларуская мова) - * - * This is still the version from Be-x-old, only duplicated for consistency of - * plural and grammar functions. If there are errors please send a patch. - * - * @ingroup Language - * - * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com> - * @see http://be.wikipedia.org/wiki/Talk:LanguageBe.php - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License - * @license http://www.gnu.org/copyleft/fdl.html GNU Free Documentation License - */ - -class LanguageBe extends Language { - - /** - * @param $count int - * @param $forms array - * - * @return string - */ - function convertPlural( $count, $forms ) { - if ( !count( $forms ) ) { return ''; } - // @todo FIXME: CLDR defines 4 plural forms instead of 3 - // http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html - $forms = $this->preConvertPlural( $forms, 3 ); - - if ( $count > 10 && floor( ( $count % 100 ) / 10 ) == 1 ) { - return $forms[2]; - } else { - switch ( $count % 10 ) { - case 1: return $forms[0]; - case 2: - case 3: - case 4: return $forms[1]; - default: return $forms[2]; - } - } - } -} diff --git a/languages/classes/LanguageBe_tarask.php b/languages/classes/LanguageBe_tarask.php index 0e07a71c..b781d7a6 100644 --- a/languages/classes/LanguageBe_tarask.php +++ b/languages/classes/LanguageBe_tarask.php @@ -1,14 +1,35 @@ <?php -/** Belarusian in Taraškievica orthography (Беларуская тарашкевіца) - * - * @ingroup Language - * - * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com> - * @see http://be-x-old.wikipedia.org/wiki/Project_talk:LanguageBe_tarask.php - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License - * @license http://www.gnu.org/copyleft/fdl.html GNU Free Documentation License - */ +/** + * Belarusian in Taraškievica orthography (Беларуская тарашкевіца) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com> + * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License + * @license http://www.gnu.org/copyleft/fdl.html GNU Free Documentation License + * @ingroup Language + */ +/** + * Belarusian in Taraškievica orthography (Беларуская тарашкевіца) + * + * @ingroup Language + * @see http://be-x-old.wikipedia.org/wiki/Project_talk:LanguageBe_tarask.php + */ class LanguageBe_tarask extends Language { /** * Plural form transformations diff --git a/languages/classes/LanguageBg.php b/languages/classes/LanguageBg.php index 9ccb9a85..d735c7a0 100644 --- a/languages/classes/LanguageBg.php +++ b/languages/classes/LanguageBg.php @@ -1,6 +1,28 @@ <?php +/** + * Bulgarian (Български) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -/** Bulgarian (Български) +/** + * Bulgarian (Български) * * @ingroup Language */ diff --git a/languages/classes/LanguageBh.php b/languages/classes/LanguageBh.php deleted file mode 100644 index 46e4418c..00000000 --- a/languages/classes/LanguageBh.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -/** - * Bihari (भोजपुरी) - * - * @ingroup Language - */ -class LanguageBh extends Language { - /** - * Use singular form for zero - * - * @param $count int - * @param $forms array - * - * @return string - */ - function convertPlural( $count, $forms ) { - if ( !count( $forms ) ) { return ''; } - $forms = $this->preConvertPlural( $forms, 2 ); - - return ( $count <= 1 ) ? $forms[0] : $forms[1]; - } -} diff --git a/languages/classes/LanguageBs.php b/languages/classes/LanguageBs.php index 7c13037e..3da7711e 100644 --- a/languages/classes/LanguageBs.php +++ b/languages/classes/LanguageBs.php @@ -1,34 +1,33 @@ <?php +/** + * Bosnian (bosanski) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -/** Bosnian (bosanski) +/** + * Bosnian (bosanski) * * @ingroup Language */ class LanguageBs extends Language { - /** - * @param $count int - * @param $forms array - * @return string - */ - function convertPlural( $count, $forms ) { - if ( !count( $forms ) ) { return ''; } - $forms = $this->preConvertPlural( $forms, 3 ); - - // @todo FIXME: CLDR defines 4 plural forms instead of 3. Plural for decimals is missing. - // http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html - if ( $count > 10 && floor( ( $count % 100 ) / 10 ) == 1 ) { - return $forms[2]; - } else { - switch ( $count % 10 ) { - case 1: return $forms[0]; - case 2: - case 3: - case 4: return $forms[1]; - default: return $forms[2]; - } - } - } /** * Convert from the nominative form of a noun to some other case diff --git a/languages/classes/LanguageCs.php b/languages/classes/LanguageCs.php deleted file mode 100644 index f50a7e70..00000000 --- a/languages/classes/LanguageCs.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php - -/** Czech (čeština [subst.], český [adj.], česky [adv.]) - * - * @ingroup Language - */ -class LanguageCs extends Language { - - /** - * Plural transformations - * Invoked by putting - * {{plural:count|form1|form2-4|form0,5+}} for two forms plurals - * {{plural:count|form1|form0,2+}} for single form plurals - * in a message - * @param $count int - * @param $forms array - * @return string - */ - function convertPlural( $count, $forms ) { - if ( !count( $forms ) ) { return ''; } - $forms = $this->preConvertPlural( $forms, 3 ); - - switch ( $count ) { - case 1: - return $forms[0]; - case 2: - case 3: - case 4: - return $forms[1]; - default: - return $forms[2]; - } - } -} diff --git a/languages/classes/LanguageCu.php b/languages/classes/LanguageCu.php index af42d2c2..2016a43c 100644 --- a/languages/classes/LanguageCu.php +++ b/languages/classes/LanguageCu.php @@ -1,6 +1,28 @@ <?php +/** + * Old Church Slavonic (Ѩзыкъ словѣньскъ) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -/** Old Church Slavonic (Ѩзыкъ словѣньскъ) +/** + * Old Church Slavonic (Ѩзыкъ словѣньскъ) * * @ingroup Language */ diff --git a/languages/classes/LanguageCy.php b/languages/classes/LanguageCy.php deleted file mode 100644 index 1b0863ac..00000000 --- a/languages/classes/LanguageCy.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php -/** Welsh (Cymraeg) - * - * @ingroup Language - * - * @author Niklas Laxström - */ -class LanguageCy extends Language { - - /** - * @param $count int - * @param $forms array - * @return string - */ - function convertPlural( $count, $forms ) { - if ( !count( $forms ) ) { return ''; } - - $forms = $this->preConvertPlural( $forms, 6 ); - $count = abs( $count ); - if ( $count >= 0 && $count <= 3 ) { - return $forms[$count]; - } elseif ( $count == 6 ) { - return $forms[4]; - } else { - return $forms[5]; - } - } -} diff --git a/languages/classes/LanguageDsb.php b/languages/classes/LanguageDsb.php index 1fae25cf..975157f4 100644 --- a/languages/classes/LanguageDsb.php +++ b/languages/classes/LanguageDsb.php @@ -1,6 +1,29 @@ <?php +/** + * Lower Sorbian (Dolnoserbski) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @author Niklas Laxström + * @ingroup Language + */ -/** Lower Sorbian (Dolnoserbski) +/** + * Lower Sorbian (Dolnoserbski) * * @ingroup Language */ @@ -31,21 +54,4 @@ class LanguageDsb extends Language { return $word; # this will return the original value for 'nominatiw' (nominativ) and all undefined case values } - /** - * @param $count int - * @param $forms array - * @return string - */ - function convertPlural( $count, $forms ) { - if ( !count( $forms ) ) { return ''; } - $forms = $this->preConvertPlural( $forms, 4 ); - - switch ( abs( $count ) % 100 ) { - case 1: return $forms[0]; // singular - case 2: return $forms[1]; // dual - case 3: - case 4: return $forms[2]; // plural - default: return $forms[3]; // pluralgen - } - } } diff --git a/languages/classes/LanguageEo.php b/languages/classes/LanguageEo.php index af058a3e..3c162480 100644 --- a/languages/classes/LanguageEo.php +++ b/languages/classes/LanguageEo.php @@ -1,9 +1,31 @@ <?php +/** + * Esperanto (Esperanto) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @author Brion Vibber <brion@pobox.com> + * @ingroup Language + */ -/** Esperanto (Esperanto) +/** + * Esperanto (Esperanto) * * @ingroup Language - * @author Brion Vibber <brion@pobox.com> */ class LanguageEo extends Language { /** diff --git a/languages/classes/LanguageEt.php b/languages/classes/LanguageEt.php index b469dec9..1a9f286f 100644 --- a/languages/classes/LanguageEt.php +++ b/languages/classes/LanguageEt.php @@ -1,9 +1,30 @@ <?php - -/** Estonian (Eesti) +/** + * Estonian (Eesti) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html * + * @file * @ingroup Language + */ + +/** + * Estonian (Eesti) * + * @ingroup Language */ class LanguageEt extends Language { /** diff --git a/languages/classes/LanguageFi.php b/languages/classes/LanguageFi.php index 7156b65a..1865cc5c 100644 --- a/languages/classes/LanguageFi.php +++ b/languages/classes/LanguageFi.php @@ -1,10 +1,31 @@ <?php - -/** Finnish (Suomi) +/** + * Finnish (Suomi) specific code. * - * @ingroup Language + * 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file * @author Niklas Laxström + * @ingroup Language + */ + +/** + * Finnish (Suomi) + * + * @ingroup Language */ class LanguageFi extends Language { diff --git a/languages/classes/LanguageFr.php b/languages/classes/LanguageFr.php deleted file mode 100644 index 3e7c970d..00000000 --- a/languages/classes/LanguageFr.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -/** French (Français) - * - * @ingroup Language - */ -class LanguageFr extends Language { - /** - * Use singular form for zero (see bug 7309) - * - * @param $count int - * @param $forms array - * - * @return string - */ - function convertPlural( $count, $forms ) { - if ( !count( $forms ) ) { return ''; } - $forms = $this->preConvertPlural( $forms, 2 ); - - return ( $count <= 1 ) ? $forms[0] : $forms[1]; - } -} diff --git a/languages/classes/LanguageGa.php b/languages/classes/LanguageGa.php index 43050e16..2f58384a 100644 --- a/languages/classes/LanguageGa.php +++ b/languages/classes/LanguageGa.php @@ -1,6 +1,28 @@ <?php +/** + * Irish (Gaeilge) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -/** Irish (Gaeilge) +/** + * Irish (Gaeilge) * * @ingroup Language */ @@ -42,24 +64,4 @@ class LanguageGa extends Language { return $word; } - /** - * @param $count int - * @param $forms array - * @return string - */ - function convertPlural( $count, $forms ) { - if ( !count( $forms ) ) { return ''; } - - // plural forms per http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#ga - $forms = $this->preConvertPlural( $forms, 3 ); - - if ( $count == 1 ) { - $index = 0; - } elseif ( $count == 2 ) { - $index = 1; - } else { - $index = 2; - } - return $forms[$index]; - } } diff --git a/languages/classes/LanguageGan.php b/languages/classes/LanguageGan.php index 99b4c29e..14fe9282 100644 --- a/languages/classes/LanguageGan.php +++ b/languages/classes/LanguageGan.php @@ -1,7 +1,28 @@ <?php +/** + * Gan Chinese 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -require_once( dirname( __FILE__ ) . '/../LanguageConverter.php' ); -require_once( dirname( __FILE__ ) . '/LanguageZh.php' ); +require_once( __DIR__ . '/../LanguageConverter.php' ); +require_once( __DIR__ . '/LanguageZh.php' ); /** * @ingroup Language @@ -37,7 +58,7 @@ class GanConverter extends LanguageConverter { } function loadDefaultTables() { - require( dirname( __FILE__ ) . "/../../includes/ZhConversion.php" ); + require( __DIR__ . "/../../includes/ZhConversion.php" ); $this->mTables = array( 'gan-hans' => new ReplacementArray( $zh2Hans ), 'gan-hant' => new ReplacementArray( $zh2Hant ), diff --git a/languages/classes/LanguageGd.php b/languages/classes/LanguageGd.php deleted file mode 100644 index 737cddae..00000000 --- a/languages/classes/LanguageGd.php +++ /dev/null @@ -1,46 +0,0 @@ -<?php -/** Scots Gaelic (Gàidhlig) - * - * @ingroup Language - * - * @author Raimond Spekking - * @author Niklas Laxström - */ -class LanguageGd extends Language { - - /** - * Plural form transformations - * Based on this discussion: http://translatewiki.net/wiki/Thread:Support/New_plural_rules_for_Scots_Gaelic_(gd) - * - * $forms[0] - 1 - * $forms[1] - 2 - * $forms[2] - 11 - * $forms[3] - 12 - * $forms[4] - 3-10, 13-19 - * $forms[5] - 0, 20, rest - * - * @param $count int - * @param $forms array - * - * @return string - */ - function convertPlural( $count, $forms ) { - if ( !count( $forms ) ) { return ''; } - $forms = $this->preConvertPlural( $forms, 6 ); - - $count = abs( $count ); - if ( $count == 1 ) { - return $forms[0]; - } elseif ( $count == 2 ) { - return $forms[1]; - } elseif ( $count == 11 ) { - return $forms[2]; - } elseif ( $count == 12 ) { - return $forms[3]; - } elseif ( ($count >= 3 && $count <= 10) || ($count >= 13 && $count <= 19) ) { - return $forms[4]; - } else { - return $forms[5]; - } - } -} diff --git a/languages/classes/LanguageGv.php b/languages/classes/LanguageGv.php index 4defffda..70b80ad6 100644 --- a/languages/classes/LanguageGv.php +++ b/languages/classes/LanguageGv.php @@ -1,10 +1,31 @@ <?php - -/** Manx (Gaelg) +/** + * Manx (Gaelg) specific code. * - * @ingroup Language + * 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file * @author Niklas Laxström + * @ingroup Language + */ + +/** + * Manx (Gaelg) + * + * @ingroup Language */ class LanguageGv extends Language { diff --git a/languages/classes/LanguageHe.php b/languages/classes/LanguageHe.php index 87483c65..48c0c057 100644 --- a/languages/classes/LanguageHe.php +++ b/languages/classes/LanguageHe.php @@ -1,11 +1,31 @@ <?php +/** + * Hebrew (עברית) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @author Rotem Liss + * @ingroup Language + */ /** * Hebrew (עברית) * * @ingroup Language - * - * @author Rotem Liss */ class LanguageHe extends Language { @@ -48,23 +68,4 @@ class LanguageHe extends Language { return $word; } - /** - * Gets a number and uses the suited form of the word. - * - * @param $count Integer: the number of items - * @param $forms Array with 3 items: the three plural forms - * @return String: the suited form of word - */ - function convertPlural( $count, $forms ) { - if ( !count( $forms ) ) { return ''; } - $forms = $this->preConvertPlural( $forms, 3 ); - - if ( $count == 1 ) { - return $forms[0]; // Singular - } elseif ( $count == 2 ) { - return $forms[2]; // Dual or plural if dual is not provided (filled in preConvertPlural) - } else { - return $forms[1]; // Plural - } - } } diff --git a/languages/classes/LanguageHi.php b/languages/classes/LanguageHi.php index 53a0fc18..6a2302c0 100644 --- a/languages/classes/LanguageHi.php +++ b/languages/classes/LanguageHi.php @@ -1,5 +1,27 @@ <?php /** + * Hindi (हिन्दी) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +/** * Hindi (हिन्दी) * * @ingroup Language diff --git a/languages/classes/LanguageHr.php b/languages/classes/LanguageHr.php index e18c8d3a..a0e9a87a 100644 --- a/languages/classes/LanguageHr.php +++ b/languages/classes/LanguageHr.php @@ -1,9 +1,31 @@ <?php -/** Croatian (hrvatski) - * - * @ingroup Language - */ +/** + * Croatian (hrvatski) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ +/** + * Croatian (hrvatski) + * + * @ingroup Language + */ class LanguageHr extends Language { /** diff --git a/languages/classes/LanguageHsb.php b/languages/classes/LanguageHsb.php index 1b67aa0d..5623f3ce 100644 --- a/languages/classes/LanguageHsb.php +++ b/languages/classes/LanguageHsb.php @@ -1,9 +1,31 @@ <?php -/** Upper Sorbian (Hornjoserbsce) +/** + * Upper Sorbian (Hornjoserbsce) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file * @ingroup Language */ +/** + * Upper Sorbian (Hornjoserbsce) + * + * @ingroup Language + */ class LanguageHsb extends Language { /** @@ -32,21 +54,4 @@ class LanguageHsb extends Language { return $word; # this will return the original value for 'nominatiw' (nominativ) and all undefined case values } - /** - * @param $count int - * @param $forms array - * @return string - */ - function convertPlural( $count, $forms ) { - if ( !count( $forms ) ) { return ''; } - $forms = $this->preConvertPlural( $forms, 4 ); - - switch ( abs( $count ) % 100 ) { - case 1: return $forms[0]; // singular - case 2: return $forms[1]; // dual - case 3: - case 4: return $forms[2]; // plural - default: return $forms[3]; // pluralgen - } - } } diff --git a/languages/classes/LanguageHu.php b/languages/classes/LanguageHu.php index dbb6f5bb..1f4d45c0 100644 --- a/languages/classes/LanguageHu.php +++ b/languages/classes/LanguageHu.php @@ -1,6 +1,28 @@ <?php +/** + * Hungarian (magyar) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -/** Hungarian localisation for MediaWiki +/** + * Hungarian localisation for MediaWiki * * @ingroup Language */ diff --git a/languages/classes/LanguageHy.php b/languages/classes/LanguageHy.php index c14106c8..9c155951 100644 --- a/languages/classes/LanguageHy.php +++ b/languages/classes/LanguageHy.php @@ -1,9 +1,31 @@ <?php +/** + * Armenian (Հայերեն) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @author Ruben Vardanyan (Me@RubenVardanyan.com) + * @ingroup Language + */ -/** Armenian (Հայերեն) +/** + * Armenian (Հայերեն) * * @ingroup Language - * @author Ruben Vardanyan (Me@RubenVardanyan.com) */ class LanguageHy extends Language { diff --git a/languages/classes/LanguageIu.deps.php b/languages/classes/LanguageIu.deps.php deleted file mode 100644 index 3b78d875..00000000 --- a/languages/classes/LanguageIu.deps.php +++ /dev/null @@ -1,8 +0,0 @@ -<?php -// This file exists to ensure that base classes are preloaded before -// LanguageIu.php is compiled, working around a bug in the APC opcode -// cache on PHP 5, where cached code can break if the include order -// changed on a subsequent page view. -// see http://mail.wikipedia.org/pipermail/wikitech-l/2006-January/033660.html - -require_once( dirname(__FILE__).'/../LanguageConverter.php' ); diff --git a/languages/classes/LanguageIu.php b/languages/classes/LanguageIu.php index 72f6af13..9bac5d73 100644 --- a/languages/classes/LanguageIu.php +++ b/languages/classes/LanguageIu.php @@ -1,24 +1,39 @@ <?php /** - * @addtogroup Language - */ - -/* -* Conversion script between Latin and Syllabics for Inuktitut. -* - Syllabics -> lowercase Latin -* - lowercase/uppercase Latin -> Syllabics -* -* -* Based on: -* - http://commons.wikimedia.org/wiki/Image:Inuktitut.png -* - LanguageSr.php -* -* @ingroup Language -*/ -require_once( dirname( __FILE__ ) . '/../LanguageConverter.php' ); + * Inuktitut 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +require_once( __DIR__ . '/../LanguageConverter.php' ); /** + * Conversion script between Latin and Syllabics for Inuktitut. + * - Syllabics -> lowercase Latin + * - lowercase/uppercase Latin -> Syllabics + * * + * Based on: + * - http://commons.wikimedia.org/wiki/Image:Inuktitut.png + * - LanguageSr.php + * + * @ingroup Language */ class IuConverter extends LanguageConverter { diff --git a/languages/classes/LanguageJa.php b/languages/classes/LanguageJa.php index 510a3976..9c6314c5 100644 --- a/languages/classes/LanguageJa.php +++ b/languages/classes/LanguageJa.php @@ -1,4 +1,25 @@ <?php +/** + * Japanese (日本語) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ /** * Japanese (日本語) diff --git a/languages/classes/LanguageKaa.php b/languages/classes/LanguageKaa.php index a40fb7ae..a397bc0f 100644 --- a/languages/classes/LanguageKaa.php +++ b/languages/classes/LanguageKaa.php @@ -1,6 +1,28 @@ <?php +/** + * Karakalpak (Qaraqalpaqsha) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -/** Karakalpak (Qaraqalpaqsha) +/** + * Karakalpak (Qaraqalpaqsha) * * @ingroup Language */ @@ -41,11 +63,11 @@ class LanguageKaa extends Language { } /** - * It fixes issue with lcfirst for transforming 'I' to 'ı' + * It fixes issue with lcfirst for transforming 'I' to 'ı' * * @param $string string * - * @return string + * @return mixed|string */ function lcfirst ( $string ) { if ( substr( $string, 0, 1 ) === 'I' ) { diff --git a/languages/classes/LanguageKk.deps.php b/languages/classes/LanguageKk.deps.php deleted file mode 100644 index 0a2a8afb..00000000 --- a/languages/classes/LanguageKk.deps.php +++ /dev/null @@ -1,9 +0,0 @@ -<?php -// This file exists to ensure that base classes are preloaded before -// LanguageKk.php is compiled, working around a bug in the APC opcode -// cache on PHP 5, where cached code can break if the include order -// changed on a subsequent page view. -// see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html - -require_once( dirname( __FILE__ ) . '/../LanguageConverter.php' ); -require_once( dirname( __FILE__ ) . '/LanguageKk_cyrl.php' ); diff --git a/languages/classes/LanguageKk.php b/languages/classes/LanguageKk.php index 953a3f97..d3d487fe 100644 --- a/languages/classes/LanguageKk.php +++ b/languages/classes/LanguageKk.php @@ -1,7 +1,28 @@ <?php +/** + * Kazakh (Қазақша) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -require_once( dirname( __FILE__ ) . '/../LanguageConverter.php' ); -require_once( dirname( __FILE__ ) . '/LanguageKk_cyrl.php' ); +require_once( __DIR__ . '/../LanguageConverter.php' ); +require_once( __DIR__ . '/LanguageKk_cyrl.php' ); define( 'KK_C_UC', 'АӘБВГҒДЕЁЖЗИЙКҚЛМНҢОӨПРСТУҰҮФХҺЦЧШЩЪЫІЬЭЮЯ' ); # Kazakh Cyrillic uppercase define( 'KK_C_LC', 'аәбвгғдеёжзийкқлмнңоөпрстуұүфхһцчшщъыіьэюя' ); # Kazakh Cyrillic lowercase @@ -11,8 +32,8 @@ define( 'KK_L_LC', 'aäbcçdeéfgğhıiïjklmnñoöpqrsştuüvwxyýz' ); # Kazak define( 'H_HAMZA', 'ٴ' ); # U+0674 ARABIC LETTER HIGH HAMZA // define( 'ZWNJ', '' ); # U+200C ZERO WIDTH NON-JOINER -/** Kazakh (Қазақша) - * converter routines +/** + * Kazakh (Қазақша) converter routines * * @ingroup Language */ @@ -41,7 +62,7 @@ class KkConverter extends LanguageConverter { } function loadDefaultTables() { - // require( dirname(__FILE__)."/../../includes/KkConversion.php" ); + // require( __DIR__."/../../includes/KkConversion.php" ); // Placeholder for future implementing. Remove variables declarations // after generating KkConversion.php $kk2Cyrl = array(); @@ -113,7 +134,7 @@ class KkConverter extends LanguageConverter { # # Punctuation '/#|No\./' => '№', # # Şç - '/ŞÇʹ/u' => 'ЩЬ', '/Şçʹ/u' => 'Щь', '/Şçʹ/u' => 'Щь', + '/ŞÇʹ/u' => 'ЩЬ', '/Şçʹ/u' => 'Щь', '/Ş[Çç]/u' => 'Щ', '/şç/u' => 'щ', # # soft and hard signs '/([' . KK_L_UC . '])ʺ([' . KK_L_UC . '])/u' => '$1Ъ$2', @@ -423,20 +444,6 @@ class LanguageKk extends LanguageKk_cyrl { } /** - * Work around for right-to-left direction support in kk-arab and kk-cn - * - * @return bool - */ - function isRTL() { - $variant = $this->getPreferredVariant(); - if ( $variant == 'kk-arab' || $variant == 'kk-cn' ) { - return true; - } else { - return parent::isRTL(); - } - } - - /** * It fixes issue with ucfirst for transforming 'i' to 'İ' * * @param $string string diff --git a/languages/classes/LanguageKk_cyrl.php b/languages/classes/LanguageKk_cyrl.php index 30f74e6e..081a20f8 100644 --- a/languages/classes/LanguageKk_cyrl.php +++ b/languages/classes/LanguageKk_cyrl.php @@ -1,9 +1,31 @@ <?php -/** Kazakh (Қазақша) +/** + * Kazakh (Қазақша) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file * @ingroup Language */ +/** + * Kazakh (Қазақша) + * + * @ingroup Language + */ class LanguageKk_cyrl extends Language { # Convert from the nominative form of a noun to some other case diff --git a/languages/classes/LanguageKm.php b/languages/classes/LanguageKm.php index 105e6ed3..71d67a76 100644 --- a/languages/classes/LanguageKm.php +++ b/languages/classes/LanguageKm.php @@ -1,9 +1,31 @@ <?php -/** Khmer (ភាសាខ្មែរ) +/** + * Kazakh (Қазақша) specific code. * - * @ingroup Language + * 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file * @author Niklas Laxström + * @ingroup Language + */ + +/** + * Khmer (ភាសាខ្មែរ) + * + * @ingroup Language */ class LanguageKm extends Language { diff --git a/languages/classes/LanguageKsh.php b/languages/classes/LanguageKsh.php index dc37656c..074ad139 100644 --- a/languages/classes/LanguageKsh.php +++ b/languages/classes/LanguageKsh.php @@ -1,10 +1,31 @@ <?php - -/** Ripuarian (Ripoarėsh) +/** + * Ripuarian (Ripoarėsh) specific code. * - * @ingroup Language + * 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file * @author Purodha Blissenbach + * @ingroup Language + */ + +/** + * Ripuarian (Ripoarėsh) + * + * @ingroup Language */ class LanguageKsh extends Language { static $familygender = array( diff --git a/languages/classes/LanguageKu.deps.php b/languages/classes/LanguageKu.deps.php deleted file mode 100644 index a187b778..00000000 --- a/languages/classes/LanguageKu.deps.php +++ /dev/null @@ -1,9 +0,0 @@ -<?php -// This file exists to ensure that base classes are preloaded before -// LanguageKu.php is compiled, working around a bug in the APC opcode -// cache on PHP 5, where cached code can break if the include order -// changed on a subsequent page view. -// see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html - -require_once( dirname( __FILE__ ) . '/../LanguageConverter.php' ); -require_once( dirname( __FILE__ ) . '/LanguageKu_ku.php' ); diff --git a/languages/classes/LanguageKu.php b/languages/classes/LanguageKu.php index 92bca095..02ec6482 100644 --- a/languages/classes/LanguageKu.php +++ b/languages/classes/LanguageKu.php @@ -1,6 +1,28 @@ <?php -require_once( dirname( __FILE__ ) . '/../LanguageConverter.php' ); -require_once( dirname( __FILE__ ) . '/LanguageKu_ku.php' ); +/** + * Kurdish 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +require_once( __DIR__ . '/../LanguageConverter.php' ); +require_once( __DIR__ . '/LanguageKu_ku.php' ); /** * Kurdish converter routines @@ -55,8 +77,7 @@ class KuConverter extends LanguageConverter { 'h' => 'ه', 'j' => 'ژ', 'k' => 'ک', 'l' => 'ل', 'm' => 'م', 'n' => 'ن', 'p' => 'پ', 'q' => 'ق', 'r' => 'ر', 's' => 'س', 'ş' => 'ش', 't' => 'ت', 'v' => 'ڤ', - 'x' => 'خ', 'y' => 'ی', 'z' => 'ز', - + 'x' => 'خ', 'y' => 'ی', 'z' => 'ز', 'B' => 'ب', 'C' => 'ج', 'Ç' => 'چ', 'D' => 'د', 'F' => 'ف', 'G' => 'گ', 'H' => 'ھ', 'H' => 'ہ', 'H' => 'ه', 'H' => 'ح', 'J' => 'ژ', 'K' => 'ك', 'K' => 'ک', 'L' => 'ل', @@ -196,6 +217,7 @@ class KuConverter extends LanguageConverter { * @param $text string * @param $toVariant bool * + * @throws MWException * @return string */ function translate( $text, $toVariant ) { diff --git a/languages/classes/LanguageKu_ku.php b/languages/classes/LanguageKu_ku.php index e4332928..2381de53 100644 --- a/languages/classes/LanguageKu_ku.php +++ b/languages/classes/LanguageKu_ku.php @@ -1,6 +1,28 @@ <?php +/** + * Kurdish 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -/** Kurdish +/** + * Kurdish * * @ingroup Language */ diff --git a/languages/classes/LanguageLa.php b/languages/classes/LanguageLa.php index 657ac6e4..ba0f1404 100644 --- a/languages/classes/LanguageLa.php +++ b/languages/classes/LanguageLa.php @@ -1,6 +1,28 @@ <?php +/** + * Latin (lingua Latina) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -/** Latin (lingua Latina) +/** + * Latin (lingua Latina) * * @ingroup Language */ diff --git a/languages/classes/LanguageLn.php b/languages/classes/LanguageLn.php index b96cf619..d7329d51 100644 --- a/languages/classes/LanguageLn.php +++ b/languages/classes/LanguageLn.php @@ -1,5 +1,27 @@ <?php /** + * Lingala (Lingála) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +/** * Lingala (Lingála) * * @ingroup Language diff --git a/languages/classes/LanguageLt.php b/languages/classes/LanguageLt.php index af38b6ae..ac4ebdad 100644 --- a/languages/classes/LanguageLt.php +++ b/languages/classes/LanguageLt.php @@ -1,6 +1,28 @@ <?php +/** + * Lithuanian (Lietuvių) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -/** Lithuanian (Lietuvių) +/** + * Lithuanian (Lietuvių) * * @ingroup Language */ diff --git a/languages/classes/LanguageLv.php b/languages/classes/LanguageLv.php index 8a78303c..e76f6f93 100644 --- a/languages/classes/LanguageLv.php +++ b/languages/classes/LanguageLv.php @@ -1,13 +1,33 @@ <?php - -/** Latvian (Latviešu) +/** + * Latvian (Latviešu) specific code. * - * @ingroup Language + * 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 Niklas Laxström + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @author Niklas Laxström * @copyright Copyright © 2006, Niklas Laxström * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later + * @ingroup Language + */ + +/** + * Latvian (Latviešu) + * + * @ingroup Language */ class LanguageLv extends Language { /** diff --git a/languages/classes/LanguageMg.php b/languages/classes/LanguageMg.php index 111dda35..ace0a4c3 100644 --- a/languages/classes/LanguageMg.php +++ b/languages/classes/LanguageMg.php @@ -1,5 +1,27 @@ <?php /** + * Malagasy (Malagasy) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +/** * Malagasy (Malagasy) * * @ingroup Language diff --git a/languages/classes/LanguageMk.php b/languages/classes/LanguageMk.php index 4e3b576f..968fe265 100644 --- a/languages/classes/LanguageMk.php +++ b/languages/classes/LanguageMk.php @@ -1,5 +1,27 @@ <?php /** + * Macedonian (Македонски) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +/** * Macedonian (Македонски) * * @ingroup Language diff --git a/languages/classes/LanguageMl.php b/languages/classes/LanguageMl.php index aeca3621..ec3ea541 100644 --- a/languages/classes/LanguageMl.php +++ b/languages/classes/LanguageMl.php @@ -1,4 +1,25 @@ <?php +/** + * Malayalam (മലയാളം) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ /** * Malayalam (മലയാളം) diff --git a/languages/classes/LanguageMo.php b/languages/classes/LanguageMo.php index 2fa48e95..bf8a10d0 100644 --- a/languages/classes/LanguageMo.php +++ b/languages/classes/LanguageMo.php @@ -1,5 +1,27 @@ <?php /** + * Moldavian (Молдовеняскэ) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +/** * Moldavian (Молдовеняскэ) * * @ingroup Language diff --git a/languages/classes/LanguageMt.php b/languages/classes/LanguageMt.php index 5cf40ce5..68bd7ca9 100644 --- a/languages/classes/LanguageMt.php +++ b/languages/classes/LanguageMt.php @@ -1,12 +1,32 @@ <?php - -/** Maltese (Malti) +/** + * Maltese (Malti) specific code. * - * @ingroup Language + * 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html * + * @file * @author Niklas Laxström + * @ingroup Language */ +/** + * Maltese (Malti) + * + * @ingroup Language + */ class LanguageMt extends Language { /** @@ -25,4 +45,4 @@ class LanguageMt extends Language { else $index = 3; return $forms[$index]; } -}
\ No newline at end of file +} diff --git a/languages/classes/LanguageMy.php b/languages/classes/LanguageMy.php index b12e4585..1d117dd6 100644 --- a/languages/classes/LanguageMy.php +++ b/languages/classes/LanguageMy.php @@ -1,10 +1,31 @@ <?php - -/** Burmese (Myanmasa) +/** + * Burmese (Myanmasa) specific code. * - * @ingroup Language + * 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file * @author Niklas Laxström, 2008 + * @ingroup Language + */ + +/** + * Burmese (Myanmasa) + * + * @ingroup Language */ class LanguageMy extends Language { @@ -19,4 +40,4 @@ class LanguageMy extends Language { */ return $_; } -}
\ No newline at end of file +} diff --git a/languages/classes/LanguageNso.php b/languages/classes/LanguageNso.php index 40263320..0c086750 100644 --- a/languages/classes/LanguageNso.php +++ b/languages/classes/LanguageNso.php @@ -1,5 +1,27 @@ <?php /** + * Northern Sotho (Sesotho sa Leboa) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +/** * Northern Sotho (Sesotho sa Leboa) * * @ingroup Language diff --git a/languages/classes/LanguageOs.php b/languages/classes/LanguageOs.php index f3b5d8a4..a808840f 100644 --- a/languages/classes/LanguageOs.php +++ b/languages/classes/LanguageOs.php @@ -1,8 +1,29 @@ <?php - -/** Ossetian (Ирон) +/** + * Ossetian (Ирон) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html * + * @file * @author Soslan Khubulov + * @ingroup Language + */ + +/** + * Ossetian (Ирон) * * @ingroup Language */ diff --git a/languages/classes/LanguagePl.php b/languages/classes/LanguagePl.php index 59c8d5c2..68bf0208 100644 --- a/languages/classes/LanguagePl.php +++ b/languages/classes/LanguagePl.php @@ -1,6 +1,28 @@ <?php +/** + * Polish (polski) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -/** Polish (polski) +/** + * Polish (polski) * * @ingroup Language */ @@ -15,14 +37,16 @@ class LanguagePl extends Language { if ( !count( $forms ) ) { return ''; } $forms = $this->preConvertPlural( $forms, 3 ); $count = abs( $count ); - if ( $count == 1 ) - return $forms[0]; // singular + if ( $count == 1 ) { + return $forms[0]; // singular + } switch ( $count % 10 ) { case 2: case 3: case 4: - if ( $count / 10 % 10 != 1 ) + if ( $count / 10 % 10 != 1 ) { return $forms[1]; // plural + } default: return $forms[2]; // plural genitive } diff --git a/languages/classes/LanguageQqx.php b/languages/classes/LanguageQqx.php index 6798b24c..8e2115c3 100644 --- a/languages/classes/LanguageQqx.php +++ b/languages/classes/LanguageQqx.php @@ -1,5 +1,27 @@ <?php /** + * Dummy language that return the message names. + * + * 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +/** * For all translated messages, this returns the name of the message bracketed. * This does not affect untranslated messages. * diff --git a/languages/classes/LanguageRo.php b/languages/classes/LanguageRo.php index ce3e5159..0db2ec00 100644 --- a/languages/classes/LanguageRo.php +++ b/languages/classes/LanguageRo.php @@ -1,5 +1,27 @@ <?php /** + * Romanian (Română) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +/** * Romanian (Română) * * @ingroup Language diff --git a/languages/classes/LanguageRu.php b/languages/classes/LanguageRu.php index b5371d2e..6407e156 100644 --- a/languages/classes/LanguageRu.php +++ b/languages/classes/LanguageRu.php @@ -1,11 +1,33 @@ <?php +/** + * Russian (русский язык) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -/** Russian (русский язык) - * - * You can contact Alexander Sigachov (alexander.sigachov at Googgle Mail) - * - * @ingroup Language - */ +/** + * Russian (русский язык) + * + * You can contact Alexander Sigachov (alexander.sigachov at Googgle Mail) + * + * @ingroup Language + */ class LanguageRu extends Language { /** diff --git a/languages/classes/LanguageSe.php b/languages/classes/LanguageSe.php index a66957f0..25b61c30 100644 --- a/languages/classes/LanguageSe.php +++ b/languages/classes/LanguageSe.php @@ -1,5 +1,27 @@ <?php /** + * Northern Sami (Sámegiella) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +/** * Northern Sami (Sámegiella) * * @ingroup Language diff --git a/languages/classes/LanguageSgs.php b/languages/classes/LanguageSgs.php index d47863d0..0c74e450 100644 --- a/languages/classes/LanguageSgs.php +++ b/languages/classes/LanguageSgs.php @@ -1,9 +1,31 @@ <?php -/** Samogitian (Žemaitėška) +/** + * Samogitian (Žemaitėška) specific code. * - * @ingroup Language + * 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file * @author Niklas Laxström + * @ingroup Language + */ + +/** + * Samogitian (Žemaitėška) + * + * @ingroup Language */ class LanguageSgs extends Language { diff --git a/languages/classes/LanguageSh.php b/languages/classes/LanguageSh.php index 139ad0b6..1fcddfc1 100644 --- a/languages/classes/LanguageSh.php +++ b/languages/classes/LanguageSh.php @@ -1,5 +1,27 @@ <?php /** + * Serbo-Croatian (Srpskohrvatski / Српскохрватски) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +/** * Serbo-Croatian (Srpskohrvatski / Српскохрватски) * * @ingroup Language diff --git a/languages/classes/LanguageShi.deps.php b/languages/classes/LanguageShi.deps.php deleted file mode 100644 index 3b78d875..00000000 --- a/languages/classes/LanguageShi.deps.php +++ /dev/null @@ -1,8 +0,0 @@ -<?php -// This file exists to ensure that base classes are preloaded before -// LanguageIu.php is compiled, working around a bug in the APC opcode -// cache on PHP 5, where cached code can break if the include order -// changed on a subsequent page view. -// see http://mail.wikipedia.org/pipermail/wikitech-l/2006-January/033660.html - -require_once( dirname(__FILE__).'/../LanguageConverter.php' ); diff --git a/languages/classes/LanguageShi.php b/languages/classes/LanguageShi.php index 08a06d67..27c5d64f 100644 --- a/languages/classes/LanguageShi.php +++ b/languages/classes/LanguageShi.php @@ -1,24 +1,39 @@ <?php /** - * @addtogroup Language - */ - -/* -* Conversion script between Latin and Tifinagh for Tachelhit. -* - Tifinagh -> lowercase Latin -* - lowercase/uppercase Latin -> Tifinagh -* -* -* Based on: -* - http://en.wikipedia.org/wiki/Shilha_language -* - LanguageSr.php -* -* @ingroup Language -*/ -require_once( dirname( __FILE__ ) . '/../LanguageConverter.php' ); + * Shilha 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +require_once( __DIR__ . '/../LanguageConverter.php' ); /** + * Conversion script between Latin and Tifinagh for Tachelhit. + * - Tifinagh -> lowercase Latin + * - lowercase/uppercase Latin -> Tifinagh + * * + * Based on: + * - http://en.wikipedia.org/wiki/Shilha_language + * - LanguageSr.php + * + * @ingroup Language */ class ShiConverter extends LanguageConverter { diff --git a/languages/classes/LanguageSk.php b/languages/classes/LanguageSk.php index eac25f4f..b1da70e6 100644 --- a/languages/classes/LanguageSk.php +++ b/languages/classes/LanguageSk.php @@ -1,5 +1,27 @@ <?php /** + * Slovak (Slovenčina) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +/** * Slovak (Slovenčina) * * @ingroup Language diff --git a/languages/classes/LanguageSl.php b/languages/classes/LanguageSl.php index 3e2ca90e..c075e515 100644 --- a/languages/classes/LanguageSl.php +++ b/languages/classes/LanguageSl.php @@ -1,6 +1,28 @@ <?php +/** + * Slovenian (Slovenščina) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -/** Slovenian (Slovenščina) +/** + * Slovenian (Slovenščina) * * @ingroup Language */ diff --git a/languages/classes/LanguageSma.php b/languages/classes/LanguageSma.php index 72ca98a1..19618710 100644 --- a/languages/classes/LanguageSma.php +++ b/languages/classes/LanguageSma.php @@ -1,5 +1,27 @@ <?php /** + * Southern Sami (Åarjelsaemien) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +/** * Southern Sami (Åarjelsaemien) * * @ingroup Language diff --git a/languages/classes/LanguageSr.deps.php b/languages/classes/LanguageSr.deps.php deleted file mode 100644 index a3770378..00000000 --- a/languages/classes/LanguageSr.deps.php +++ /dev/null @@ -1,9 +0,0 @@ -<?php -// This file exists to ensure that base classes are preloaded before -// LanguageSr.php is compiled, working around a bug in the APC opcode -// cache on PHP 5, where cached code can break if the include order -// changed on a subsequent page view. -// see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html - -require_once( dirname( __FILE__ ) . '/LanguageSr_ec.php' ); -require_once( dirname( __FILE__ ) . '/../LanguageConverter.php' ); diff --git a/languages/classes/LanguageSr.php b/languages/classes/LanguageSr.php index 2e1fb276..4b799f28 100644 --- a/languages/classes/LanguageSr.php +++ b/languages/classes/LanguageSr.php @@ -1,8 +1,29 @@ <?php +/** + * Serbian (Српски / Srpski) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -require_once( dirname( __FILE__ ) . '/../LanguageConverter.php' ); -require_once( dirname( __FILE__ ) . '/LanguageSr_ec.php' ); -require_once( dirname( __FILE__ ) . '/LanguageSr_el.php' ); +require_once( __DIR__ . '/../LanguageConverter.php' ); +require_once( __DIR__ . '/LanguageSr_ec.php' ); +require_once( __DIR__ . '/LanguageSr_el.php' ); /** * There are two levels of conversion for Serbian: the script level @@ -147,6 +168,7 @@ class SrConverter extends LanguageConverter { * @param $text string * @param $toVariant string * + * @throws MWException * @return string */ function translate( $text, $toVariant ) { diff --git a/languages/classes/LanguageSr_ec.php b/languages/classes/LanguageSr_ec.php index 572a5f3b..352e2930 100644 --- a/languages/classes/LanguageSr_ec.php +++ b/languages/classes/LanguageSr_ec.php @@ -1,4 +1,25 @@ <?php +/** + * Serbian (cyrillic script) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ /** * Serbian (cyrillic script) diff --git a/languages/classes/LanguageSr_el.php b/languages/classes/LanguageSr_el.php index 3a1f6a6d..0e36d6c3 100644 --- a/languages/classes/LanguageSr_el.php +++ b/languages/classes/LanguageSr_el.php @@ -1,4 +1,25 @@ <?php +/** + * Serbian (latin script) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ /** * Serbian (latin script) diff --git a/languages/classes/LanguageTg.php b/languages/classes/LanguageTg.php index f73e2ba8..3ec14763 100644 --- a/languages/classes/LanguageTg.php +++ b/languages/classes/LanguageTg.php @@ -1,9 +1,31 @@ <?php +/** + * Tajik (Тоҷикӣ) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -require_once( dirname( __FILE__ ) . '/../LanguageConverter.php' ); +require_once( __DIR__ . '/../LanguageConverter.php' ); /** * Converts Tajiki to latin orthography + * * @ingroup Language */ class TgConverter extends LanguageConverter { diff --git a/languages/classes/LanguageTi.php b/languages/classes/LanguageTi.php index 46a776bf..27331cc9 100644 --- a/languages/classes/LanguageTi.php +++ b/languages/classes/LanguageTi.php @@ -1,5 +1,27 @@ <?php /** + * Tigrinya (ትግርኛ) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +/** * Tigrinya (ትግርኛ) * * @ingroup Language diff --git a/languages/classes/LanguageTl.php b/languages/classes/LanguageTl.php index f976bed1..15bce760 100644 --- a/languages/classes/LanguageTl.php +++ b/languages/classes/LanguageTl.php @@ -1,5 +1,27 @@ <?php /** + * Tagalog (Tagalog) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +/** * Tagalog (Tagalog) * * @ingroup Language diff --git a/languages/classes/LanguageTr.php b/languages/classes/LanguageTr.php index b6acea4b..6a015667 100644 --- a/languages/classes/LanguageTr.php +++ b/languages/classes/LanguageTr.php @@ -1,4 +1,26 @@ <?php +/** + * Turkish (Türkçe) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + /** * Turkish (Türkçe) diff --git a/languages/classes/LanguageTyv.php b/languages/classes/LanguageTyv.php index 8bca11b2..6d147c87 100644 --- a/languages/classes/LanguageTyv.php +++ b/languages/classes/LanguageTyv.php @@ -1,6 +1,29 @@ <?php +/** + * Tyvan (Тыва дыл) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -/** Tyvan localization (Тыва дыл) +/** + * Tyvan localization (Тыва дыл) + * * From friends at tyvawiki.org * * @ingroup Language diff --git a/languages/classes/LanguageUk.php b/languages/classes/LanguageUk.php index 14e5d272..ce9ed33c 100644 --- a/languages/classes/LanguageUk.php +++ b/languages/classes/LanguageUk.php @@ -1,6 +1,28 @@ <?php +/** + * Ukrainian (українська мова) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -/** Ukrainian (українська мова) +/** + * Ukrainian (українська мова) * * @ingroup Language */ diff --git a/languages/classes/LanguageUz.php b/languages/classes/LanguageUz.php new file mode 100644 index 00000000..bd69e307 --- /dev/null +++ b/languages/classes/LanguageUz.php @@ -0,0 +1,137 @@ +<?php +/** + * Uzbek 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +require_once( __DIR__ . '/../LanguageConverter.php' ); + +/** + * @ingroup Language + */ +class UzConverter extends LanguageConverter { + var $toLatin = array( + 'а' => 'a', 'А' => 'A', + 'б' => 'b', 'Б' => 'B', + 'д' => 'd', 'Д' => 'D', + 'е' => 'e', 'Е' => 'E', + 'э' => 'e', 'Э' => 'E', + 'в' => 'v', 'В' => 'V', + 'х' => 'x', 'Х' => 'X', + 'ғ' => 'gʻ', 'Ғ' => 'Gʻ', + 'г' => 'g', 'Г' => 'G', + 'ҳ' => 'h', 'Ҳ' => 'H', + 'ж' => 'j', 'Ж' => 'J', + 'з' => 'z', 'З' => 'Z', + 'и' => 'i', 'И' => 'I', + 'к' => 'k', 'К' => 'K', + 'л' => 'l', 'Л' => 'L', + 'м' => 'm', 'М' => 'M', + 'н' => 'n', 'Н' => 'N', + 'о' => 'o', 'О' => 'O', + 'п' => 'p', 'П' => 'P', + 'р' => 'r', 'Р' => 'R', + 'с' => 's', 'С' => 'S', + 'т' => 't', 'Т' => 'T', + 'у' => 'u', 'У' => 'U', + 'ф' => 'f', 'Ф' => 'F', + 'ц' => 'c', 'Ц' => 'C', + 'ў' => 'oʻ', 'Ў' => 'Oʻ', + 'ц' => 'ts', 'Ц' => 'Ts', // note: at the beginning of a word and right after a consonant, only "s" is used + 'қ' => 'q', 'Қ' => 'Q', + 'ё' => 'yo', 'Ё' => 'Yo', + 'ю' => 'yu', 'Ю' => 'Yu', + 'ч' => 'ch', 'Ч' => 'Ch', + 'ш' => 'sh', 'Ш' => 'Sh', + 'й' => 'y', 'Й' => 'Y', + 'я' => 'ya', 'Я' => 'Ya', + 'ъ' => 'ʼ', + ); + + var $toCyrillic = array( + 'a' => 'а', 'A' => 'А', + 'b' => 'б', 'B' => 'Б', + 'd' => 'д', 'D' => 'Д', + 'e' => 'е', 'E' => 'Е', + ' e' => ' э', ' E' => ' Э', // "э" is used at the beginning of a word instead of "e" + 'ye' => 'е', 'Ye' => 'Е', + 'f' => 'ф', 'F' => 'Ф', + 'g' => 'г', 'G' => 'Г', + 'g‘' => 'ғ', 'G‘' => 'Ғ', 'gʻ' => 'ғ', 'Gʻ' => 'Ғ', + 'h' => 'ҳ', 'H' => 'Ҳ', + 'i' => 'и', 'I' => 'И', + 'k' => 'к', 'K' => 'К', + 'l' => 'л', 'L' => 'Л', + 'm' => 'м', 'M' => 'М', + 'n' => 'н', 'N' => 'Н', + 'o' => 'о', 'O' => 'О', + 'p' => 'п', 'P' => 'П', + 'r' => 'р', 'R' => 'Р', + 's' => 'с', 'S' => 'С', + 't' => 'т', 'T' => 'Т', + 'u' => 'у', 'U' => 'У', + 'v' => 'в', 'V' => 'В', + 'x' => 'х', 'X' => 'Х', + 'z' => 'з', 'Z' => 'З', + 'j' => 'ж', 'J' => 'Ж', + 'o‘' => 'ў', 'O‘' => 'Ў', 'oʻ' => 'ў', 'Oʻ' => 'Ў', + 'yo‘' => 'йў', 'Yo‘' => 'Йў', 'yoʻ' => 'йў', 'Yoʻ' => 'Йў', + 'ts' => 'ц', 'Ts' => 'Ц', + 'q' => 'қ', 'Q' => 'Қ', + 'yo' => 'ё', 'Yo' => 'Ё', + 'yu' => 'ю', 'Yu' => 'Ю', + 'ch' => 'ч', 'Ch' => 'Ч', + 'sh' => 'ш', 'Sh' => 'Ш', + 'y' => 'й', 'Y' => 'Й', + 'ya' => 'я', 'Ya' => 'Я', + 'ʼ' => 'ъ', + ); + + function loadDefaultTables() { + $this->mTables = array( + 'uz-cyrl' => new ReplacementArray( $this->toCyrillic ), + 'uz-latn' => new ReplacementArray( $this->toLatin ), + 'uz' => new ReplacementArray() + ); + } + +} + +/** + * Uzbek + * + * @ingroup Language + */ +class LanguageUz extends Language { + function __construct() { + global $wgHooks; + parent::__construct(); + + $variants = array( 'uz', 'uz-latn', 'uz-cyrl' ); + $variantfallbacks = array( + 'uz' => 'uz-latn', + 'uz-cyrl' => 'uz', + 'uz-latn' => 'uz', + ); + + $this->mConverter = new UzConverter( $this, 'uz', $variants, $variantfallbacks ); + $wgHooks['ArticleSaveComplete'][] = $this->mConverter; + } +} diff --git a/languages/classes/LanguageWa.php b/languages/classes/LanguageWa.php index 4a186638..9e90c7f4 100644 --- a/languages/classes/LanguageWa.php +++ b/languages/classes/LanguageWa.php @@ -1,13 +1,34 @@ <?php /** - * Walloon (Walon) + * Walloon (Walon) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html * + * @file * @ingroup Language */ -# NOTE: cweri après "NOTE:" po des racsegnes so des ratournaedjes -# k' i gn a. - +/** + * Walloon (Walon) + * + * NOTE: cweri après "NOTE:" po des racsegnes so des ratournaedjes + * k' i gn a. + * + * @ingroup Language + */ class LanguageWa extends Language { /** * Use singular form for zero @@ -37,7 +58,9 @@ class LanguageWa extends Language { */ function date( $ts, $adj = false, $format = true, $tc = false ) { $ts = wfTimestamp( TS_MW, $ts ); - if ( $adj ) { $ts = $this->userAdjust( $ts, $tc ); } + if ( $adj ) { + $ts = $this->userAdjust( $ts, $tc ); + } $datePreference = $this->dateFormat( $format ); # ISO (YYYY-mm-dd) format diff --git a/languages/classes/LanguageYue.php b/languages/classes/LanguageYue.php index 5492529e..aef52151 100644 --- a/languages/classes/LanguageYue.php +++ b/languages/classes/LanguageYue.php @@ -1,5 +1,27 @@ <?php /** + * Cantonese (粵語) 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ + +/** * Cantonese (粵語) * * @ingroup Language diff --git a/languages/classes/LanguageZh.deps.php b/languages/classes/LanguageZh.deps.php deleted file mode 100644 index 41874ff8..00000000 --- a/languages/classes/LanguageZh.deps.php +++ /dev/null @@ -1,9 +0,0 @@ -<?php -// This file exists to ensure that base classes are preloaded before -// LanguageZh.php is compiled, working around a bug in the APC opcode -// cache on PHP 5, where cached code can break if the include order -// changed on a subsequent page view. -// see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html - -require_once( dirname( __FILE__ ) . '/LanguageZh_hans.php' ); -require_once( dirname( __FILE__ ) . '/../LanguageConverter.php' ); diff --git a/languages/classes/LanguageZh.php b/languages/classes/LanguageZh.php index d69929de..63f90fd9 100644 --- a/languages/classes/LanguageZh.php +++ b/languages/classes/LanguageZh.php @@ -1,7 +1,28 @@ <?php +/** + * Chinese 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ -require_once( dirname( __FILE__ ) . '/../LanguageConverter.php' ); -require_once( dirname( __FILE__ ) . '/LanguageZh_hans.php' ); +require_once( __DIR__ . '/../LanguageConverter.php' ); +require_once( __DIR__ . '/LanguageZh_hans.php' ); /** * @ingroup Language @@ -43,7 +64,7 @@ class ZhConverter extends LanguageConverter { } function loadDefaultTables() { - require( dirname( __FILE__ ) . "/../../includes/ZhConversion.php" ); + require( __DIR__ . "/../../includes/ZhConversion.php" ); $this->mTables = array( 'zh-hans' => new ReplacementArray( $zh2Hans ), 'zh-hant' => new ReplacementArray( $zh2Hant ), diff --git a/languages/classes/LanguageZh_hans.php b/languages/classes/LanguageZh_hans.php index 671a16e7..d95c42ea 100644 --- a/languages/classes/LanguageZh_hans.php +++ b/languages/classes/LanguageZh_hans.php @@ -1,4 +1,25 @@ <?php +/** + * Simplified Chinese 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file + * @ingroup Language + */ /** * Simplified Chinese |