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