Article validation code
[lhc/web/wiklou.git] / languages / LanguageCa.php
index ada1e57..5d388f9 100644 (file)
@@ -1,23 +1,29 @@
-<?
+<?php
 
 # The names of the namespaces can be set here, but the numbers
 # are magical, so don't change or move them!  The Namespace class
 # encapsulates some of the magic-ness.
 #
 /* private */ $wgNamespaceNamesCa = array(
-       -2      => "Media",
-       -1      => "Especial",
-       0       => "",
-       1       => "Discussió",
-       2       => "Usuari",
-       3       => "Usuari_Discussió",
-       4       => "Viquipèdia",
-       5       => "Viquipèdia_Discussió",
-       6       => "Imatge",
-       7       => "Imatge_Discussió",
-       8       => "MediaWiki",
-       9       => "MediaWiki_Dicussió"
-);
+       NS_MEDIA                        => 'Media',
+       NS_SPECIAL                      => 'Especial',
+       NS_MAIN                         => '',
+       NS_TALK                         => 'Discussió',
+       NS_USER                         => 'Usuari',
+       NS_USER_TALK            => 'Usuari_Discussió',
+       NS_WIKIPEDIA            => 'Viquipèdia',
+       NS_WIKIPEDIA_TALK       => 'Viquipèdia_Discussió',
+       NS_IMAGE                        => 'Imatge',
+       NS_IMAGE_TALK           => 'Imatge_Discussió',
+       NS_MEDIAWIKI            => 'MediaWiki',
+       NS_MEDIAWIKI_TALK       => 'MediaWiki_Discussió',
+       NS_TEMPLATE                     => 'Template',
+       NS_TEMPLATE_TALK        => 'Template_Discussió',
+       NS_HELP                         => 'Ajuda',
+       NS_HELP_TALK            => 'Ajuda_Discussió',
+       NS_CATEGORY                     => 'Categoria',
+       NS_CATEGORY_TALK        => 'Categoria_Discussió'
+) + $wgNamespaceNamesEn;
 
 /* Note that some default options can be customized -- see
    '$wgDefaultUserOptionsEn' in Language.php */
 );
 
 /* private */ $wgSkinNamesCa = array(
-       "Estàndard", "Nostàlgia", "Colònia blava"
-);
-
-/* private */ $wgMathNamesCa = array(
-       "Produeix sempre PNG",
-       "HTML si és molt simple, si no PNG",
-       "HTML si és possible, si no PNG",
-       "Deixa com a TeX (per a navegadors de text)"
+       'standard' => "Estàndard",
+       'nostalgia' => "Nostàlgia",
+       'cologneblue' => "Colònia blava",
+       'smarty' => "Paddington",
+       'montparnasse' => "Montparnasse",
+       'davinci' => "DaVinci",
+       'mono' => "Mono",
+       'monobook' => "MonoBook",
+ "myskin" => "MySkin" 
 );
 
 /* private */ $wgDateFormatsCa = array(
        "2001-01-15"
 );
 
-/* private */ $wgUserTogglesCa = array(
-       "hover"         => "Mostra caixa surant sobre els enllaços wiki",
-       "underline" => "Subratlla enllaços",
-       "highlightbroken" => "Destaca enllaços a temes buits",
-       "justify"       => "Ajusta paràgrafs",
-       "hideminor" => "Amaga edicions menors en canvis recents",
-       "usenewrc" => "Canvis recents remarcats (no per tots els navegadors)",
-       "numberheadings" => "Autoenumera encapçalaments",
-       "showtoolbar" => "Show edit toolbar",
-       "rememberpassword" => "Recorda la contrasenya entre sessions",
-       "editwidth" => "La caixa d'edició té l'ample màxim",
-       "editondblclick" => "Edita pàgines amb un doble clic (JavaScript)",
-       "editsection"=>"Enable section editing via [edit] links",
-       "editsectiononrightclick"=>"Enable section editing by right clicking<br> on section titles (JavaScript)",
-       "showtoc"=>"Show table of contents<br>(for articles with more than 3 headings)",
-       "watchdefault" => "Vigila articles nous i modificats",
-       "minordefault" => "Marca totes les edicions com menors per defecte",
-       "previewontop" => "Show preview before edit box and not after it",
-       "nocache" => "Disable page caching"
-);
 
 /* Please customize this with some Catalan-language bookshops
    and/or reference sites that can look up by ISBN number */
        "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
 );
 
-/* private */ $wgWeekdayNamesCa = array(
-       "Diumenge", "Dilluns", "Dimarts", "Dimecres", "Dijous",
-       "Divendres", "Dissabte"
-);
-
-/* private */ $wgMonthNamesCa = array(
-       "gener", "febrer", "març", "abril", "maig", "juny",
-       "juliol", "agost", "setembre", "octubre", "novembre",
-       "desembre"
-);
-
-/* private */ $wgMonthAbbreviationsCa = array(
-       "gen", "feb", "mar", "abr", "mai", "jun", "jul", "ago",
-       "set", "oct", "nov", "des"
-);
 
 # All special pages have to be listed here: a description of ""
 # will make them not show up on the "Special Pages" page, which
        "Movepage"              => "",
        "Booksources"   => "Fonts externes de llibres",
        "Export"                => "XML export",
+       "Version"               => "Version",
 );
 
 /* private */ $wgSysopSpecialPagesCa = array(
 /* private */ $wgDeveloperSpecialPagesCa = array(
        "Lockdb"                => "Tanca l'accés d'escriptura a la base de dades",
        "Unlockdb"              => "Restaura accés d'escriptura a la base de dades",
-       "Debug"                 => "Informació d'errors"
 );
 
 /* private */ $wgAllMessagesCa = array(
+# User Toggles
+
+"tog-hover"            => "Mostra caixa surant sobre els enllaços wiki",
+"tog-underline" => "Subratlla enllaços",
+"tog-highlightbroken" => "Destaca enllaços a temes buits",
+"tog-justify"  => "Ajusta paràgrafs",
+"tog-hideminor" => "Amaga edicions menors en canvis recents",
+"tog-usenewrc" => "Canvis recents remarcats (no per tots els navegadors)",
+"tog-numberheadings" => "Autoenumera encapçalaments",
+"tog-showtoolbar" => "Show edit toolbar",
+"tog-rememberpassword" => "Recorda la contrasenya entre sessions",
+"tog-editwidth" => "La caixa d'edició té l'ample màxim",
+"tog-editondblclick" => "Edita pàgines amb un doble clic (JavaScript)",
+"tog-editsection"=>"Enable section editing via [edit] links",
+"tog-editsectiononrightclick"=>"Enable section editing by right clicking<br> on section titles (JavaScript)",
+"tog-showtoc"=>"Show table of contents<br>(for articles with more than 3 headings)",
+"tog-watchdefault" => "Vigila articles nous i modificats",
+"tog-minordefault" => "Marca totes les edicions com menors per defecte",
+"tog-previewontop" => "Show preview before edit box and not after it",
+"tog-nocache" => "Disable page caching",
+#Dates
+
+'sunday' => 'Diumenge',
+'monday' => 'Dilluns',
+'tuesday' => 'Dimarts',
+'wednesday' => 'Dimecres',
+'thursday' => 'Dijous',
+'friday' => 'Divendres',
+'saturday' => 'Dissabte',
+'january' => 'gener',
+'february' => 'febrer',
+'march' => 'març',
+'april' => 'abril',
+'may_long' => 'maig',
+'june' => 'juny',
+'july' => 'juliol',
+'august' => 'agost',
+'september' => 'setembre',
+'october' => 'octubre',
+'november' => 'novembre',
+'december' => 'desembre',
+'jan' => 'gen',
+'feb' => 'feb',
+'mar' => 'mar',
+'apr' => 'abr',
+'may' => 'mai',
+'jun' => 'jun',
+'jul' => 'jul',
+'aug' => 'ago',
+'sep' => 'set',
+'oct' => 'oct',
+'nov' => 'nov',
+'dec' => 'des',
+
 
 # Bits of text used by many pages:
 #
 "redirectedfrom" => "(Redirigit des de $1)",
 "lastmodified" => "Aquesta pàgina ha estat modificada per última vegada el $1.",
 "viewcount"            => "Aquesta pàgina ha estat visitada $1 vegades.",
-"gnunote" => "Aquesta pàgina es fa disponible sota la <a class=internal href='/wiki/GNU_FDL'>GNU FDL</a>.",
+"gnunote" => "Aquesta pàgina es fa disponible sota la <a class=internal href='$wgScriptPath/GNU_FDL'>GNU FDL</a>.",
 "printsubtitle" => "(De http://ca.wikipedia.org)",
 "protectedpage" => "Pàgina protegida",
 "administrators" => "Viquipèdia:Administradors",
@@ -876,10 +902,15 @@ Incorporeu-les manualment, si us plau.",
 "movetalk"     => "Reanomena també la pàgina de discussió si és aplicable.",
 "talkpagemoved" =>  "També ha estat reanomenada la pàgina de discussió corresponent.",
 "talkpagenotmoved" => "La pàgina de discussió corresponent <strong>no</strong> ha estat reanomenada.",
+#Math
+       'mw_math_png' => "Produeix sempre PNG",
+       'mw_math_simple' =>"HTML si és molt simple, si no PNG",
+       'mw_math_html' => "HTML si és possible, si no PNG",
+       'mw_math_source' => "Deixa com a TeX (per a navegadors de text)",
 
 );
 
-include_once( "LanguageUtf8.php" );
+require_once( "LanguageUtf8.php" );
 class LanguageCa extends LanguageUtf8 {
 
        # Inherent default user options unless customization is desired
@@ -918,35 +949,6 @@ class LanguageCa extends LanguageUtf8 {
                return $wgSkinNamesCa;
        }
 
-       function getMathNames() {
-               global $wgMathNamesCa;
-               return $wgMathNamesCa;
-       }
-
-
-       function getUserToggles() {
-               global $wgUserTogglesCa;
-               return $wgUserTogglesCa;
-       }
-
-       function getMonthName( $key )
-       {
-               global $wgMonthNamesCa;
-               return $wgMonthNamesCa[$key-1];
-       }
-
-       function getMonthAbbreviation( $key )
-       {
-               global $wgMonthAbbreviationsCa;
-               return $wgMonthAbbreviationsCa[$key-1];
-       }
-
-       function getWeekdayName( $key )
-       {
-               global $wgWeekdayNamesCa;
-               return $wgWeekdayNamesCa[$key-1];
-       }
-
        # Inherit userAdjust()
         
        function shortdate( $ts, $adj = false )