thumb_handler.php doesn't seem to extract path_info correctly
[mediawiki.git] / languages / classes / LanguageTg.php
blob10755b48de1c0a752b42a60fe38bb80f50a85cf8
1 <?php
2 /**
3 * Tajik (Тоҷикӣ) specific code.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * http://www.gnu.org/copyleft/gpl.html
20 * @file
21 * @ingroup Language
24 require_once __DIR__ . '/../LanguageConverter.php';
26 /**
27 * Converts Tajiki to latin orthography
29 * @ingroup Language
31 class TgConverter extends LanguageConverter {
32 private $table = array(
33 'а' => 'a',
34 'б' => 'b',
35 'в' => 'v',
36 'г' => 'g',
37 'д' => 'd',
38 'е' => 'e',
39 'ё' => 'jo',
40 'ж' => 'ƶ',
41 'з' => 'z',
42 'ии ' => 'iji ',
43 'и' => 'i',
44 'й' => 'j',
45 'к' => 'k',
46 'л' => 'l',
47 'м' => 'm',
48 'н' => 'n',
49 'о' => 'o',
50 'п' => 'p',
51 'р' => 'r',
52 'с' => 's',
53 'т' => 't',
54 'у' => 'u',
55 'ф' => 'f',
56 'х' => 'x',
57 'ч' => 'c',
58 'ш' => 'ş',
59 'ъ' => '\'',
60 'э' => 'e',
61 'ю' => 'ju',
62 'я' => 'ja',
63 'ғ' => 'ƣ',
64 'ӣ' => 'ī',
65 'қ' => 'q',
66 'ӯ' => 'ū',
67 'ҳ' => 'h',
68 'ҷ' => 'ç',
69 'ц' => 'ts',
70 'А' => 'A',
71 'Б' => 'B',
72 'В' => 'V',
73 'Г' => 'G',
74 'Д' => 'D',
75 'Е' => 'E',
76 'Ё' => 'Jo',
77 'Ж' => 'Ƶ',
78 'З' => 'Z',
79 'И' => 'I',
80 'Й' => 'J',
81 'К' => 'K',
82 'Л' => 'L',
83 'М' => 'M',
84 'Н' => 'N',
85 'О' => 'O',
86 'П' => 'P',
87 'Р' => 'R',
88 'С' => 'S',
89 'Т' => 'T',
90 'У' => 'U',
91 'Ф' => 'F',
92 'Х' => 'X',
93 'Ч' => 'C',
94 'Ш' => 'Ş',
95 'Ъ' => '\'',
96 'Э' => 'E',
97 'Ю' => 'Ju',
98 'Я' => 'Ja',
99 'Ғ' => 'Ƣ',
100 'Ӣ' => 'Ī',
101 'Қ' => 'Q',
102 'Ӯ' => 'Ū',
103 'Ҳ' => 'H',
104 'Ҷ' => 'Ç',
105 'Ц' => 'Ts',
108 function loadDefaultTables() {
109 $this->mTables = array(
110 'tg-latn' => new ReplacementArray( $this->table ),
111 'tg' => new ReplacementArray()
118 * Tajik (Тоҷикӣ)
120 * @ingroup Language
122 class LanguageTg extends Language {
123 function __construct() {
124 parent::__construct();
125 $variants = array( 'tg', 'tg-latn' );
126 $this->mConverter = new TgConverter( $this, 'tg', $variants );