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
|
<?php
/** Croatian (hrvatski)
*
* @package MediaWiki
* @subpackage Language
*/
require_once( 'LanguageUtf8.php' );
if (!$wgCachedMessageArrays) {
require_once('MessagesHr.php');
}
class LanguageHr extends LanguageUtf8 {
private $mMessagesHr, $mNamespaceNamesHr = null;
private $mQuickbarSettingsHr = array(
'Bez', 'Lijevo nepomično', 'Desno nepomično', 'Lijevo leteće'
);
private $mSkinNamesHr = array(
'standard' => 'Standardna',
'nostalgia' => 'Nostalgija',
'cologneblue' => 'Kölnska plava',
'smarty' => 'Paddington',
'montparnasse' => 'Montparnasse',
'davinci' => 'DaVinci',
'mono' => 'Mono',
'monobook' => 'MonoBook',
'myskin' => 'MySkin',
'chick' => 'Chick'
);
function __construct() {
parent::__construct();
global $wgAllMessagesHr;
$this->mMessagesHr =& $wgAllMessagesHr;
global $wgMetaNamespace;
$this->mNamespaceNamesHr = array(
NS_MEDIA => 'Mediji',
NS_SPECIAL => 'Posebno',
NS_MAIN => '',
NS_TALK => 'Razgovor',
NS_USER => 'Suradnik',
NS_USER_TALK => 'Razgovor_sa_suradnikom',
NS_PROJECT => $wgMetaNamespace,
NS_PROJECT_TALK => 'Razgovor_' . $wgMetaNamespace,
NS_IMAGE => 'Slika',
NS_IMAGE_TALK => 'Razgovor_o_slici',
NS_MEDIAWIKI => 'MediaWiki',
NS_MEDIAWIKI_TALK => 'MediaWiki_razgovor',
NS_TEMPLATE => 'Predložak',
NS_TEMPLATE_TALK => 'Razgovor_o_predlošku',
NS_HELP => 'Pomoć',
NS_HELP_TALK => 'Razgovor_o_pomoći',
NS_CATEGORY => 'Kategorija',
NS_CATEGORY_TALK => 'Razgovor_o_kategoriji'
);
}
function getNamespaces() {
return $this->mNamespaceNamesHr + parent::getNamespaces();
}
function getQuickbarSettings() {
return $this->mQuickbarSettingsHr;
}
function getSkinNames() {
return $this->mSkinNamesHr + parent::getSkinNames();
}
function getDateFormats() {
return false;
}
function getMessage( $key ) {
if( isset( $this->mMessagesHr[$key] ) ) {
return $this->mMessagesHr[$key];
} else {
return parent::getMessage( $key );
}
}
function getAllMessages() {
return $this->mMessagesHr;
}
function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
$d = (0 + substr( $ts, 6, 2 )) . ". " .
$this->getMonthName( substr( $ts, 4, 2 ) ) .
" " .
substr( $ts, 0, 4 ) . "." ;
return $d;
}
function separatorTransformTable() {
return array(',' => '.', '.' => ',' );
}
function fallback8bitEncoding() {
return 'iso-8859-2';
}
function linkTrail() {
return '/^([čšžćđßa-z]+)(.*)$/sDu';
}
function convertPlural( $count, $wordform1, $wordform2, $wordform3) {
$count = str_replace ('.', '', $count);
if ($count > 10 && floor(($count % 100) / 10) == 1) {
return $wordform3;
} else {
switch ($count % 10) {
case 1: return $wordform1;
case 2:
case 3:
case 4: return $wordform2;
default: return $wordform3;
}
}
}
}
?>
|