* Remove unnecessary {{ns:#}} vars. The generic names are already replaced by the...
[lhc/web/wiklou.git] / languages / LanguageTh.php
index 68b813b..9444fab 100644 (file)
 "mainpage"             => "หน้าหลัก",
 "mainpagetext" => "Wiki software  ถูกติดตั้งเรียบร้อยแล้ว",
 "about"                        => "เกี่ยวกับ",
-"aboutwikipedia" => "เกี่ยวกับ $wgSitename",
+"aboutsite"      => "เกี่ยวกับ $wgSitename",
 "aboutpage"            => "$wgMetaNamespace:เกี่ยวกับ",
 "help"                 => "ความช่วยเหลือ",
 "helppage"             => "$wgMetaNamespace:ความช่วยเหลือ",
 "currentevents" => "เหตุการณ์ปัจจุบัน",
 "errorpagetitle" => "ความผิดพลาด",
 "returnto"             => "กลับไปยัง $1.",
-"fromwikipedia"        => "จาก $wgSitename, สารานุกรมฟรี",
+"tagline"              => "จาก $wgSitename, สารานุกรมฟรี",
 "whatlinkshere"        => "หน้าที่ลิงก์มายังที่นี่",
 "help"                 => "ความช่วยเหลือ",
 "search"               => "ค้นหา",
@@ -426,8 +426,8 @@ If you are here by mistake, just click your browser's '''back''' button.",
 "previewconflict" => "This preview reflects the text in the upper
 text editing area as it will appear if you choose to save.",
 "editing"              => "Editing $1",
-"sectionedit"  => " (section)",
-"commentedit"  => " (comment)",
+"editingsection"       => "Editing $1 (section)",
+"editingcomment"       => "Editing $1 (comment)",
 "editconflict" => "Edit conflict: $1",
 "explainconflict" => "Someone else has changed this page since you
 started editing it.
@@ -547,7 +547,7 @@ border=\"0\" ALT=\"Google\"></A>
 "preferences"  => "Preferences",
 "prefsnologin" => "Not logged in",
 "prefsnologintext"     => "You must be <a href=\"" .
-  wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
+  "{{localurle:Special:Userlogin}}\">logged in</a>
 to set user preferences.",
 "prefslogintext" => "You are logged in as \"$1\".
 Your internal ID number is $2.
@@ -622,7 +622,7 @@ from server time (UTC).",
 "reuploaddesc" => "Return to the upload form.",
 "uploadnologin" => "Not logged in",
 "uploadnologintext"    => "You must be <a href=\"" .
-  wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
+  "{{localurle:Special:Userlogin}}\">logged in</a>
 to upload files.",
 "uploadfile"   => "Upload images, sounds, documents etc.",
 "uploaderror"  => "Upload error",
@@ -767,9 +767,9 @@ this list should not be construed as an endorsement.",
 #
 "mailnologin"  => "No send address",
 "mailnologintext" => "You must be <a href=\"" .
-  wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
+  "{{localurle:Special:Userlogin}}\">logged in</a>
 and have a valid e-mail address in your <a href=\"" .
-  wfLocalUrl( "Special:Preferences" ) . "\">preferences</a>
+  "{{localurle:Special:Preferences}}\">preferences</a>
 to send e-mail to other users.",
 "emailuser"            => "E-mail this user",
 "emailpage"            => "E-mail user",
@@ -796,14 +796,14 @@ or has chosen not to receive e-mail from other users.",
 "nowatchlist"  => "You have no items on your watchlist.",
 "watchnologin" => "Not logged in",
 "watchnologintext"     => "You must be <a href=\"" .
-  wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
+  "{{localurle:Special:Userlogin}}\">logged in</a>
 to modify your watchlist.",
 "addedwatch"   => "Added to watchlist",
 "addedwatchtext" => "The page \"$1\" has been added to your <a href=\"" .
-  wfLocalUrl( "Special:Watchlist" ) . "\">watchlist</a>.
+  "{{localurle:Special:Watchlist}}\">watchlist</a>.
 Future changes to this page and its associated Talk page will be listed there,
 and the page will appear <b>bolded</b> in the <a href=\"" .
-  wfLocalUrl( "Special:Recentchanges" ) . "\">list of recent changes</a> to
+  "{{localurle:Special:Recentchanges}}\">list of recent changes</a> to
 make it easier to pick out.</p>
 
 <p>If you want to remove the page from your watchlist later, click \"Stop watching\" in the sidebar.",
@@ -875,8 +875,8 @@ Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ",
 "protectlogpage" => "Protection_log",
 "protectlogtext" => "Below is a list of page locks/unlocks.
 See [[$wgMetaNamespace:Protected page]] for more information.",
-"protectedarticle" => "protected [[$1]]",
-"unprotectedarticle" => "unprotected [[$1]]",
+"protectedarticle" => "protected $1",
+"unprotectedarticle" => "unprotected $1",
 
 # Undelete
 "undelete" => "Restore deleted page",
@@ -1019,7 +1019,7 @@ In those cases, you will have to move or merge the page manually if desired.",
 "movearticle"  => "Move page",
 "movenologin"  => "Not logged in",
 "movenologintext" => "You must be a registered user and <a href=\"" .
-  wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
+  "{{localurle:Special:Userlogin}}\">logged in</a>
 to move a page.",
 "newtitle"             => "To new title",
 "movepagebtn"  => "Move page",
@@ -1121,7 +1121,11 @@ class LanguageTh extends LanguageUtf8 {
        function getMessage( $key )
        {
                global $wgAllMessagesTh;
-               return $wgAllMessagesTh[$key];
+               if( isset( $wgAllMessagesTh[$key] ) ) {
+                       return $wgAllMessagesTh[$key];
+               } else {
+                       return Language::getMessage( $key );
+               }
        }
 
        function getAllMessages()