8 require_once( 'LanguageUtf8.php' );
10 if (!$wgCachedMessageArrays) {
11 require_once('MessagesCa.php');
14 class LanguageCa
extends LanguageUtf8
{
15 private $mMessagesCa, $mNamespaceNamesCa = null;
17 private $mQuickbarSettingsCa = array(
18 "Cap", "Fixa a la dreta", "Fixa a l'esquerra", "Surant a l'esquerra"
21 private $mSkinNamesCa = array(
22 'standard' => "Estàndard",
23 'nostalgia' => "Nostàlgia",
24 'cologneblue' => "Colònia blava",
27 private $mBookstoreListCa = array(
28 'Catàleg Col·lectiu de les Universitats de Catalunya' => 'http://ccuc.cbuc.es/cgi-bin/vtls.web.gateway?searchtype=control+numcard&searcharg=$1',
29 'Totselsllibres.com' => 'http://www.totselsllibres.com/tel/publi/busquedaAvanzadaLibros.do?ISBN=$1',
32 function __construct() {
33 parent
::__construct();
35 global $wgAllMessagesCa;
36 $this->mMessagesCa
=& $wgAllMessagesCa;
38 global $wgMetaNamespace;
39 $this->mNamespaceNamesCa
= array(
41 NS_SPECIAL
=> 'Especial',
43 NS_TALK
=> 'Discussió',
45 NS_USER_TALK
=> 'Usuari_Discussió',
46 NS_PROJECT
=> $wgMetaNamespace,
47 NS_PROJECT_TALK
=> $wgMetaNamespace.'_Discussió',
49 NS_IMAGE_TALK
=> 'Imatge_Discussió',
50 NS_MEDIAWIKI
=> 'MediaWiki',
51 NS_MEDIAWIKI_TALK
=> 'MediaWiki_Discussió',
52 NS_TEMPLATE
=> 'Plantilla',
53 NS_TEMPLATE_TALK
=> 'Plantilla_Discussió',
55 NS_HELP_TALK
=> 'Ajuda_Discussió',
56 NS_CATEGORY
=> 'Categoria',
57 NS_CATEGORY_TALK
=> 'Categoria_Discussió'
61 function getNamespaces() {
62 return $this->mNamespaceNamesCa + parent
::getNamespaces();
65 function getQuickbarSettings() {
66 return $this->mQuickbarSettingsCa
;
69 function getSkinNames() {
70 return $this->mSkinNamesCa + parent
::getSkinNames();
73 function getBookstoreList () {
74 return $this->mBookstoreListCa + parent
::getBookstoreList();
77 function getMessage( $key ) {
78 if( isset( $this->mMessagesCa
[$key] ) ) {
79 return $this->mMessagesCa
[$key];
81 return parent
::getMessage( $key );
85 function getAllMessages() {
86 return $this->mMessagesCa
;
89 function formatMonth( $month, $format ) {
90 return $this->getMonthAbbreviation( $month );
93 function separatorTransformTable() {
94 return array(',' => '.', '.' => ',' );
97 function linkTrail() {
98 return '/^([a-zàèéíòóúç·ïü\']+)(.*)$/sDu';