From 183851b06bd6c52f3cae5375f433da720d410447 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 11 Oct 2006 18:12:39 +0000 Subject: MediaWiki 1.7.1 wiederhergestellt --- languages/LanguageHr.php | 132 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 languages/LanguageHr.php (limited to 'languages/LanguageHr.php') diff --git a/languages/LanguageHr.php b/languages/LanguageHr.php new file mode 100644 index 00000000..0f82b45a --- /dev/null +++ b/languages/LanguageHr.php @@ -0,0 +1,132 @@ + '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; + } + } + } + +} + +?> -- cgit v1.2.3-54-g00ecf