MediaWiki
REL1_22
|
00001 <?php 00024 require_once __DIR__ . '/../LanguageConverter.php'; 00025 00031 class TgConverter extends LanguageConverter { 00032 private $table = array( 00033 'а' => 'a', 00034 'б' => 'b', 00035 'в' => 'v', 00036 'г' => 'g', 00037 'д' => 'd', 00038 'е' => 'e', 00039 'ё' => 'jo', 00040 'ж' => 'ƶ', 00041 'з' => 'z', 00042 'ии ' => 'iji ', 00043 'и' => 'i', 00044 'й' => 'j', 00045 'к' => 'k', 00046 'л' => 'l', 00047 'м' => 'm', 00048 'н' => 'n', 00049 'о' => 'o', 00050 'п' => 'p', 00051 'р' => 'r', 00052 'с' => 's', 00053 'т' => 't', 00054 'у' => 'u', 00055 'ф' => 'f', 00056 'х' => 'x', 00057 'ч' => 'c', 00058 'ш' => 'ş', 00059 'ъ' => '\'', 00060 'э' => 'e', 00061 'ю' => 'ju', 00062 'я' => 'ja', 00063 'ғ' => 'ƣ', 00064 'ӣ' => 'ī', 00065 'қ' => 'q', 00066 'ӯ' => 'ū', 00067 'ҳ' => 'h', 00068 'ҷ' => 'ç', 00069 'ц' => 'ts', 00070 'А' => 'A', 00071 'Б' => 'B', 00072 'В' => 'V', 00073 'Г' => 'G', 00074 'Д' => 'D', 00075 'Е' => 'E', 00076 'Ё' => 'Jo', 00077 'Ж' => 'Ƶ', 00078 'З' => 'Z', 00079 'И' => 'I', 00080 'Й' => 'J', 00081 'К' => 'K', 00082 'Л' => 'L', 00083 'М' => 'M', 00084 'Н' => 'N', 00085 'О' => 'O', 00086 'П' => 'P', 00087 'Р' => 'R', 00088 'С' => 'S', 00089 'Т' => 'T', 00090 'У' => 'U', 00091 'Ф' => 'F', 00092 'Х' => 'X', 00093 'Ч' => 'C', 00094 'Ш' => 'Ş', 00095 'Ъ' => '\'', 00096 'Э' => 'E', 00097 'Ю' => 'Ju', 00098 'Я' => 'Ja', 00099 'Ғ' => 'Ƣ', 00100 'Ӣ' => 'Ī', 00101 'Қ' => 'Q', 00102 'Ӯ' => 'Ū', 00103 'Ҳ' => 'H', 00104 'Ҷ' => 'Ç', 00105 'Ц' => 'Ts', 00106 ); 00107 00108 function loadDefaultTables() { 00109 $this->mTables = array( 00110 'tg-latn' => new ReplacementArray( $this->table ), 00111 'tg' => new ReplacementArray() 00112 ); 00113 } 00114 00115 } 00116 00122 class LanguageTg extends Language { 00123 function __construct() { 00124 parent::__construct(); 00125 $variants = array( 'tg', 'tg-latn' ); 00126 $this->mConverter = new TgConverter( $this, 'tg', $variants ); 00127 } 00128 }