diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 18:12:39 +0000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 18:12:39 +0000 |
commit | 183851b06bd6c52f3cae5375f433da720d410447 (patch) | |
tree | a477257decbf3360127f6739c2f9d0ec57a03d39 /languages/LanguageOc.php |
MediaWiki 1.7.1 wiederhergestellt
Diffstat (limited to 'languages/LanguageOc.php')
-rw-r--r-- | languages/LanguageOc.php | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/languages/LanguageOc.php b/languages/LanguageOc.php new file mode 100644 index 00000000..7bbe2d96 --- /dev/null +++ b/languages/LanguageOc.php @@ -0,0 +1,101 @@ +<?php +/** Occitan (Occitan) + * + * @package MediaWiki + * @subpackage Language + */ + +require_once( "LanguageUtf8.php" ); + +if (!$wgCachedMessageArrays) { + require_once('MessagesOc.php'); +} + +class LanguageOc extends LanguageUtf8 { + private $mMessagesOc, $mNamespaceNamesOc; + + private $mQuickbarSettingsOc = array( + 'Cap', 'Esquèr', 'Drech', 'Flotejant a esquèr' + ); + + private $mSkinNamesOc = array( + 'standard' => 'Normal', + 'nostalgia' => 'Nostalgia', + 'cologneblue' => 'Còlonha Blau', + ); + + private $mBookstoreListOc = array( + 'Amazon.fr' => 'http://www.amazon.fr/exec/obidos/ISBN=$1' + ); + + function __construct() { + parent::__construct(); + + global $wgAllMessagesOc; + $this->mMessagesOc =& $wgAllMessagesOc; + + global $wgMetaNamespace; + $this->mNamespaceNamesOc = array( + NS_SPECIAL => 'Especial', + NS_MAIN => '', + NS_TALK => 'Discutir', + NS_USER => 'Utilisator', + NS_USER_TALK => 'Discutida_Utilisator', + NS_PROJECT => $wgMetaNamespace, + NS_PROJECT_TALK => 'Discutida_'.$wgMetaNamespace, + NS_IMAGE => 'Imatge', + NS_IMAGE_TALK => 'Discutida_Imatge', + NS_MEDIAWIKI => 'Mediaòiqui', + NS_MEDIAWIKI_TALK => 'Discutida_Mediaòiqui', + NS_TEMPLATE => 'Modèl', + NS_TEMPLATE_TALK => 'Discutida_Modèl', + NS_HELP => 'Ajuda', + NS_HELP_TALK => 'Discutida_Ajuda', + NS_CATEGORY => 'Categoria', + NS_CATEGORY_TALK => 'Discutida_Categoria', + ); + } + + function getBookstoreList () { + return $this->mBookstoreListOc; + } + + function getNamespaces() { + return $this->mNamespaceNamesOc + parent::getNamespaces(); + } + + function getQuickbarSettings() { + return $this->mQuickbarSettingsOc; + } + + function getSkinNames() { + return $this->mSkinNamesOc + parent::getSkinNames(); + } + + function getMessage( $key ) { + if( isset( $this->mMessagesOc[$key] ) ) { + return $this->mMessagesOc[$key]; + } else { + return parent::getMessage( $key ); + } + } + + function getAllMessages() { + return $this->mMessagesOc; + } + + function formatMonth( $month, $format ) { + return $this->getMonthAbbreviation( $month ); + } + + function timeBeforeDate() { + return false; + } + + function timeDateSeparator( $format ) { + return ' à '; + } + +} + +?> |