moved weekday, monthname etc to AllMessages arrays.
[lhc/web/wiklou.git] / languages / LanguageZh.php
index 3f714cf..404b238 100644 (file)
@@ -9,22 +9,26 @@ require_once( "LanguageUtf8.php" );
 # encapsulates some of the magic-ness.
 #
 /* private */ $wgNamespaceNamesZh = array(
-       -2      => "Media",
-       -1      => "Special",
-       0       => "",
-       1       => "Talk",
-       2       => "User",
-       3       => "User_talk",
-       4       => "Wikipedia",
-       5       => "Wikipedia_talk",
-       6       => "Image",
-       7       => "Image_talk",
-       8       => "MediaWiki",
-       9       => "MediaWiki_talk",
-       10  => "Template",
-       11  => "Template_talk"
-
-);
+       NS_MEDIA            => "Media",
+       NS_SPECIAL          => "Special",
+       NS_MAIN             => "",
+       NS_TALK             => "Talk",
+       NS_USER             => "User",
+       NS_USER_TALK        => "User_talk",
+       NS_WIKIPEDIA        => $wgMetaNamespace,
+       NS_WIKIPEDIA_TALK   => $wgMetaNamespace . "_talk",
+       NS_IMAGE            => "Image",
+       NS_IMAGE_TALK       => "Image_talk",
+       NS_MEDIAWIKI        => "MediaWiki",
+       NS_MEDIAWIKI_TALK   => "MediaWiki_talk",
+       NS_TEMPLATE         => "Template",
+       NS_TEMPLATE_TALK    => "Template_talk",
+       NS_HELP             => "Help",
+       NS_HELP_TALK        => "Help_talk",
+       NS_CATEGORY         => "Category",
+       NS_CATEGORY_TALK    => "Category_talk"
+
+) + $wgNamespaceNamesEn;
 
 /* private */ $wgQuickbarSettingsZh = array(
         "无", /* "None" */ 
@@ -41,16 +45,10 @@ require_once( "LanguageUtf8.php" );
        'montparnasse' => "Montparnasse",
        'davinci' => "DaVinci",
        'mono' => "Mono",
-       'monobook' => "MonoBook"
+       'monobook' => "MonoBook",
+ "myskin" => "MySkin" 
 );
 
-/* private */ $wgMathNamesZh = array(
-       "永远使用PNG图像",    /* "Always render PNG" */
-       "如果是简单的公式使用HTML,否则使用PNG图像",   /* "HTML if very simple or else PNG" */
-       "如果可以用HTML,否则用PNG图像",   /* "HTML if possible or else PNG" */
-       "显示为TeX代码(使用文字浏览器时)",  /* "Leave it as TeX (for text browsers)" */
-       "推荐为新版浏览器使用"  /* "Recommended for modern browsers" */
-);
 
 /* private */ $wgUserTogglesZh = array(
        "hover"         => "滑过Wiki链接时显示注释",
@@ -94,29 +92,6 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).", */
        "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
 );
 
-/* private */ $wgWeekdayNamesZh = array(
-        "星期日", "星期一", "星期二", "星期三", "星期四",
-       "星期五", "星期六"
-/* "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday",
-       "Friday", "Saturday" */
-);
-
-/* private */ $wgMonthNamesZh = array(
-        "1月", "2月", "3月", "4月", "5月", "6月",
-       "7月", "8月", "9月", "10月", "11月",
-       "12月"
-/* "January", "February", "March", "April", "May", "June",
-   "July", "August", "September", "October", "November",
-       "December" */
-);
-
-/* private */ $wgMonthAbbreviationsZh = array(
-"1月", "2月", "3月", "4月", "5月", "6月",
-       "7月", "8月", "9月", "10月", "11月",
-       "12月"
-/* "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug",
-       "Sep", "Oct", "Nov", "Dec" */
-);
 
 # All special pages have to be listed here: a description of ""
 # will make them not show up on the "Special Pages" page, which
@@ -183,6 +158,39 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).", */
 );
 
 /* private */ $wgAllMessagesZh = array(
+# Dates
+
+'sunday' => "星期日",
+'monday' => "星期一",
+'tuesday' => "星期二",
+'wednesday' => "星期三",
+'thursday' => "星期四",
+'friday' => "星期五",
+'saturday' => "星期六",
+'january' => "1月",
+'february' => "2月",
+'march' => "3月",
+'april' => "4月",
+'may' => "5月",
+'june' => "6月",
+'july' => "7月",
+'august' => "8月",
+'september' => "9月",
+'october' => "10月",
+'november' => "11月",
+'december' => "12月",
+'jan' => "1月",
+'feb' => "2月",
+'mar' => "3月",
+'apr' => "4月",
+'may' => "5月",
+'jun' => "6月",
+'jul' => "7月",
+'aug' => "8月",
+'sep' => "9月",
+'oct' => "10月",
+'nov' => "11月",
+'dec' => "12月",
 
 # Bits of text used by many pages:
 #
@@ -940,6 +948,14 @@ Wikipedia与这些公司并没有任何商业关系,因此本表不应该
 "talkpagemoved" => "相应的对话页也已经移动。",
 "talkpagenotmoved" => "相应的对话页<strong>没有</strong>被移动。",
 
+# Math
+
+'mw_math_png' => "永远使用PNG图像",    /* "Always render PNG" */
+'mw_math_simple' => "如果是简单的公式使用HTML,否则使用PNG图像",   /* "HTML if very simple or else PNG" */
+'mw_math_html' => "如果可以用HTML,否则用PNG图像",   /* "HTML if possible or else PNG" */
+'mw_math_source' => "显示为TeX代码(使用文字浏览器时)",  /* "Leave it as TeX (for text browsers)" */
+'mw_math_modern' => "推荐为新版浏览器使用",  /* "Recommended for modern browsers" */
+
 );
 
 class LanguageZh extends LanguageUtf8 {
@@ -992,41 +1008,11 @@ class LanguageZh extends LanguageUtf8 {
                return $wgSkinNamesZh;
        }
 
-       function getMathNames() {
-               global $wgMathNamesZh;
-               return $wgMathNamesZh;
-       }
-
        function getUserToggles() {
                global $wgUserTogglesZh;
                return $wgUserTogglesZh;
        }
 
-       function getMonthName( $key )
-       {
-               global $wgMonthNamesZh;
-               return $wgMonthNamesZh[$key-1];
-       }
-
-       /* by default we just return base form */
-       function getMonthNameGen( $key )
-       {
-               global $wgMonthNamesZh;
-               return $wgMonthNamesZh[$key-1];
-       }
-
-       function getMonthAbbreviation( $key )
-       {
-               global $wgMonthAbbreviationsZh;
-               return $wgMonthAbbreviationsZh[$key-1];
-       }
-
-       function getWeekdayName( $key )
-       {
-               global $wgWeekdayNamesZh;
-               return $wgWeekdayNamesZh[$key-1];
-       }
-
 # The date and time functions can be tweaked if need be
 
        # inherit userAdjust()