Some minor edits, and a couple of added messages for Special:Makesysop
[lhc/web/wiklou.git] / languages / LanguageTh.php
index 8dbf2d1..3956393 100644 (file)
 "tog-showtoolbar" => "Show edit toolbar",
 "tog-editondblclick" => "แก้ไขหน้าโดยใช้ double click (ผ่าน JavaScript)",
 "tog-editsection"=>"สามารถแก้ไขเฉพาะส่วนโดยใช้ลิงก์ [แก้ไข]",
-"tog-editsectiononrightclick"=>"สามารถแก้ไขเฉพาะส่วนโดยใช้ right click<br> บนชื่อส่วนย่อย (ผ่าน JavaScript)",
-"tog-showtoc"=>"แสดงสารบัญ<br>(สำหรับบทความที่มีมากกว่า 3 หัวข้อ)",
+"tog-editsectiononrightclick"=>"สามารถแก้ไขเฉพาะส่วนโดยใช้ right click<br /> บนชื่อส่วนย่อย (ผ่าน JavaScript)",
+"tog-showtoc"=>"แสดงสารบัญ<br />(สำหรับบทความที่มีมากกว่า 3 หัวข้อ)",
 "tog-rememberpassword" => "จำ password ระหว่าง session",
 "tog-editwidth" => "กล่องสำหรับการแก้ไขกว้างเต็มหน้าจอ",
 "tog-watchdefault" => "นำหน้าที่แก้ไขไปใส่ watchlist",
@@ -313,8 +313,8 @@ an incorrectly linked inter-language or inter-wiki title.",
 because it slows the database down to the point that no one can use
 the wiki.",
 "perfdisabledsub" => "Here's a saved copy from $1:",
-"wrong_wfQuery_params" => "Incorrect parameters to wfQuery()<br>
-Function: $1<br>
+"wrong_wfQuery_params" => "Incorrect parameters to wfQuery()<br />
+Function: $1<br />
 Query: $2
 ",
 "viewsource" => "View source",
@@ -342,8 +342,8 @@ Don't forget to personalize your wikipedia preferences.",
 "yourpasswordagain" => "พิมพ์รหัสผ่านอีกครั้ง",
 "newusersonly" => " (เฉพาะผู้ใช้ใหม่)",
 "remembermypassword" => "Remember my password across sessions.",
-"loginproblem" => "<b>There has been a problem with your login.</b><br>Try again!",
-"alreadyloggedin" => "<font color=red><b>User $1, you are already logged in!</b></font><br>\n",
+"loginproblem" => "<b>There has been a problem with your login.</b><br />Try again!",
+"alreadyloggedin" => "<font color=red><b>User $1, you are already logged in!</b></font><br />\n",
 
 "login"                        => "ล็อกอิน",
 "loginprompt"           => "ต้อง enable cookie เพื่อล็อกอินสู่ $wgSitename ได้",
@@ -392,7 +392,7 @@ Please log in again after you receive it.",
 "showpreview"  => "Show preview",
 "blockedtitle" => "User is blocked",
 "blockedtext"  => "Your user name or IP address has been blocked by $1.
-The reason given is this:<br>''$2''<p>You may contact $1 or one of the other
+The reason given is this:<br />''$2''<p>You may contact $1 or one of the other
 [[$wgMetaNamespace:Administrators|administrators]] to discuss the block.
 
 Note that you may not use the \"email this user\" feature unless you have a valid email address registered in your [[Special:Preferences|user preferences]].
@@ -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.
@@ -447,7 +447,7 @@ If you save it, any changes made since this revision will be lost.</strong>\n",
 considered to be released under the GNU Free Documentation License
 (see $1 for details).
 If you don't want your writing to be edited mercilessly and redistributed
-at will, then don't submit it here.<br>
+at will, then don't submit it here.<br />
 You are also promising us that you wrote this yourself, or copied it from a
 public domain or similar free resource.
 <strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong>",
@@ -516,8 +516,8 @@ which are not indexed, or by specifying more than one search term (only pages
 containing all of the search terms will appear in the result).",
 "powersearch" => "Search",
 "powersearchtext" => "
-Search in namespaces :<br>
-$1<br>
+Search in namespaces :<br />
+$1<br />
 $2 List redirects &nbsp; Search for $3 $9",
 "searchdisabled" => "<p>Sorry! Full text search has been disabled temporarily, for performance reasons. In the meantime, you can use the Google search below, which may be out of date.</p>
 
@@ -533,7 +533,7 @@ border=\"0\" ALT=\"Google\"></A>
 <INPUT TYPE=text name=q size=31 maxlength=255 value=\"$1\">
 <INPUT type=submit name=btnG VALUE=\"Google Search\">
 <font size=-1>
-<input type=hidden name=domains value=\"{$wgServer}\"><br><input type=radio name=sitesearch value=\"\"> WWW <input type=radio name=sitesearch value=\"{$wgServer}\" checked> {$wgServer} <br>
+<input type=hidden name=domains value=\"{$wgServer}\"><br /><input type=radio name=sitesearch value=\"\"> WWW <input type=radio name=sitesearch value=\"{$wgServer}\" checked> {$wgServer} <br />
 <input type='hidden' name='ie' value='$2'>
 <input type='hidden' name='oe' value='$2'>
 </font>
@@ -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",
@@ -680,7 +680,7 @@ created and by whom, and anything else you may know about it.",
 "deleteimgcompletely"          => "del",
 "imghistlegend" => "Legend: (cur) = this is the current image, (del) = delete
 this old version, (rev) = revert to this old version.
-<br><i>Click on date to see image uploaded on that date</i>.",
+<br /><i>Click on date to see image uploaded on that date</i>.",
 "imagelinks"   => "Image links",
 "linkstoimage" => "The following pages link to this image:",
 "nolinkstoimage" => "There are no pages that link to this image.",
@@ -708,9 +708,9 @@ That comes to <b>$5</b> average edits per page, and <b>$6</b> views per edit.",
 "maintenancebacklink"  => "Back to Maintenance Page",
 "disambiguations"      => "Disambiguation pages",
 "disambiguationspage"  => "$wgMetaNamespace:Links_to_disambiguating_pages",
-"disambiguationstext"  => "The following articles link to a <i>disambiguation page</i>. They should link to the appropriate topic instead.<br>A page is treated as dismbiguation if it is linked from $1.<br>Links from other namespaces are <i>not</i> listed here.",
+"disambiguationstext"  => "The following articles link to a <i>disambiguation page</i>. They should link to the appropriate topic instead.<br />A page is treated as dismbiguation if it is linked from $1.<br />Links from other namespaces are <i>not</i> listed here.",
 "doubleredirects"      => "Double Redirects",
-"doubleredirectstext"  => "<b>Attention:</b> This list may contain false positives. That usually means there is additional text with links below the first #REDIRECT.<br>\nEach row contains links to the first and second redirect, as well as the first line of the second redirect text, usually giving the \"real\" taget article, which the first redirect should point to.",
+"doubleredirectstext"  => "<b>Attention:</b> This list may contain false positives. That usually means there is additional text with links below the first #REDIRECT.<br />\nEach row contains links to the first and second redirect, as well as the first line of the second redirect text, usually giving the \"real\" taget article, which the first redirect should point to.",
 "brokenredirects"      => "Broken Redirects",
 "brokenredirectstext"  => "The following redirects link to a non-existing article.",
 "selflinks"            => "Pages with Self Links",
@@ -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.",
@@ -846,7 +846,6 @@ or image along with all of its history from the database.
 Please confirm that you intend to do this, that you understand the
 consequences, and that you are doing this in accordance with
 [[$wgMetaNamespace:Policy]].",
-"confirmcheck" => "Yes, I really want to delete this.",
 "actioncomplete" => "Action complete",
 "deletedtext"  => "\"$1\" has been deleted.
 See $2 for a record of recent deletions.",
@@ -875,8 +874,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",
@@ -932,7 +931,7 @@ pages that were vandalized).",
 "noblockreason" => "You must supply a reason for the block.",
 "blockipsuccesssub" => "Block succeeded",
 "blockipsuccesstext" => "\"$1\" has been blocked.
-<br>See [[Special:Ipblocklist|IP block list]] to review blocks.",
+<br />See [[Special:Ipblocklist|IP block list]] to review blocks.",
 "unblockip"            => "Unblock user",
 "unblockiptext"        => "Use the form below to restore write access
 to a previously blocked IP address or username.",
@@ -972,7 +971,7 @@ Please confirm that this is what you intend to do.",
 "lockdbsuccesssub" => "Database lock succeeded",
 "unlockdbsuccesssub" => "Database lock removed",
 "lockdbsuccesstext" => "The database has been locked.
-<br>Remember to remove the lock after your maintenance is complete.",
+<br />Remember to remove the lock after your maintenance is complete.",
 "unlockdbsuccesstext" => "The database has been unlocked.",
 
 # SQL query
@@ -1019,7 +1018,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 +1120,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()