ecf93e984c47ee8c5f5043599d5777e17194dfa1
[lhc/web/wiklou.git] / languages / LanguageTt.php
1 <?php
2 /**
3 * @package MediaWiki
4 * @subpackage Language
5 */
6 #
7 # Tatarish localisation for MediaWiki
8 #
9 # This file is encoded in UTF-8, no byte order mark.
10 # For compatibility with Latin-1 installations, please
11 # don't add literal characters above U+00ff.
12 #
13
14 require_once( "LanguageUtf8.php" );
15
16 /* private */ $wgNamespaceNamesTt = array(
17 NS_MEDIA => 'Media',
18 NS_SPECIAL => 'Maxsus',
19 NS_MAIN => '',
20 NS_TALK => 'Bäxäs',
21 NS_USER => 'Äğzä',
22 NS_USER_TALK => "Äğzä_bäxäse",
23 NS_PROJECT => "Wikipedia",
24 NS_PROJECT_TALK => "Wikipedia_bäxäse",
25 NS_IMAGE => "Räsem",
26 NS_IMAGE_TALK => "Räsem_bäxäse",
27 NS_MEDIAWIKI => "MediaWiki",
28 NS_MEDIAWIKI_TALK => "MediaWiki_bäxäse",
29 NS_TEMPLATE => "Ürnäk",
30 NS_TEMPLATE_TALK => "Ürnäk_bäxäse",
31 NS_HELP => "Yärdäm",
32 NS_HELP_TALK => "Yärdäm_bäxäse",
33 NS_CATEGORY => "Törkem",
34 NS_CATEGORY_TALK => "Törkem_bäxäse"
35 ) + $wgNamespaceNamesEn;
36
37 /* private */ $wgDateFormatsTt = array(
38 # "köyläwsez",
39 );
40
41 # Note to translators:
42 # Please include the English words as synonyms. This allows people
43 # from other wikis to contribute more easily.
44 #
45 /* private */ $wgMagicWordsTt = array(
46 # ID CASE SYNONYMS
47 MAG_REDIRECT => array( 0, '#yünältü' ),
48 MAG_NOTOC => array( 0, '__ETYUQ__' ),
49 MAG_FORCETOC => array( 0, '__ETTIQ__' ),
50 MAG_TOC => array( 0, '__ET__' ),
51 MAG_NOEDITSECTION => array( 0, '__BÜLEMTÖZÄTÜYUQ__' ),
52 MAG_START => array( 0, '__BAŞLAW__' ),
53 MAG_CURRENTMONTH => array( 1, 'AĞIMDAĞI_AY' ),
54 MAG_CURRENTMONTHNAME => array( 1, 'AĞIMDAĞI_AY_İSEME' ),
55 MAG_CURRENTDAY => array( 1, 'AĞIMDAĞI_KÖN' ),
56 MAG_CURRENTDAYNAME => array( 1, 'AĞIMDAĞI_KÖN_İSEME' ),
57 MAG_CURRENTYEAR => array( 1, 'AĞIMDAĞI_YIL' ),
58 MAG_CURRENTTIME => array( 1, 'AĞIMDAĞI_WAQIT' ),
59 MAG_NUMBEROFARTICLES => array( 1, 'MÄQÄLÄ_SANI' ),
60 MAG_CURRENTMONTHNAMEGEN => array( 1, 'AĞIMDAĞI_AY_İSEME_GEN' ),
61 MAG_PAGENAME => array( 1, 'BİTİSEME' ),
62 MAG_NAMESPACE => array( 1, 'İSEMARA' ),
63 MAG_SUBST => array( 0, 'TÖPÇEK:' ),
64 MAG_MSGNW => array( 0, 'MSGNW:' ),
65 MAG_END => array( 0, '__AZAQ__' ),
66 MAG_IMG_THUMBNAIL => array( 1, 'thumbnail', 'thumb' ),
67 MAG_IMG_RIGHT => array( 1, 'uñda' ),
68 MAG_IMG_LEFT => array( 1, 'sulda' ),
69 MAG_IMG_NONE => array( 1, 'yuq' ),
70 MAG_IMG_WIDTH => array( 1, '$1px' ),
71 MAG_IMG_CENTER => array( 1, 'center', 'centre' ),
72 MAG_IMG_FRAMED => array( 1, 'framed', 'enframed', 'frame' ),
73 MAG_INT => array( 0, 'EÇKE:' ),
74 MAG_SITENAME => array( 1, 'SÄXİFÄİSEME' ),
75 MAG_NS => array( 0, 'İA:' ),
76 MAG_LOCALURL => array( 0, 'URINLIURL:' ),
77 MAG_LOCALURLE => array( 0, 'URINLIURLE:' ),
78 MAG_SERVER => array( 0, 'SERVER' )
79 ) + $wgMagicWordsEn;
80
81 /* private */ $wgAllMessagesTt = array(
82
83 # week days, months
84 'sunday' => "Yäkşämbe",
85 'monday' => "Düşämbe",
86 'tuesday' => "Sişämbe",
87 'wednesday' => "Çärşämbe",
88 'thursday' => "Pänceşämbe",
89 'friday' => "Comğa",
90 'saturday' => "Şimbä",
91 'january' => "Ğínwar",
92 'february' => "Febräl",
93 'march' => "Mart",
94 'april' => "Äpril",
95 'may_long' => "May",
96 'june' => "Yün",
97 'july' => "Yül",
98 'august' => "August",
99 'september' => "Sentäber",
100 'october' => "Öktäber",
101 'november' => "Nöyäber",
102 'december' => "Dekäber",
103 'jan' => "Ğín",
104 'feb' => "Feb",
105 'mar' => "Mar",
106 'apr' => "Äpr",
107 'may' => "May",
108 'jun' => "Yün",
109 'jul' => "Yül",
110 'aug' => "Aug",
111 'sep' => "Sen",
112 'oct' => "Ökt",
113 'nov' => "Nöy",
114 'dec' => "Dek",
115
116 # User Toggles
117 "tog-underline" => "Underline links",
118 "tog-highlightbroken" => "Format broken links <a href=\"\" class=\"new\">like this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
119 "tog-justify" => "Justify paragraphs",
120 "tog-hideminor" => "Hide minor edits in recent changes",
121 "tog-usenewrc" => "Enhanced recent changes (not for all browsers)",
122 "tog-numberheadings" => "Auto-number headings",
123 "tog-showtoolbar" =>"Show edit toolbar",
124 "tog-editondblclick" => "Edit pages on double click (JavaScript)",
125 "tog-editsection" =>"Enable section editing via [edit] links",
126 "tog-editsectiononrightclick"=>"Enable section editing by right clicking<br /> on section titles (JavaScript)",
127 "tog-showtoc" =>"Show table of contents<br />(for articles with more than 3 headings)",
128 "tog-rememberpassword" => "Remember password across sessions",
129 "tog-editwidth" => "Edit box has full width",
130 "tog-watchdefault" => "Add pages you edit to your watchlist",
131 "tog-minordefault" => "Mark all edits minor by default",
132 "tog-previewontop" => "Show preview before edit box and not after it",
133 "tog-nocache" => "Disable page caching",
134
135 );
136
137 class LanguageTt extends LanguageUtf8 {
138
139 function getNamespaces() {
140 global $wgNamespaceNamesTt;
141 return $wgNamespaceNamesTt;
142 }
143
144 function getDateFormats() {
145 global $wgDateFormatsTt;
146 return $wgDateFormatsTt;
147 }
148
149
150 function date( $ts, $adj = false ) {
151 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
152
153 $d = (0 + substr( $ts, 6, 2 )) . ". " .
154 $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
155 substr( $ts, 0, 4 );
156 return $d;
157 }
158
159 function time( $ts, $adj = false ) {
160 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
161
162 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
163 return $t;
164 }
165
166 function timeanddate( $ts, $adj = false ) {
167 return $this->date( $ts, $adj ) . ", " . $this->time( $ts, $adj );
168 }
169
170 function getMessage( $key ) {
171 global $wgAllMessagesTt;
172 if( isset( $wgAllMessagesTt[$key] ) ) {
173 return $wgAllMessagesTt[$key];
174 } else {
175 return parent::getMessage( $key );
176 }
177 }
178
179 function fallback8bitEncoding() {
180 # Windows codepage 1252 is a superset of iso 8859-1
181 # override this to use difference source encoding to
182 # translate incoming 8-bit URLs.
183 return "windows-1254";
184 }
185 }
186
187 ?>