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
|
<?php
/** Lithuanian (Lietuvių)
*
* @package MediaWiki
* @subpackage Language
*
*/
require_once( 'LanguageUtf8.php' );
if (!$wgCachedMessageArrays) {
require_once('MessagesLt.php');
}
class LanguageLt extends LanguageUtf8 {
private $mMessagesLt, $mNamespaceNamesLt = null;
function __construct() {
parent::__construct();
global $wgAllMessagesLt;
$this->mMessagesLt =& $wgAllMessagesLt;
global $wgMetaNamespace;
$this->mNamespaceNamesLt = array(
NS_MEDIA => 'Medija',
NS_SPECIAL => 'Specialus',
NS_MAIN => '',
NS_TALK => 'Aptarimas',
NS_USER => 'Naudotojas',
NS_USER_TALK => 'Naudotojo_aptarimas',
NS_PROJECT => $wgMetaNamespace,
NS_PROJECT_TALK => $wgMetaNamespace . '_aptarimas',
NS_IMAGE => 'Vaizdas',
NS_IMAGE_TALK => 'Vaizdo_aptarimas',
NS_MEDIAWIKI => 'MediaWiki',
NS_MEDIAWIKI_TALK => 'MediaWiki_aptarimas',
NS_TEMPLATE => 'Šablonas',
NS_TEMPLATE_TALK => 'Šablono_aptarimas',
NS_HELP => 'Pagalba',
NS_HELP_TALK => 'Pagalbos_aptarimas',
NS_CATEGORY => 'Kategorija',
NS_CATEGORY_TALK => 'Kategorijos_aptarimas',
);
}
private $mQuickbarSettingsLt = array(
'Nerodyti', 'Fiksuoti kairėje', 'Fiksuoti dešinėje', 'Plaukiojantis kairėje'
);
private $mSkinNamesLt = array(
'standard' => 'Standartinė',
'nostalgia' => 'Nostalgija',
'cologneblue' => 'Kiolno Mėlyna',
'davinci' => 'Da Vinči',
'mono' => 'Mono',
'monobook' => 'MonoBook',
'myskin' => 'MySkin',
'chick' => 'Chick'
);
function getNamespaces() {
return $this->mNamespaceNamesLt + parent::getNamespaces();
}
function getQuickbarSettings() {
return $this->mQuickbarSettingsLt;
}
function getSkinNames() {
return $this->mSkinNamesLt + parent::getSkinNames();
}
function getMessage( $key ) {
if( isset( $this->mMessagesLt[$key] ) ) {
return $this->mMessagesLt[$key];
} else {
return parent::getMessage( $key );
}
}
function getAllMessages() {
return $this->mMessagesLt;
}
function fallback8bitEncoding() {
return 'windows-1257';
}
function separatorTransformTable() {
return array(',' => ' ', '.' => ',' );
}
/* Word forms (with examples):
1 - vienas (1) lapas
2 - trys (3) lapai
3 - penkiolika (15) lapų
*/
function convertPlural( $count, $wordform1, $wordform2, $wordform3) {
$count = str_replace (' ', '', $count);
if ($count%10==1 && $count%100!=11) return $wordform1;
if ($count%10>=2 && ($count%100<10 || $count%100>=20)) return $wordform2;
return $wordform3;
}
}
?>
|