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/LanguageCa.php | 103 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 languages/LanguageCa.php (limited to 'languages/LanguageCa.php') diff --git a/languages/LanguageCa.php b/languages/LanguageCa.php new file mode 100644 index 00000000..caa86ed5 --- /dev/null +++ b/languages/LanguageCa.php @@ -0,0 +1,103 @@ + "Estàndard", + 'nostalgia' => "Nostàlgia", + 'cologneblue' => "Colònia blava", + ); + + private $mBookstoreListCa = array( + 'Catàleg Col·lectiu de les Universitats de Catalunya' => 'http://ccuc.cbuc.es/cgi-bin/vtls.web.gateway?searchtype=control+numcard&searcharg=$1', + 'Totselsllibres.com' => 'http://www.totselsllibres.com/tel/publi/busquedaAvanzadaLibros.do?ISBN=$1', + ); + + function __construct() { + parent::__construct(); + + global $wgAllMessagesCa; + $this->mMessagesCa =& $wgAllMessagesCa; + + global $wgMetaNamespace; + $this->mNamespaceNamesCa = array( + NS_MEDIA => 'Media', + NS_SPECIAL => 'Especial', + NS_MAIN => '', + NS_TALK => 'Discussió', + NS_USER => 'Usuari', + NS_USER_TALK => 'Usuari_Discussió', + NS_PROJECT => $wgMetaNamespace, + NS_PROJECT_TALK => $wgMetaNamespace.'_Discussió', + NS_IMAGE => 'Imatge', + NS_IMAGE_TALK => 'Imatge_Discussió', + NS_MEDIAWIKI => 'MediaWiki', + NS_MEDIAWIKI_TALK => 'MediaWiki_Discussió', + NS_TEMPLATE => 'Plantilla', + NS_TEMPLATE_TALK => 'Plantilla_Discussió', + NS_HELP => 'Ajuda', + NS_HELP_TALK => 'Ajuda_Discussió', + NS_CATEGORY => 'Categoria', + NS_CATEGORY_TALK => 'Categoria_Discussió' + ); + } + + function getNamespaces() { + return $this->mNamespaceNamesCa + parent::getNamespaces(); + } + + function getQuickbarSettings() { + return $this->mQuickbarSettingsCa; + } + + function getSkinNames() { + return $this->mSkinNamesCa + parent::getSkinNames(); + } + + function getBookstoreList () { + return $this->mBookstoreListCa + parent::getBookstoreList(); + } + + function getMessage( $key ) { + if( isset( $this->mMessagesCa[$key] ) ) { + return $this->mMessagesCa[$key]; + } else { + return parent::getMessage( $key ); + } + } + + function getAllMessages() { + return $this->mMessagesCa; + } + + function formatMonth( $month, $format ) { + return $this->getMonthAbbreviation( $month ); + } + + function separatorTransformTable() { + return array(',' => '.', '.' => ',' ); + } + + function linkTrail() { + return '/^([a-zàèéíòóúç·ïü\']+)(.*)$/sDu'; + } + +} + +?> -- cgit v1.2.2