2 /** Croatian (hrvatski)
9 require_once( 'LanguageUtf8.php' );
11 /* private */ $wgNamespaceNamesHr = array(
13 NS_SPECIAL
=> "Posebno",
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,
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",
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",
44 'monobook' => "MonoBook",
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() {
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 ) ) .
84 substr( $ts, 0, 4 ) . "." ;
88 function getMessage( $key ) {
89 global $wgAllMessagesHr;
90 if( isset( $wgAllMessagesHr[$key] ) ) {
91 return $wgAllMessagesHr[$key];
93 return parent
::getMessage( $key );
97 function formatNum( $number, $year = false ) {
98 return $year ?
$number : strtr($this->commafy($number), '.,', ',.' );
101 function fallback8bitEncoding() {
105 function convertPlural( $count, $wordform1, $wordform2, $wordform3) {
106 $count = str_replace ('.', '', $count);
107 if ($count > 10 && floor(($count %
100) / 10) == 1) {
110 switch ($count %
10) {
111 case 1: return $wordform1;
114 case 4: return $wordform2;
115 default: return $wordform3;