Fix sf bug #971799 : some namespaces for ca were incorrects or missings.
[lhc/web/wiklou.git] / languages / LanguageOc.php
index 91bd899..2754fa5 100644 (file)
@@ -1,6 +1,6 @@
-<?
+<?php
 
-include_once( "LanguageUtf8.php" );
+require_once( "LanguageUtf8.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
@@ -18,29 +18,9 @@ include_once( "LanguageUtf8.php" );
        7 => "Discutida_Image",
        8       => "MediaWiki",
        9       => "MediaWiki_talk",
-);
+       10  => "Template",
+       11  => "Template_talk"
 
-/* using default options */
-/* private */ $wgDefaultUserOptionsOc = array(
-       "quickbar"                      => 1,
-       "underline"                     => 1,
-       "hover"                         => 1,
-       "cols"                          => 80,
-       "rows"                          => 25,
-       "searchlimit"                   => 20,
-       "contextlines"                  => 5,
-       "contextchars"                  => 50,
-       "skin"                          => 0,
-       "math"                          => 1,
-       "rcdays"                        => 7,
-       "rclimit"                       => 50,
-       "highlightbroken"               => 1,
-       "stubthreshold"                 => 0,
-       "previewontop"                  => 1,
-       "editsection"                   => 1,
-       "editsectiononrightclick"       => 0,
-       "showtoc"                       => 1,
-       "date"                          => 0
 );
 
 /* private */ $wgQuickbarSettingsOc = array(
@@ -48,7 +28,15 @@ include_once( "LanguageUtf8.php" );
 );
 
 /* private */ $wgSkinNamesOc = array(
-       "Normal", "Nostalgia", "Còlonha Blau"
+       'standard' => "Normal",
+       'nostalgia' => "Nostalgia",
+       'cologneblue' => "Còlonha Blau",
+       'smarty' => "Paddington",
+       'montparnasse' => "Montparnasse",
+       'davinci' => "DaVinci",
+       'mono' => "Mono",
+       'monobook' => "MonoBook",
+ "myskin" => "MySkin" 
 );
 
 /* private */ $wgMathNamesOc = array(
@@ -85,145 +73,6 @@ include_once( "LanguageUtf8.php" );
        "Amazon.fr" => "http://www.amazon.fr/exec/obidos/ISBN=$1"
 );
 
-/* private */ $wgLanguageNamesOc = array(
-       "aa" => "Afar",
-       "ab" => "Abkhazien",
-       "af" => "Africans",
-       "am" => "Amharic",
-       "ar" => "Arab",
-       "as" => "Assamais",
-       "ay" => "Aymara",
-       "az" => "Aserbaijani",
-       "ba" => "Bashkir",
-       "be" => "Biélorusse",
-       "bh" => "Bihari",
-       "bi" => "Bislama",
-       "bn" => "Bengali",
-       "bo" => "Tibétain",
-       "bs" => "Bosanski",
-       "ca" => "Catalan",
-       "co" => "Corse",
-       "cs" => "Chèc",
-       "cy" => "Galès",
-       "da" => "Danès", # Note two different subdomains.
-       "dk" => "Danès", # 'da' is correct for the language.
-       "de" => "Aleman",
-       "dz" => "Bhoutani",
-       "el" => "Grec",
-       "en" => "Anglès",
-    "simple" => "Anglès simplifié",
-       "eo" => "Esperanto",
-       "es" => "Castelhan",
-       "et" => "Estonian",
-       "eu" => "Basc",
-       "fa" => "Persec",
-       "fi" => "Finès",
-       "fj" => "Fidjien",
-       "fo" => "Feroés",
-       "fr" => "Francès",
-       "fy" => "Frison",
-       "ga" => "Gaelic d'Irlanda",
-       "gl" => "Gaelic d'Escòcia",
-       "gn" => "Guarani",
-       "gu" => "Gujarati",
-       "ha" => "Haoussa",
-       "he" => "Ebreu",
-       "hi" => "Indi",
-       "hr" => "Croat",
-       "hu" => "Hongarès",
-       "hy" => "Arménien",
-       "ia" => "Interlingua",
-       "id" => "Indonesian",
-       "ik" => "Inupiak",
-       "is" => "Islandès",
-       "it" => "Italian",
-       "iu" => "Inuktitut",
-       "ja" => "Japonès",
-       "jv" => "Javanès",
-       "ka" => "Georgian",
-       "kk" => "Kazakh",
-       "kl" => "Groenlandais",
-       "km" => "Cambodgien",
-       "kn" => "Cannada",
-       "ko" => "Corean",
-       "ks" => "Kashmiri",
-       "ky" => "Kirghize",
-       "la" => "Latin",
-       "ln" => "Lingala",
-       "lo" => "Laotien",
-       "lt" => "Lituan;",
-       "lv" => "Leton",
-       "mg" => "Malgache",
-       "mi" => "Maori",
-       "mk" => "Macedonian",
-       "ml" => "Malaialam",
-       "mn" => "Mongol",
-       "mo" => "Moldave",
-       "mr" => "Marathe",
-       "ms" => "Malai",
-       "my" => "Birman",
-       "na" => "Nauri",
-       "ne" => "Nepalès",
-       "nl" => "Neerlandès",
-       "no" => "Noruec",
-       "oc" => "Occitan",
-       "om" => "Oromo",
-       "or" => "Oriya",
-       "pa" => "Punjabi",
-       "pl" => "Polonès",
-       "ps" => "Pashto",
-       "pt" => "Português",
-       "qu" => "Quechua",
-       "rm" => "Rhéto-Roman",
-       "rn" => "Kirundi",
-       "ro" => "Romanès;",
-       "ru" => "Rus",
-       "rw" => "Kinyarwanda",
-       "sa" => "Sanscrit",
-       "sd" => "Sindhi",
-       "sg" => "Sango",
-       "sh" => "Serbo-croat",
-       "si" => "Singhalais",
-       "sk" => "Eslovac",
-       "sl" => "Esloven",
-       "sm" => "Samoan",
-       "sn" => "Shona",
-       "so" => "Somali",
-       "sq" => "Albanès",
-       "sr" => "Serbi",
-       "ss" => "Siswati",
-       "st" => "Sésotho",
-       "su" => "Soudanais",
-       "sv" => "Svenska",
-       "sw" => "Kiswahili",
-       "ta" => "Tamoul",
-       "te" => "Télougou",
-       "tg" => "Tadjik",
-       "th" => "Thaï",
-       "ti" => "Tigrinya",
-       "tk" => "Turkmène",
-       "tl" => "Tagalog",
-       "tn" => "Setchwana",
-       "to" => "Tonga",
-       "tr" => "Türkçe",
-       "ts" => "Tsonga",
-       "tt" => "Tatar",
-       "tw" => "Tchi",
-       "ug" => "Ouïgour",
-       "uk" => "&#1059;&#1082;&#1088;&#1072;&#1111;&#1085;&#1089;&#1100;&#1082;&#1072; (Ukrayins`ka)",
-       "ur" => "Ourdou",
-       "uz" => "Ouzbek",
-       "vi" => "Vietnamien",
-       "vo" => "Volapük",
-       "wo" => "Ouolof",
-       "xh" => "isiXhosa",
-       "yi" => "Yiddish",
-       "yo" => "Yorouba",
-       "za" => "Zhuang",
-       "zh" => "&#20013;&#25991; (Zhongwen)",
-       "zu" => "Zoulou"
-);
-
 /* private */ $wgWeekdayNamesOc = array(
        "dimenge", "diluns", "dimarts", "dimèrcres", "dijòus",
        "divendres", "dissabte"
@@ -277,6 +126,7 @@ include_once( "LanguageUtf8.php" );
        "Booksources"   => "Librairies en ligne",
 //     "Categories"    => "Page des catégories"       // Looxix "Page categories"
        "Export"        => "XML export",
+       "Version"       => "Version",
 );
 
 /* private */ $wgSysopSpecialPagesOc = array(
@@ -288,7 +138,6 @@ include_once( "LanguageUtf8.php" );
 /* private */ $wgDeveloperSpecialPagesOc = array(
        "Lockdb"        => "Bloquer la base de données",
        "Unlockdb"      => "Débloquer la base de données",
-       "Debug"         => "Informations de déboguage"
 );
 
 /* private */ $wgAllMessagesOc = array(
@@ -354,7 +203,7 @@ include_once( "LanguageUtf8.php" );
 "redirectedfrom" => "(Redirigé depuis $1)",
 "lastmodified"  => "Dernière modification de cette page : $1.",
 "viewcount"     => "Cette page a été consultée $1 fois.",
-"gnunote"       => "Tous les textes sont disponibles sous les termes de la <a class=internal href='/wiki/GFDL'>Licence de documentation libre GNU</a>.",
+"gnunote"       => "Tous les textes sont disponibles sous les termes de la <a class=internal href='$wgScriptPath/GFDL'>Licence de documentation libre GNU</a>.",
 "printsubtitle" => "(de http://www.wikipedia.org)",
 "protectedpage" => "Page protégée",
 "administrators" => "Wikipédia:Administrateurs",
@@ -514,7 +363,7 @@ Peut-être serait-il mieux que vous divisiez la page en sections plus petites.",
 vous ne pourrez donc pas sauvegarder vos modifications maintenant. Vous pouvez copier le texte dans un fichier et le sauver pour plus tard.", // Looxix 
 "protectedpagewarning" => "AVERTISSEMENT : cette page a été bloquée.
 Seuls les utilisateurs ayant le statut d'administrateur peuvent la modifier. Soyez certain que
-vous suivez les <a href='/wiki/Wikipédia:Page protégée'>directives concernant les pages protégées</a>.", // Looxix
+vous suivez les <a href='$wgScriptPath/$wgMetaNamespace:Page protégée'>directives concernant les pages protégées</a>.", // Looxix
 
 # History pages
 #
@@ -1048,8 +897,8 @@ class LanguageOc extends LanguageUtf8
 
        function getDefaultUserOptions()
        {
-               global $wgDefaultUserOptionsOc;
-               return $wgDefaultUserOptionsOc;
+                $opt = Language::getDefaultUserOptions();
+                return $opt;
        }
 
         function getBookstoreList () {
@@ -1112,16 +961,6 @@ class LanguageOc extends LanguageUtf8
                return $wgUserTogglesOc;
        }
 
-       function getLanguageName( $code )
-       {
-               global $wgLanguageNamesOc;
-               if ( ! array_key_exists( $code, $wgLanguageNamesOc ) ) 
-               {
-                       return "";
-               }
-               return $wgLanguageNamesOc[$code];
-       }
-
        function getMonthName( $key )
        {
                global $wgMonthNamesOc;