summaryrefslogtreecommitdiff
path: root/languages/LanguageCa.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2006-10-11 18:12:39 +0000
committerPierre Schmitz <pierre@archlinux.de>2006-10-11 18:12:39 +0000
commit183851b06bd6c52f3cae5375f433da720d410447 (patch)
treea477257decbf3360127f6739c2f9d0ec57a03d39 /languages/LanguageCa.php
MediaWiki 1.7.1 wiederhergestellt
Diffstat (limited to 'languages/LanguageCa.php')
-rw-r--r--languages/LanguageCa.php103
1 files changed, 103 insertions, 0 deletions
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 @@
+<?php
+/** Catalan (Català)
+ *
+ * @package MediaWiki
+ * @subpackage Language
+ */
+
+require_once( 'LanguageUtf8.php' );
+
+if (!$wgCachedMessageArrays) {
+ require_once('MessagesCa.php');
+}
+
+class LanguageCa extends LanguageUtf8 {
+ private $mMessagesCa, $mNamespaceNamesCa = null;
+
+ private $mQuickbarSettingsCa = array(
+ "Cap", "Fixa a la dreta", "Fixa a l'esquerra", "Surant a l'esquerra"
+ );
+
+ private $mSkinNamesCa = array(
+ 'standard' => "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';
+ }
+
+}
+
+?>