* (bug 5432) Fix inconsistencies in cookie names when using table prefixes
[mediawiki.git] / languages / LanguageHr.php
blob42028f1c289fa0476db7bb55c64ec73ff2a6e791
1 <?php
2 /** Croatian (hrvatski)
4 * @package MediaWiki
5 * @subpackage Language
6 */
8 /** */
9 require_once( 'LanguageUtf8.php' );
11 /* private */ $wgNamespaceNamesHr = array(
12 NS_MEDIA => "Mediji",
13 NS_SPECIAL => "Posebno",
14 NS_MAIN => "",
15 NS_TALK => "Razgovor",
16 NS_USER => "Suradnik",
17 NS_USER_TALK => "Razgovor_sa_suradnikom",
18 NS_PROJECT => $wgMetaNamespace,
19 NS_PROJECT_TALK => "Razgovor_" . $wgMetaNamespace,
20 NS_IMAGE => "Slika",
21 NS_IMAGE_TALK => "Razgovor_o_slici",
22 NS_MEDIAWIKI => "MediaWiki",
23 NS_MEDIAWIKI_TALK => "MediaWiki_razgovor",
24 NS_TEMPLATE => "Predložak",
25 NS_TEMPLATE_TALK => "Razgovor_o_predlošku",
26 NS_HELP => "Pomoć",
27 NS_HELP_TALK => "Razgovor_o_pomoći",
28 NS_CATEGORY => "Kategorija",
29 NS_CATEGORY_TALK => "Razgovor_o_kategoriji"
30 ) + $wgNamespaceNamesEn;
32 /* private */ $wgQuickbarSettingsHr = array(
33 "Bez", "Lijevo nepomično", "Desno nepomično", "Lijevo leteće"
36 /* private */ $wgSkinNamesHr = array(
37 'standard' => "Standardna",
38 'nostalgia' => "Nostalgija",
39 'cologneblue' => "Kölnska plava",
40 'smarty' => "Paddington",
41 'montparnasse' => "Montparnasse",
42 'davinci' => "DaVinci",
43 'mono' => "Mono",
44 'monobook' => "MonoBook",
45 "myskin" => "MySkin",
46 "chick" => "Chick"
49 if (!$wgCachedMessageArrays) {
50 require_once('MessagesHr.php');
53 #--------------------------------------------------------------------------
54 # Internationalisation code
55 #--------------------------------------------------------------------------
57 class LanguageHr extends LanguageUtf8 {
59 function getNamespaces() {
60 global $wgNamespaceNamesHr;
61 return $wgNamespaceNamesHr;
64 function getDateFormats() {
65 return false;
68 function getQuickbarSettings() {
69 global $wgQuickbarSettingsHr;
70 return $wgQuickbarSettingsHr;
73 function getSkinNames() {
74 global $wgSkinNamesHr;
75 return $wgSkinNamesHr;
78 function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
79 if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
81 $d = (0 + substr( $ts, 6, 2 )) . ". " .
82 $this->getMonthName( substr( $ts, 4, 2 ) ) .
83 " " .
84 substr( $ts, 0, 4 ) . "." ;
85 return $d;
88 function getMessage( $key ) {
89 global $wgAllMessagesHr;
90 if( isset( $wgAllMessagesHr[$key] ) ) {
91 return $wgAllMessagesHr[$key];
92 } else {
93 return parent::getMessage( $key );
97 function formatNum( $number, $year = false ) {
98 return $year ? $number : strtr($this->commafy($number), '.,', ',.' );
101 function fallback8bitEncoding() {
102 return "iso-8859-2";
105 function convertPlural( $count, $wordform1, $wordform2, $wordform3) {
106 $count = str_replace ('.', '', $count);
107 if ($count > 10 && floor(($count % 100) / 10) == 1) {
108 return $wordform3;
109 } else {
110 switch ($count % 10) {
111 case 1: return $wordform1;
112 case 2:
113 case 3:
114 case 4: return $wordform2;
115 default: return $wordform3;