2008-04-04 04:25:58 +00:00
|
|
|
|
<?php
|
2012-06-10 17:40:03 +00:00
|
|
|
|
/**
|
|
|
|
|
|
* 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
|
|
|
|
|
|
*/
|
2008-04-04 04:25:58 +00:00
|
|
|
|
|
|
|
|
|
|
/**
|
2018-10-05 16:37:53 +00:00
|
|
|
|
* Converts Tajiki to Latin orthography
|
2012-06-10 17:40:03 +00:00
|
|
|
|
*
|
WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>
Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage
One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
|
|
|
|
* @ingroup Language
|
2008-04-04 04:25:58 +00:00
|
|
|
|
*/
|
|
|
|
|
|
class TgConverter extends LanguageConverter {
|
2016-02-17 09:09:32 +00:00
|
|
|
|
private $table = [
|
2008-04-04 04:25:58 +00:00
|
|
|
|
'а' => 'a',
|
|
|
|
|
|
'б' => 'b',
|
|
|
|
|
|
'в' => 'v',
|
|
|
|
|
|
'г' => 'g',
|
|
|
|
|
|
'д' => 'd',
|
|
|
|
|
|
'е' => 'e',
|
|
|
|
|
|
'ё' => 'jo',
|
|
|
|
|
|
'ж' => 'ƶ',
|
|
|
|
|
|
'з' => 'z',
|
|
|
|
|
|
'ии ' => 'iji ',
|
|
|
|
|
|
'и' => 'i',
|
|
|
|
|
|
'й' => 'j',
|
|
|
|
|
|
'к' => 'k',
|
|
|
|
|
|
'л' => 'l',
|
|
|
|
|
|
'м' => 'm',
|
|
|
|
|
|
'н' => 'n',
|
|
|
|
|
|
'о' => 'o',
|
|
|
|
|
|
'п' => 'p',
|
|
|
|
|
|
'р' => 'r',
|
|
|
|
|
|
'с' => 's',
|
|
|
|
|
|
'т' => 't',
|
|
|
|
|
|
'у' => 'u',
|
|
|
|
|
|
'ф' => 'f',
|
|
|
|
|
|
'х' => 'x',
|
|
|
|
|
|
'ч' => 'c',
|
|
|
|
|
|
'ш' => 'ş',
|
|
|
|
|
|
'ъ' => '\'',
|
|
|
|
|
|
'э' => 'e',
|
|
|
|
|
|
'ю' => 'ju',
|
|
|
|
|
|
'я' => 'ja',
|
|
|
|
|
|
'ғ' => 'ƣ',
|
|
|
|
|
|
'ӣ' => 'ī',
|
|
|
|
|
|
'қ' => 'q',
|
|
|
|
|
|
'ӯ' => 'ū',
|
|
|
|
|
|
'ҳ' => 'h',
|
|
|
|
|
|
'ҷ' => 'ç',
|
|
|
|
|
|
'ц' => 'ts',
|
|
|
|
|
|
'А' => 'A',
|
|
|
|
|
|
'Б' => 'B',
|
|
|
|
|
|
'В' => 'V',
|
|
|
|
|
|
'Г' => 'G',
|
|
|
|
|
|
'Д' => 'D',
|
|
|
|
|
|
'Е' => 'E',
|
|
|
|
|
|
'Ё' => 'Jo',
|
|
|
|
|
|
'Ж' => 'Ƶ',
|
|
|
|
|
|
'З' => 'Z',
|
|
|
|
|
|
'И' => 'I',
|
|
|
|
|
|
'Й' => 'J',
|
|
|
|
|
|
'К' => 'K',
|
|
|
|
|
|
'Л' => 'L',
|
|
|
|
|
|
'М' => 'M',
|
|
|
|
|
|
'Н' => 'N',
|
|
|
|
|
|
'О' => 'O',
|
|
|
|
|
|
'П' => 'P',
|
|
|
|
|
|
'Р' => 'R',
|
|
|
|
|
|
'С' => 'S',
|
|
|
|
|
|
'Т' => 'T',
|
|
|
|
|
|
'У' => 'U',
|
|
|
|
|
|
'Ф' => 'F',
|
|
|
|
|
|
'Х' => 'X',
|
|
|
|
|
|
'Ч' => 'C',
|
|
|
|
|
|
'Ш' => 'Ş',
|
|
|
|
|
|
'Ъ' => '\'',
|
|
|
|
|
|
'Э' => 'E',
|
|
|
|
|
|
'Ю' => 'Ju',
|
|
|
|
|
|
'Я' => 'Ja',
|
|
|
|
|
|
'Ғ' => 'Ƣ',
|
|
|
|
|
|
'Ӣ' => 'Ī',
|
|
|
|
|
|
'Қ' => 'Q',
|
|
|
|
|
|
'Ӯ' => 'Ū',
|
|
|
|
|
|
'Ҳ' => 'H',
|
|
|
|
|
|
'Ҷ' => 'Ç',
|
|
|
|
|
|
'Ц' => 'Ts',
|
2016-02-17 09:09:32 +00:00
|
|
|
|
];
|
2008-04-04 04:25:58 +00:00
|
|
|
|
|
|
|
|
|
|
function loadDefaultTables() {
|
2016-02-17 09:09:32 +00:00
|
|
|
|
$this->mTables = [
|
2008-04-04 04:25:58 +00:00
|
|
|
|
'tg-latn' => new ReplacementArray( $this->table ),
|
2013-04-17 19:10:02 +00:00
|
|
|
|
'tg' => new ReplacementArray()
|
2016-02-17 09:09:32 +00:00
|
|
|
|
];
|
2008-04-04 04:25:58 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>
Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage
One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
|
|
|
|
/**
|
2010-10-10 12:53:37 +00:00
|
|
|
|
* Tajik (Тоҷикӣ)
|
|
|
|
|
|
*
|
WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>
Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage
One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
|
|
|
|
* @ingroup Language
|
|
|
|
|
|
*/
|
2008-04-04 04:25:58 +00:00
|
|
|
|
class LanguageTg extends Language {
|
|
|
|
|
|
function __construct() {
|
|
|
|
|
|
parent::__construct();
|
2016-02-17 09:09:32 +00:00
|
|
|
|
$variants = [ 'tg', 'tg-latn' ];
|
2008-04-04 04:25:58 +00:00
|
|
|
|
$this->mConverter = new TgConverter( $this, 'tg', $variants );
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|