Bug 2753 Some namespaces are not translated in LanguageTa.php (Tamil)
[lhc/web/wiklou.git] / languages / LanguageJa.php
index a763a0e..1dc06a7 100644 (file)
@@ -6,13 +6,6 @@
 global $IP;
 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
-# encapsulates some of the magic-ness.
-# 名前空間の名前はここで設定できますが、番号は特別なので、
-# 変更したり移動したりしないでね! 名前空間クラスは特殊性を幾らか
-# 隠匿します。
-#
 /* private */ $wgNamespaceNamesJa = array(
        NS_MEDIA          => "Media", /* Media */
        NS_SPECIAL        => "特別", /* Special */
@@ -42,13 +35,7 @@ require_once( "LanguageUtf8.php" );
        'standard' => "標準",
        'nostalgia' => "ノスタルジア",
        'cologneblue' => "ケルンブルー",
-       'smarty' => "Paddington",
-       'montparnasse' => "Montparnasse",
-       'davinci' => "DaVinci",
-       'mono' => "Mono",
-       'monobook' => "MonoBook",
-       'myskin' => "MySkin"
-);
+) + $wgSkinNamesEn;
 
 
 
@@ -57,62 +44,8 @@ require_once( "LanguageUtf8.php" );
 );
 
 
-# All special pages have to be listed here: a description of ""
-# will make them not show up on the "Special Pages" page, which
-# is the right thing for some of them (such as the "targeted" ones).
-# 全ての特殊頁はここに列挙しないといけません。
-# "" (空文字列) という説明にすると「特殊頁」頁に掲載しません。
-# これは幾つか (「targeted」とか) に対しては適当なことです。
-
-/* private */ $wgValidSpecialPagesJa = array(
-       "Userlogin"             => "",
-       "Userlogout"    => "",
-       "Preferences"   => "ユーザー設定を保存",
-       "Watchlist"             => "ウォッチリスト",
-       "Recentchanges" => "最近更新したページ",
-       "Upload"                => "画像をアップロードする",
-       "Imagelist"             => "画像リスト",
-       "Listusers"             => "登録済みユーザー",
-       "Statistics"    => "サイトの統計",
-       "Randompage"    => "ランダム記事",
-
-       "Lonelypages"   => "孤立したページ",
-       "Unusedimages"  => "孤立した画像",
-       "Popularpages"  => "人気の記事",
-       "Wantedpages"   => "執筆が待望されている記事",
-       "Shortpages"    => "短い記事",
-       "Longpages"             => "長い記事",
-       "Newpages"              => "新しく登場した記事",
-       "Ancientpages"  => "Oldest articles",
-       "Allpages"              => "タイトル別全ページ",
-
-       "Ipblocklist"   => "ブロックされたIPアドレス",
-       "Maintenance" => "管理ページ",
-       "Specialpages"  => "",
-       "Contributions" => "",
-       "Emailuser"             => "",
-       "Whatlinkshere" => "",
-       "Recentchangeslinked" => "",
-       "Movepage"              => "",
-       "Booksources"   => "外部の参考文献",
-       "Export"        => "XML export",
-       "Version"       => "Version",
-);
-
-/* private */ $wgSysopSpecialPagesJa = array(
-       "Blockip"               => "IPアドレスをブロック",
-       "Asksql"                => "データベースに問い合わせ",
-       "Undelete"              => "消去されたページを閲覧し、復帰させる"
-);
-
-/* private */ $wgDeveloperSpecialPagesJa = array(
-       "Lockdb"                => "データベースを読み出し専用にする",
-       "Unlockdb"              => "データベースを書き込み可能にする",
-);
 
 /* private */ $wgAllMessagesJa = array(
-'special_version_prefix' => '',
-'special_version_postfix' => '',
 # User Toggles
 
 "tog-underline" => "リンクにアンダーラインをつける",
@@ -174,7 +107,6 @@ require_once( "LanguageUtf8.php" );
 "aboutpage"            => "{{ns:4}}:About",
 "help"                 => "ヘルプ",
 "helppage"             => "{{ns:4}}:Help",
-"wikititlesuffix" => "{{ns:4}}",
 "bugreports"   => "バグの報告",
 "bugreportspage" => "{{ns:4}}:バグの報告",
 "faq"                  => "FAQ",
@@ -209,7 +141,7 @@ require_once( "LanguageUtf8.php" );
 "redirectedfrom" => "($1 から転送)",
 "lastmodified" => "最終更新 $1。",
 "viewcount"            => "このページは $1 回アクセスされました。",
-"printsubtitle" => "(From http://www.wikipedia.org)",
+"printsubtitle" => "(From {{SERVER}})",
 "protectedpage" => "保護されたページ",
 "administrators" => "{{ns:4}}:Administrators",
 "sysoptitle"   => "シスオペによるアクセスが必要",
@@ -291,7 +223,7 @@ again as the same or as a different user.\n",
 "newusersonly" => " (新規ユーザのみ)",
 "remembermypassword" => "セッションをまたがってパスワードを保持する。",
 "loginproblem" => "<b>ログインでエラーが発生しました。</b><br />再度実行してください。",
-"alreadyloggedin" => "<font color=red><b>ユーザ $1 は、すでにログイン済みです。</b></font><br />\n",
+"alreadyloggedin" => "<strong>ユーザ $1 は、すでにログイン済みです。</strong><br />\n",
 
 "login"                        => "ログイン",
 "userlogin"            => "ログイン",
@@ -346,7 +278,7 @@ text editing area as it will appear if you choose to save." */,
 あなたの加える変更の内容は下の文章エリアに示されています。
 変更内容を、上の文章エリアの内容に組み込んで下さい。
 <b>上の文章エリアの内容だけ</b>が、\"Save page\"をクリックした時に
-保存されることになります。\n<p>"
+保存されることになります。<br />"
 /* Someone else has changed this page since you
 started editing it.
 The upper text area contains the page text as it currently exists.
@@ -400,7 +332,6 @@ Please check the URL you used to access this page.\n",
 # 検索結果(Search results)
 #
 "searchresults" => "検索結果" /* "Search results" */,
-"searchingwikipedia" => "{{SITENAME}} を検索中" /* "Searching Wikipedia" */,
 "searchresulttext" => "{{SITENAME}} の検索についての詳しい情報は、 $1 をご覧下さい。"
   /* "For more information about searching Wikipedia, see $1." */ ,
 "searchquery"  => "問い合わせ \"$1\" について、" /* "For query \"$1\"" */,
@@ -437,7 +368,7 @@ containing all of the search terms will appear in the result)." */,
 "preferences"  => "オプション" /* "Preferences" */,
 "prefsnologin" => "ログインしていません" /* "Not logged in" */,
 "prefsnologintext"     =>  "ユーザーオプションを変更するためには、
-<a href=\"{{localurle:Special:Userlogin}}\">ログイン</a>している必要があります。"
+[[Special:Userlogin|ログイン]]している必要があります。"
 /* "You must be <a href=\"" .
   "{{localurle:Special:Userlogin}}\">logged in</a>
 to set user preferences." */,
@@ -516,11 +447,10 @@ See also the [http://meta.wikipedia.org/wiki/Special:Recentchanges recent meta d
 "reuploaddesc" => "アップロードのフォームへ戻る Return to the upload form.",
 "uploadnologin" => "ログインしていません、 Not logged in",
 "uploadnologintext"    => "ユーザーオプションを変更するためには、
-<a href=\"{{localurle:Special:Userlogin}}\">ログイン</a>している必要があります。
+[[Special:Userlogin|ログイン]]している必要があります。
 
-You must be <a href=\"{{localurle:Special:Userlogin}}\">logged in</a>
+You must be [[Special:Userlogin|logged in]]
 to upload files.",
-"uploadfile"   => "ファイルのアップロード  Upload file",
 "uploaderror"  => "アップロード エラー  Upload error",
 "uploadtext"   => "'''ご注意!'''
 ここにファイルをアップロードする前に、ウィキペディアの[[Project:画像利用の方針|画像利用の方針]]を
@@ -596,19 +526,10 @@ All times shown are server time (UTC). */,
 
 "filename"             => "ファイル名",
 "filedesc"             => "ファイルの概要",
-"affirmation"  => "このファイルの著作権者は$1のライセンスに基づく
-使用を許可したことをここに表明します。
-
-I affirm that the copyright holder of this file
-agrees to license it under the terms of the $1.",
 "copyrightpage" => "{{ns:4}}:Copyrights",
 
 "copyrightpagename" => "ウィキペディアの著作権",
 "uploadedfiles"        => "アップロードされたファイル",
-"noaffirmation" => "あなたのアップロードが著作権の侵害にあたらない旨を
-表明して下さい。"
-/* "You must affirm that your upload does not violate
-any copyrights." */,
 "ignorewarning"        => "警告を無視し、保存してしまう" /* "Ignore warning and save file anyway." */,
 "minlength"            => "ファイル名は3文字以上である必要があります。" /* "Image names must be at least three letters." */,
 "badfilename"  => "ファイル名は\"$1\"へ変更されました。" /* "Image name has been changed to \"$1\"." */,
@@ -635,7 +556,6 @@ created and by whom, and anything else you may know about it." */,
 "imagelist"            => "画像リスト",
 "imagelisttext"                => "$1枚の画像を$2に表示しています",
 "getimagelist"         => "画像リストを取得",
-"ilshowmatch"           => "マッチする名前の画像を全て表示",
 "ilsubmit"             => "検索",
 "showlast"             => "$2に$1枚の画像を表示",
 "byname"               => "名前順",
@@ -681,8 +601,6 @@ created and by whom, and anything else you may know about it." */,
 "listusers"            => "登録ユーザー一覧",
 "specialpages"         => "特別ページ",
 "spheading"            => "特別ページ",
-"sysopspheading"        => "シスオペ用特別ページ (pages for sysop)",
-"developerspheading"    => "開発者用特別ページ (pages for developper)",
 "protectpage"          => "Protect page",
 "recentchangeslinked"   => "リンクを見張る",
 "rclsub"               => "(to pages linked from \"$1\")",
@@ -700,9 +618,9 @@ created and by whom, and anything else you may know about it." */,
 #
 "mailnologin"  => "送信先のアドレスがありません。" /* No send address"*/,
 "mailnologintext" => "ログインしていません。メールを送信するためには、
-あなたの電子メールアドレスを<a href=\"{{localurle:Special:Userlogin}}\">ユーザーオプション</a>
+あなたの電子メールアドレスを[[Special:Userlogin|ユーザーオプション]]
 で指定し、
-<a href=\"{{localurle:Special:Userlogin\">ログイン</a>している必要があります。"
+[[Special:Userlogin|ログイン]]している必要があります。"
 /* You must be <a href=\"" .
   "{{localurle:Special:Userlogin}}\">logged in</a>
 and have a valid e-mail address in your <a href=\"" .
@@ -739,7 +657,7 @@ or has chosen not to receive e-mail from other users." */,
 "nowatchlist"  => "あなたのウォッチリストは空です。" /* "You have no items on your watchlist." */,
 "watchnologin" => "ログインしていません" /* "Not logged in" */,
 "watchnologintext"     => "ウォッチリストを変更するためには、
-<a href=\"{{localurle:Special:Userlogin}}\">ログイン</a>している必要があります。"
+[[Special:Userlogin|ログイン]]している必要があります。"
 /* "You must be <a href=\"" .
   "{{localurle:Special:Userlogin}}\">logged in</a>
 to modify your watchlist." */,
@@ -840,7 +758,6 @@ pages that were vandalized).",
 "ipbreason"            => "Reason",
 "ipbsubmit"            => "Block this address",
 "badipaddress" => "The IP address is badly formed.",
-"noblockreason" => "You must supply a reason for the block.",
 "blockipsuccesssub" => "Block succeeded",
 "blockipsuccesstext" => "The IP address \"$1\" has been blocked.
 <br />See [[Special:Ipblocklist|IP block list]] to review blocks.",
@@ -850,7 +767,7 @@ to a previously blocked IP address.",
 "ipusubmit"            => "Unblock this address",
 "ipusuccess"   => "IP address \"$1\" unblocked",
 "ipblocklist"  => "List of blocked IP addresses",
-"blocklistline"        => "$1, $2 blocked $3",
+"blocklistline"        => "$1, $2 blocked $3 ($4)",
 "blocklink"            => "block",
 "unblocklink"  => "unblock",
 "contribslink" => "contribs",
@@ -879,20 +796,6 @@ Please confirm that this is what you intend to do.",
 <br />Remember to remove the lock after your maintenance is complete.",
 "unlockdbsuccesstext" => "The {{SITENAME}} database has been unlocked.",
 
-# SQL query     (この部分は管理者用なので当面英文を残しておきます。)
-#
-"asksql"               => "SQL query",
-"asksqltext"   => "Use the form below to make a direct query of the
-{{SITENAME}} database.
-Use single quotes ('like this') to delimit string literals.
-This can often add considerable load to the server, so please use
-this function sparingly.",
-"sqlquery"             => "Enter query",
-"querybtn"             => "Submit query",
-"selectonly"   => "Queries other than \"SELECT\" are restricted to
-{{SITENAME}} developers.",
-"querysuccessful" => "Query successful",
-
 # Move page ページの移動
 #
 "movepage"             => "ページの移動",
@@ -917,7 +820,7 @@ proceeding." */,
 "movearticle"  => "ページの移動",
 "movenologin"  => "ログインしていません",
 "movenologintext" => "この機能を利用するためには、ユーザー登録をして、
-<a href=\"{{localurle:Special:Userlogin}}\">ログイン</a>している必要が
+[[Special:Userlogin|ログイン]]している必要が
 あります。",
 "newtitle"             => "新しいページへ" /* "To new title" */,
 "movepagebtn"  => "ページを移動" /* "Move page" */,
@@ -933,12 +836,12 @@ Please choose another name." */,
 
 # Math
 
-       'mw_math_png' => "常にPNG",
-       'mw_math_simple' => "シンプルな数式はHTML、それ以外はPNG",
-       'mw_math_html' => "できる限りHTML、さもなければPNG",
-       'mw_math_source' => "TeXのままにする (テキストブラウザ向け)",
-        'mw_math_modern' => "可能ならばMathMLを使う (実験中の機能)",
-       'mw_math_mathml' => 'MathML',
+'mw_math_png' => "常にPNG",
+'mw_math_simple' => "シンプルな数式はHTML、それ以外はPNG",
+'mw_math_html' => "できる限りHTML、さもなければPNG",
+'mw_math_source' => "TeXのままにする (テキストブラウザ向け)",
+'mw_math_modern' => "可能ならばMathMLを使う (実験中の機能)",
+'mw_math_mathml' => 'MathML',
 
 );
 
@@ -949,20 +852,6 @@ class LanguageJa extends LanguageUtf8 {
                return $wgNamespaceNamesJa;
        }
 
-       function getNsText( $index ) {
-               global $wgNamespaceNamesJa;
-               return $wgNamespaceNamesJa[$index];
-       }
-
-       function getNsIndex( $text ) {
-               global $wgNamespaceNamesJa;
-
-               foreach ( $wgNamespaceNamesJa as $i => $n ) {
-                       if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
-               }
-               return false;
-       }
-
        function getQuickbarSettings() {
                global $wgQuickbarSettingsJa;
                return $wgQuickbarSettingsJa;
@@ -973,12 +862,13 @@ class LanguageJa extends LanguageUtf8 {
                return $wgSkinNamesJa;
        }
 
-       # Inherit default userAdjust()
+       function getDateFormats() {
+               return false;
+       }
 
-       function date( $ts, $adj = false )
-       {
+       function date( $ts, $adj = false, $format = false, $tc = false ) {
                global $wgWeekdayAbbreviationsJa;
-               if ( $adj ) { $ts = $this->userAdjust( $ts ); }
+               if ( $adj ) { $ts = $this->userAdjust( $ts, $tc ); }
 
                $x = getdate(mktime(( (int)substr( $ts, 8, 2) ),
                        (int)substr( $ts, 10, 2 ), (int)substr( $ts, 12, 2 ),
@@ -991,46 +881,23 @@ class LanguageJa extends LanguageUtf8 {
                return $d;
        }
 
-       function time( $ts, $adj = false )
-       {
-               if ( $adj ) { $ts = $this->userAdjust( $ts ); }
+       function time( $ts, $adj = false, $format = false, $tc = false ) {
+               if ( $adj ) { $ts = $this->userAdjust( $ts, $tc ); }
 
                $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
                return $t;
        }
 
-       function timeanddate( $ts, $adj = false )
-       {
-               return $this->date( $ts, $adj ) . " " . $this->time( $ts, $adj );
-       }
-
-       # Inherit default rfc1123()
-
-       function getValidSpecialPages()
-       {
-               global $wgValidSpecialPagesJa;
-               return $wgValidSpecialPagesJa;
-       }
-
-       function getSysopSpecialPages()
-       {
-               global $wgSysopSpecialPagesJa;
-               return $wgSysopSpecialPagesJa;
-       }
-
-       function getDeveloperSpecialPages()
-       {
-               global $wgDeveloperSpecialPagesJa;
-               return $wgDeveloperSpecialPagesJa;
+       function timeanddate( $ts, $adj = false, $format = false, $tc = false ) {
+               return $this->date( $ts, $adj, $format, $tc ) . " " . $this->time( $ts, $adj, $format, $tc );
        }
 
-       function getMessage( $key )
-       {
+       function getMessage( $key ) {
                global $wgAllMessagesJa;
                if(array_key_exists($key, $wgAllMessagesJa))
                        return $wgAllMessagesJa[$key];
                else
-                       return Language::getMessage($key);
+                       return parent::getMessage($key);
        }
 
        function stripForSearch( $string ) {
@@ -1062,8 +929,7 @@ class LanguageJa extends LanguageUtf8 {
 
        # Italic is not appropriate for Japanese script
        # Unfortunately most browsers do not recognise this, and render <em> as italic
-       function emphasize( $text )
-       {
+       function emphasize( $text ) {
                return $text;
        }
 }