aboutsummaryrefslogtreecommitdiffstats
path: root/languages/LanguageTt.php
blob: 4aa66ab5f82bd22868ae899a11636cbf20ba37c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<?php
#
# Tatarish localisation for MediaWiki
#
# This file is encoded in UTF-8, no byte order mark.
# For compatibility with Latin-1 installations, please
# don't add literal characters above U+00ff.
#

require_once( "LanguageUtf8.php" );

#--------------------------------------------------------------------------
# Language-specific text
#--------------------------------------------------------------------------

# The names of the namespaces can be set here, but the numbers
# are magical, so don't change or move them!  The Namespace class
# encapsulates some of the magic-ness.
#

/* private */ $wgNamespaceNamesTt = array(
        NS_MEDIA            => 'Media',
        NS_SPECIAL          => 'Maxsus',
        NS_MAIN             => '',
        NS_TALK             => 'Bäxäs',
        NS_USER             => 'Äğzä',
        NS_USER_TALK        => "Äğzä_bäxäse",
        NS_WIKIPEDIA        => "Wikipedia",
        NS_WIKIPEDIA_TALK   => "Wikipedia_bäxäse",
        NS_IMAGE            => "Räsem",
        NS_IMAGE_TALK       => "Räsem_bäxäse",
        NS_MEDIAWIKI        => "MediaWiki",
        NS_MEDIAWIKI_TALK   => "MediaWiki_bäxäse",
        NS_TEMPLATE         => "Ürnäk",
        NS_TEMPLATE_TALK    => "Ürnäk_bäxäse",
        NS_HELP             => "Yärdäm",
        NS_HELP_TALK        => "Yärdäm_bäxäse",
        NS_CATEGORY         => "Törkem",
        NS_CATEGORY_TALK    => "Törkem_bäxäse"
) + $wgNamespaceNamesEn;

/* private */ $wgQuickbarSettingsTt = array(
        "None", "Fixed left", "Fixed right", "Floating left"
);

/* private */ $wgSkinNamesTt = array(
        'standard' => 'Classic',
        'nostalgia' => 'Nostalgia',
        'cologneblue' => 'Cologne Blue',
        'davinci' => 'DaVinci',
        'mono' => 'Mono',
        'monobook' => 'MonoBook',
        'myskin' => 'MySkin'
);

/* private */ $wgDateFormatsTt = array(
        "köyläwsez",
        "Ğínwar 15, 2001",
        "15. Ğínwar 2001",
        "2001 Ğínwar 15"
        "2001-01-15"
);

/* private */ $wgUserTogglesTt = array(
        "hover"                       => "Show hoverbox over wiki links",
        "underline"           => "Underline links",
        "highlightbroken"     => "Format broken links <a href=\"\" class=\"new\">like this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
        "justify"             => "Justify paragraphs",
        "hideminor"           => "Hide minor edits in recent changes",
        "usenewrc"            => "Enhanced recent changes (not for all browsers)",
        "numberheadings"      => "Auto-number headings",
        "showtoolbar"         =>"Show edit toolbar",
        "editondblclick"      => "Edit pages on double click (JavaScript)",
        "editsection"         =>"Enable section editing via [edit] links",
        "editsectiononrightclick"=>"Enable section editing by right clicking<br> on section titles (JavaScript)",
        "showtoc"             =>"Show table of contents<br>(for articles with more than 3 headings)",
        "rememberpassword"    => "Remember password across sessions",
        "editwidth"           => "Edit box has full width",
        "watchdefault"                => "Add pages you edit to your watchlist",
        "minordefault"                => "Mark all edits minor by default",
        "previewontop"                => "Show preview before edit box and not after it",
        "nocache"             => "Disable page caching"
);

/* private */ $wgBookstoreListTt = array(
        "AddALL" => "http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN",
        "PriceSCAN" => "http://www.pricescan.com/books/bookDetail.asp?isbn=$1",
        "Barnes & Noble" => "http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1",
        "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
);

# Read language names
global $wgLanguageNames;
require_once( "Names.php" );

$wgLanguageNamesTt =& $wgLanguageNames;

# Note to translators:
#   Please include the English words as synonyms.  This allows people
#   from other wikis to contribute more easily.
#
/* private */ $wgMagicWordsTt = array(
#       ID                                 CASE  SYNONYMS
        MAG_REDIRECT             => array( 0,    '#yünältü'               ),
        MAG_NOTOC                => array( 0,    '__ETYUQ__'              ),
        MAG_FORCETOC             => array( 0,    '__ETTIQ__'              ),
        MAG_TOC                  => array( 0,    '__ET__'                 ),
        MAG_NOEDITSECTION        => array( 0,    '__BÜLEMTÖZÄTÜYUQ__'     ),
        MAG_START                => array( 0,    '__BAŞLAW__'             ),
        MAG_CURRENTMONTH         => array( 1,    'AĞIMDAĞI_AY'            ),
        MAG_CURRENTMONTHNAME     => array( 1,    'AĞIMDAĞI_AY_İSEME'      ),
        MAG_CURRENTDAY           => array( 1,    'AĞIMDAĞI_KÖN'           ),
        MAG_CURRENTDAYNAME       => array( 1,    'AĞIMDAĞI_KÖN_İSEME'     ),
        MAG_CURRENTYEAR          => array( 1,    'AĞIMDAĞI_YIL'           ),
        MAG_CURRENTTIME          => array( 1,    'AĞIMDAĞI_WAQIT'         ),
        MAG_NUMBEROFARTICLES     => array( 1,    'MÄQÄLÄ_SANI'            ),
        MAG_CURRENTMONTHNAMEGEN  => array( 1,    'AĞIMDAĞI_AY_İSEME_GEN'  ),
        MAG_PAGENAME             => array( 1,    'BİTİSEME'               ),
        MAG_NAMESPACE            => array( 1,    'İSEMARA'                ),
        MAG_MSG                  => array( 0,    'STR:'                   ),
        MAG_SUBST                => array( 0,    'TÖPÇEK:'                ),
        MAG_MSGNW                => array( 0,    'MSGNW:'                 ),
        MAG_END                  => array( 0,    '__AZAQ__'               ),
        MAG_IMG_THUMBNAIL        => array( 1,    'thumbnail', 'thumb'     ),
        MAG_IMG_RIGHT            => array( 1,    'uñda'                   ),
        MAG_IMG_LEFT             => array( 1,    'sulda'                  ),
        MAG_IMG_NONE             => array( 1,    'yuq'                    ),
        MAG_IMG_WIDTH            => array( 1,    '$1px'                   ),
        MAG_IMG_CENTER           => array( 1,    'center', 'centre'       ),
        MAG_IMG_FRAMED           => array( 1,    'framed', 'enframed', 'frame' ),
        MAG_INT                  => array( 0,    'EÇKE:'                   ),
        MAG_SITENAME             => array( 1,    'SÄXİFÄİSEME'            ),
        MAG_NS                   => array( 0,    'İA:'                    ),
        MAG_LOCALURL             => array( 0,    'URINLIURL:'              ),
        MAG_LOCALURLE            => array( 0,    'URINLIURLE:'             ),
        MAG_SERVER               => array( 0,    'SERVER'                 )
) + $wgMagicWordsEn;

#-------------------------------------------------------------------
# Default messages
#-------------------------------------------------------------------
# Allowed characters in keys are: A-Z, a-z, 0-9, underscore (_) and
# hyphen (-). If you need more characters, you may be able to change
# the regex in MagicWord::initRegex

# NOTE: To turn off "Current Events" in the sidebar,
# set "currentevents" => ""

# NOTE: To turn off "Disclaimers" in the title links,
# set "disclaimers" => ""

# NOTE: To turn off "Community portal" in the title links,
# set "portal" => ""

/* private */ $wgAllMessagesTt = array();

class LanguageTt extends LanguageUtf8 {

        function getDefaultUserOptions () {
                $opt = Language::getDefaultUserOptions();
                return $opt;
                }

        function getBookstoreList () {
                global $wgBookstoreListTt;
                return $wgBookstoreListTt;
        }

        function getNamespaces() {
                global $wgNamespaceNamesTt;
                return $wgNamespaceNamesTt;
        }

        function getNsText( $index ) {
                global $wgNamespaceNamesTt;
                return $wgNamespaceNamesTt[$index];
        }

        function getNsIndex( $text ) {
                global $wgNamespaceNamesTt;

                foreach ( $wgNamespaceNamesTt as $i => $n ) {
                        if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
                }
                return false;
        }

        function specialPage( $name ) {
                return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
        }

        function getQuickbarSettings() {
                global $wgQuickbarSettingsTt;
                return $wgQuickbarSettingsTt;
        }

        function getSkinNames() {
                global $wgSkinNamesTt;
                return $wgSkinNamesTt;
        }

        function getDateFormats() {
                global $wgDateFormatsTt;
                return $wgDateFormatsTt;
        }

        function getUserToggles() {
                global $wgUserTogglesTt;
                return $wgUserTogglesTt;
        }

        # Inherit userAdjust()

        function date( $ts, $adj = false ) {
                if ( $adj ) { $ts = $this->userAdjust( $ts ); }

                $d = (0 + substr( $ts, 6, 2 )) . ". " .
                  $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
                  substr( $ts, 0, 4 );
                return $d;
        }

        function time( $ts, $adj = false ) {
                if ( $adj ) { $ts = $this->userAdjust( $ts ); }

                $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
                return $t;
        }

        function timeanddate( $ts, $adj = false ) {
                return $this->date( $ts, $adj ) . ", " . $this->time( $ts, $adj );
        }

        # Inherit rfc1123()

        function getValidSpecialPages() {
                global $wgValidSpecialPagesTt;
                return $wgValidSpecialPagesTt;
        }

        function getSysopSpecialPages() {
                global $wgSysopSpecialPagesTt;
                return $wgSysopSpecialPagesTt;
        }

        function getDeveloperSpecialPages() {
                global $wgDeveloperSpecialPagesTt;
                return $wgDeveloperSpecialPagesTt;
        }

        function getMessage( $key ) {
                global $wgAllMessagesTt;
                if( isset( $wgAllMessagesTt[$key] ) )
                        return $wgAllMessagesTt[$key];
                return "";
        }

        # Inherit iconv()

        # Inherit ucfirst()

        # Inherit lcfirst()
        
        # Inherit checkTitleEncoding()
        
        # Inherit stripForSearch()
        
        # Inherit setAltEncoding()
        
        # Inherit recodeForEdit()
        
        # Inherit recodeInput()

        # Inherit isRTL()
        
        # Inherit getMagicWords()

        function fallback8bitEncoding() {
                # Windows codepage 1252 is a superset of iso 8859-1
                # override this to use difference source encoding to
                # translate incoming 8-bit URLs.
                return "windows-1254";
        }
}

?>