* Improved the debug output of retrieveExifData()
[lhc/web/wiklou.git] / languages / LanguageTh.php
index 0478877..680ac54 100644 (file)
@@ -1,4 +1,8 @@
 <?php
+/**
+  * @package MediaWiki
+  * @subpackage Language
+  */
 #--------------------------------------------------------------------------
 # Translated from English by Varakorn Ungvichian
 # แปลงจากภาษาอังกฤษโดย นาย วรากร อึ้งวิเชียร
 );
 
 /* private */ $wgDateFormatsTh = array(
-       "No preference",
-       "มกราคม 15, 2001",
-       "15 มกราคม 2001",
-       "2001 มกราคม 15",
-       "2001-01-15"
+#      "No preference",
 );
 
 
 # the regex in MagicWord::initRegex
 
 /* private */ $wgAllMessagesTh = array(
-'special_version_prefix' => '',
-'special_version_postfix' => '',
 
 # User Toggles
 #
 
-"tog-hover"            => "แสดง hoverbox เหนือลิงก์",
 "tog-underline" => "ขีดเส้นใต้ลิงก์",
 "tog-highlightbroken" => "จัดลิงก์ที่ไม่มี <a href=\"\" class=\"new\">เป็น ดังนี้</a> (หรือ เป็นดังนี้<a href=\"\" class=\"internal\">?</a>).",
 "tog-justify"  => "จัดย่อหน้าให้เรียบร้อย",
 "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",
 "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"               => "ค้นหา",
@@ -273,13 +270,6 @@ See $1.",
 #
 "error"                        => "Error",
 "databaseerror" => "Database error",
-"dberrortext"  => "A database query syntax error has occurred.
-This could be because of an illegal search query (see $5),
-or it may indicate a bug in the software.
-The last attempted database query was:
-<blockquote><tt>$1</tt></blockquote>
-from within function \"<tt>$2</tt>\".
-MySQL returned error \"<tt>$3: $4</tt>\".",
 "dberrortextcl" => "A database query syntax error has occurred.
 The last attempted database query was:
 \"$1\"
@@ -320,8 +310,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",
@@ -349,8 +339,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 ได้",
@@ -399,7 +389,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]].
@@ -433,8 +423,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.
@@ -442,32 +432,31 @@ The upper text area contains the page text as it currently exists.
 Your changes are shown in the lower text area.
 You will have to merge your changes into the existing text.
 <b>Only</b> the text in the upper text area will be saved when you
-press \"Save page\".\n<p>",
+press \"Save page\".<br />",
 "yourtext"             => "Your text",
 "storedversion" => "Stored version",
 "editingold"   => "<strong>WARNING: You are editing an out-of-date
 revision of this page.
-If you save it, any changes made since this revision will be lost.</strong>\n",
+If you save it, any changes made since this revision will be lost.</strong>",
 "yourdiff"             => "Differences",
 # FIXME: This is inappropriate for third-party use!
 "copyrightwarning" => "Please note that all contributions to $wgSitename are
 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>",
-"longpagewarning" => "WARNING: This page is $1 kilobytes long; some
+"longpagewarning" => "<strong>WARNING: This page is $1 kilobytes long; some
 browsers may have problems editing pages approaching or longer than 32kb.
-Please consider breaking the page into smaller sections.",
-"readonlywarning" => "WARNING: The database has been locked for maintenance,
+Please consider breaking the page into smaller sections.</strong>",
+"readonlywarning" => "<strong>WARNING: The database has been locked for maintenance,
 so you will not be able to save your edits right now. You may wish to cut-n-paste
-the text into a text file and save it for later.",
-"protectedpagewarning" => "WARNING:  This page has been locked so that only
+the text into a text file and save it for later.</strong>",
+"protectedpagewarning" => "<strong>WARNING:  This page has been locked so that only
 users with sysop privileges can edit it. Be sure you are following the
-<a href='/wiki/$wgMetaNamespace:Protected_page_guidelines'>protected page
-guidelines</a>.",
+[[Project:Protected_page_guidelines|protected page guidelines]].</strong>",
 
 # History pages
 #
@@ -496,9 +485,7 @@ Please check the URL you used to access this page.\n",
 # Search results
 #
 "searchresults" => "Search results",
-"searchhelppage" => "$wgMetaNamespace:Searching",
-"searchingwikipedia" => "Searching $wgSitename",
-"searchresulttext" => "For more information about searching $wgSitename, see $1.",
+"searchresulttext" => "For more information about searching {{SITENAME}}, see [[Project:Searching|Searching {{SITENAME}}]].",
 "searchquery"  => "For query \"$1\"",
 "badquery"             => "Badly formed search query",
 "badquerytext" => "We could not process your query.
@@ -525,38 +512,19 @@ 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>
 
 ",
-"googlesearch" => "<!-- SiteSearch Google -->
-<FORM method=GET action=\"http://www.google.com/search\">
-<TABLE bgcolor=\"#FFFFFF\"><tr><td>
-<A HREF=\"http://www.google.com/\">
-<IMG SRC=\"http://www.google.com/logos/Logo_40wht.gif\"
-border=\"0\" ALT=\"Google\"></A>
-</td>
-<td>
-<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='ie' value='$2'>
-<input type='hidden' name='oe' value='$2'>
-</font>
-</td></tr></TABLE>
-</FORM>
-<!-- SiteSearch Google -->",
 "blanknamespace" => "(Main)",
 
 # Preferences page
 #
 "preferences"  => "Preferences",
 "prefsnologin" => "Not logged in",
-"prefsnologintext"     => "You must be <a href=\"" .
-  wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
+"prefsnologintext"     => "You must be [[Special:Userlogin|logged in]]
 to set user preferences.",
 "prefslogintext" => "You are logged in as \"$1\".
 Your internal ID number is $2.
@@ -608,7 +576,6 @@ from server time (UTC).",
 "rclistfrom"   => "Show new changes starting from $1",
 # "rclinks"            => "Show last $1 changes in last $2 hours / last $3 days",
 # "rclinks"            => "Show last $1 changes in last $2 days.",
-"showhideminor"         => "$1 minor edits",
 "rclinks"              => "Show last $1 changes in last $2 days; $3",
 "rchide"               => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
 "rcliu"                        => "; $1 edits from logged in users",
@@ -630,10 +597,8 @@ from server time (UTC).",
 "reupload"             => "Re-upload",
 "reuploaddesc" => "Return to the upload form.",
 "uploadnologin" => "Not logged in",
-"uploadnologintext"    => "You must be <a href=\"" .
-  wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
+"uploadnologintext"    => "You must be [[Special:Userlogin|logged in]]
 to upload files.",
-"uploadfile"   => "Upload images, sounds, documents etc.",
 "uploaderror"  => "Upload error",
 
 "uploadlog"            => "upload log",
@@ -666,17 +631,15 @@ in information about the file, such as where it came from, when it was
 created and by whom, and anything else you may know about it.",
 "uploadwarning" => "Upload warning",
 "savefile"             => "Save file",
-"uploadedimage" => "uploaded \"$1\"",
+"uploadedimage" => "uploaded \"[[$1]]\"",
 
 # Image list
 #
 "imagelist"            => "Image list",
 "imagelisttext"        => "Below is a list of $1 images sorted $2.",
 "getimagelist" => "fetching image list",
-"ilshowmatch"  => "Show all images with names matching",
 "ilsubmit"             => "Search",
 "showlast"             => "Show last $1 images sorted $2.",
-"all"                  => "all",
 "byname"               => "by name",
 "bydate"               => "by date",
 "bysize"               => "by size",
@@ -689,7 +652,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.",
@@ -717,9 +680,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",
@@ -775,10 +738,8 @@ this list should not be construed as an endorsement.",
 # Email this user
 #
 "mailnologin"  => "No send address",
-"mailnologintext" => "You must be <a href=\"" .
-  wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
-and have a valid e-mail address in your <a href=\"" .
-  wfLocalUrl( "Special:Preferences" ) . "\">preferences</a>
+"mailnologintext" => "You must be [[Special:Userlogin|logged in]]
+and have a valid e-mail address in your [[Special:Preferences|preferences]]
 to send e-mail to other users.",
 "emailuser"            => "E-mail this user",
 "emailpage"            => "E-mail user",
@@ -804,15 +765,14 @@ or has chosen not to receive e-mail from other users.",
 "watchlistsub" => "(for user \"$1\")",
 "nowatchlist"  => "You have no items on your watchlist.",
 "watchnologin" => "Not logged in",
-"watchnologintext"     => "You must be <a href=\"" .
-  wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
+"watchnologintext"     => "You must be [[Special:Userlogin|logged in]]
 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.",
@@ -855,7 +815,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.",
@@ -941,7 +900,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.",
@@ -981,7 +940,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
@@ -1005,7 +964,7 @@ this function sparingly.",
 of its history to the new name.
 The old title will become a redirect page to the new title.
 Links to the old page title will not be changed; be sure to
-[[Special:Maintenance|check]] for double or broken redirects.
+check for double or broken redirects.
 You are responsible for making sure that links continue to
 point where they are supposed to go.
 
@@ -1027,8 +986,7 @@ proceeding.",
 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>
+"movenologintext" => "You must be a registered user and [[Special:Userlogin|logged in]]
 to move a page.",
 "newtitle"             => "To new title",
 "movepagebtn"  => "Move page",
@@ -1130,7 +1088,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()