7 # Tatarish localisation for MediaWiki
10 require_once( "LanguageUtf8.php" );
12 /* private */ $wgNamespaceNamesTt = array(
14 NS_SPECIAL
=> 'Maxsus',
18 NS_USER_TALK
=> "Äğzä_bäxäse",
19 NS_PROJECT
=> $wgMetaNamespace,
20 NS_PROJECT_TALK
=> $wgMetaNamespace . '_bäxäse',
22 NS_IMAGE_TALK
=> "Räsem_bäxäse",
23 NS_MEDIAWIKI
=> "MediaWiki",
24 NS_MEDIAWIKI_TALK
=> "MediaWiki_bäxäse",
25 NS_TEMPLATE
=> "Ürnäk",
26 NS_TEMPLATE_TALK
=> "Ürnäk_bäxäse",
28 NS_HELP_TALK
=> "Yärdäm_bäxäse",
29 NS_CATEGORY
=> "Törkem",
30 NS_CATEGORY_TALK
=> "Törkem_bäxäse"
31 ) +
$wgNamespaceNamesEn;
33 /* private */ $wgDateFormatsTt = array(
37 # Note to translators:
38 # Please include the English words as synonyms. This allows people
39 # from other wikis to contribute more easily.
41 /* private */ $wgMagicWordsTt = array(
43 MAG_REDIRECT
=> array( 0, '#yünältü' ),
44 MAG_NOTOC
=> array( 0, '__ETYUQ__' ),
45 MAG_FORCETOC
=> array( 0, '__ETTIQ__' ),
46 MAG_TOC
=> array( 0, '__ET__' ),
47 MAG_NOEDITSECTION
=> array( 0, '__BÜLEMTÖZÄTÜYUQ__' ),
48 MAG_START
=> array( 0, '__BAŞLAW__' ),
49 MAG_CURRENTMONTH
=> array( 1, 'AĞIMDAĞI_AY' ),
50 MAG_CURRENTMONTHNAME
=> array( 1, 'AĞIMDAĞI_AY_İSEME' ),
51 MAG_CURRENTDAY
=> array( 1, 'AĞIMDAĞI_KÖN' ),
52 MAG_CURRENTDAYNAME
=> array( 1, 'AĞIMDAĞI_KÖN_İSEME' ),
53 MAG_CURRENTYEAR
=> array( 1, 'AĞIMDAĞI_YIL' ),
54 MAG_CURRENTTIME
=> array( 1, 'AĞIMDAĞI_WAQIT' ),
55 MAG_NUMBEROFARTICLES
=> array( 1, 'MÄQÄLÄ_SANI' ),
56 MAG_CURRENTMONTHNAMEGEN
=> array( 1, 'AĞIMDAĞI_AY_İSEME_GEN' ),
57 MAG_PAGENAME
=> array( 1, 'BİTİSEME' ),
58 MAG_NAMESPACE
=> array( 1, 'İSEMARA' ),
59 MAG_SUBST
=> array( 0, 'TÖPÇEK:' ),
60 MAG_MSGNW
=> array( 0, 'MSGNW:' ),
61 MAG_END
=> array( 0, '__AZAQ__' ),
62 MAG_IMG_THUMBNAIL
=> array( 1, 'thumbnail', 'thumb' ),
63 MAG_IMG_RIGHT
=> array( 1, 'uñda' ),
64 MAG_IMG_LEFT
=> array( 1, 'sulda' ),
65 MAG_IMG_NONE
=> array( 1, 'yuq' ),
66 MAG_IMG_WIDTH
=> array( 1, '$1px' ),
67 MAG_IMG_CENTER
=> array( 1, 'center', 'centre' ),
68 MAG_IMG_FRAMED
=> array( 1, 'framed', 'enframed', 'frame' ),
69 MAG_INT
=> array( 0, 'EÇKE:' ),
70 MAG_SITENAME
=> array( 1, 'SÄXİFÄİSEME' ),
71 MAG_NS
=> array( 0, 'İA:' ),
72 MAG_LOCALURL
=> array( 0, 'URINLIURL:' ),
73 MAG_LOCALURLE
=> array( 0, 'URINLIURLE:' ),
74 MAG_SERVER
=> array( 0, 'SERVER' )
77 if (!$wgCachedMessageArrays) {
78 require_once('MessagesTt.php');
81 class LanguageTt
extends LanguageUtf8
{
83 function getNamespaces() {
84 global $wgNamespaceNamesTt;
85 return $wgNamespaceNamesTt;
88 function getDateFormats() {
89 global $wgDateFormatsTt;
90 return $wgDateFormatsTt;
94 function date( $ts, $adj = false ) {
95 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
97 $d = (0 +
substr( $ts, 6, 2 )) . ". " .
98 $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
103 function time( $ts, $adj = false ) {
104 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
106 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
110 function timeanddate( $ts, $adj = false ) {
111 return $this->date( $ts, $adj ) . ", " . $this->time( $ts, $adj );
114 function getMessage( $key ) {
115 global $wgAllMessagesTt;
116 if( isset( $wgAllMessagesTt[$key] ) ) {
117 return $wgAllMessagesTt[$key];
119 return parent
::getMessage( $key );
123 function fallback8bitEncoding() {
124 # Windows codepage 1252 is a superset of iso 8859-1
125 # override this to use difference source encoding to
126 # translate incoming 8-bit URLs.
127 return "windows-1254";