wiki.techinc.nl/languages/classes/LanguageTg.php
Alexandre Emsenhuber 087a9f70c5 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

104 lines
1.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
require_once( dirname(__FILE__).'/../LanguageConverter.php' );
/**
* Converts Tajiki to latin orthography
* @ingroup Language
*/
class TgConverter extends LanguageConverter {
private $table = array(
'а' => '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',
);
function loadDefaultTables() {
$this->mTables = array(
'tg-latn' => new ReplacementArray( $this->table ),
'tg' => new ReplacementArray()
);
}
}
/**
* @ingroup Language
*/
class LanguageTg extends Language {
function __construct() {
parent::__construct();
$variants = array( 'tg', 'tg-latn' );
$this->mConverter = new TgConverter( $this, 'tg', $variants );
}
}