29 'а' =>
'a',
'А' =>
'A',
30 'б' =>
'b',
'Б' =>
'B',
31 'д' =>
'd',
'Д' =>
'D',
32 'е' =>
'e',
'Е' =>
'E',
33 'э' =>
'e',
'Э' =>
'E',
34 'в' =>
'v',
'В' =>
'V',
35 'х' =>
'x',
'Х' =>
'X',
36 'ғ' =>
'gʻ',
'Ғ' =>
'Gʻ',
37 'г' =>
'g',
'Г' =>
'G',
38 'ҳ' =>
'h',
'Ҳ' =>
'H',
39 'ж' =>
'j',
'Ж' =>
'J',
40 'з' =>
'z',
'З' =>
'Z',
41 'и' =>
'i',
'И' =>
'I',
42 'к' =>
'k',
'К' =>
'K',
43 'л' =>
'l',
'Л' =>
'L',
44 'м' =>
'm',
'М' =>
'M',
45 'н' =>
'n',
'Н' =>
'N',
46 'о' =>
'o',
'О' =>
'O',
47 'п' =>
'p',
'П' =>
'P',
48 'р' =>
'r',
'Р' =>
'R',
49 'с' =>
's',
'С' =>
'S',
50 'т' =>
't',
'Т' =>
'T',
51 'у' =>
'u',
'У' =>
'U',
52 'ф' =>
'f',
'Ф' =>
'F',
53 'ц' =>
'c',
'Ц' =>
'C',
54 'ў' =>
'oʻ',
'Ў' =>
'Oʻ',
56 'ц' =>
'ts',
'Ц' =>
'Ts',
57 'қ' =>
'q',
'Қ' =>
'Q',
58 'ё' =>
'yo',
'Ё' =>
'Yo',
59 'ю' =>
'yu',
'Ю' =>
'Yu',
60 'ч' =>
'ch',
'Ч' =>
'Ch',
61 'ш' =>
'sh',
'Ш' =>
'Sh',
62 'й' =>
'y',
'Й' =>
'Y',
63 'я' =>
'ya',
'Я' =>
'Ya',
68 'a' =>
'а',
'A' =>
'А',
69 'b' =>
'б',
'B' =>
'Б',
70 'd' =>
'д',
'D' =>
'Д',
73 'e' =>
'э',
'E' =>
'Э',
74 'f' =>
'ф',
'F' =>
'Ф',
75 'g' =>
'г',
'G' =>
'Г',
76 'g‘' =>
'ғ',
'G‘' =>
'Ғ',
'gʻ' =>
'ғ',
'Gʻ' =>
'Ғ',
77 'h' =>
'ҳ',
'H' =>
'Ҳ',
78 'i' =>
'и',
'I' =>
'И',
79 'k' =>
'к',
'K' =>
'К',
80 'l' =>
'л',
'L' =>
'Л',
81 'm' =>
'м',
'M' =>
'М',
82 'n' =>
'н',
'N' =>
'Н',
83 'o' =>
'о',
'O' =>
'О',
84 'p' =>
'п',
'P' =>
'П',
85 'r' =>
'р',
'R' =>
'Р',
86 's' =>
'с',
'S' =>
'С',
87 't' =>
'т',
'T' =>
'Т',
88 'u' =>
'у',
'U' =>
'У',
89 'v' =>
'в',
'V' =>
'В',
90 'x' =>
'х',
'X' =>
'Х',
91 'z' =>
'з',
'Z' =>
'З',
92 'j' =>
'ж',
'J' =>
'Ж',
93 'o‘' =>
'ў',
'O‘' =>
'Ў',
'oʻ' =>
'ў',
'Oʻ' =>
'Ў',
94 'yo‘' =>
'йў',
'Yo‘' =>
'Йў',
'yoʻ' =>
'йў',
'Yoʻ' =>
'Йў',
95 'ts' =>
'ц',
'Ts' =>
'Ц',
96 'q' =>
'қ',
'Q' =>
'Қ',
97 'yo' =>
'ё',
'Yo' =>
'Ё',
98 'yu' =>
'ю',
'Yu' =>
'Ю',
99 'ch' =>
'ч',
'Ch' =>
'Ч',
100 'sh' =>
'ш',
'Sh' =>
'Ш',
101 'y' =>
'й',
'Y' =>
'Й',
102 'ya' =>
'я',
'Ya' =>
'Я',
115 if ( $toVariant ==
'uz-cyrl' ) {
116 $text = str_replace(
'ye',
'е', $text );
117 $text = str_replace(
'Ye',
'Е', $text );
118 $text = str_replace(
'YE',
'Е', $text );
120 $text = preg_replace(
'/([BVGDJZYKLMNPRSTFXCWQʻ‘H])E/u',
'$1Е', $text );
121 $text = preg_replace(
'/([bvgdjzyklmnprstfxcwqʻ‘h])e/ui',
'$1е', $text );
123 return parent::translate( $text, $toVariant );
135 parent::__construct();
137 $variants = [
'uz',
'uz-latn',
'uz-cyrl' ];
138 $variantfallbacks = [
144 $this->mConverter =
new UzConverter( $this,
'uz', $variants, $variantfallbacks );
Base class for language conversion.
Internationalisation code.
Wrapper around strtr() that holds replacements.
loadDefaultTables()
Load default conversion tables.
translate( $text, $toVariant)
Translate a string to a variant.