* Improved the debug output of retrieveExifData()
[lhc/web/wiklou.git] / languages / LanguageTh.php
index 7f085a2..680ac54 100644 (file)
@@ -1,4 +1,8 @@
 <?php
+/**
+  * @package MediaWiki
+  * @subpackage Language
+  */
 #--------------------------------------------------------------------------
 # Translated from English by Varakorn Ungvichian
 # แปลงจากภาษาอังกฤษโดย นาย วรากร อึ้งวิเชียร
        10  => "Template",
        11  => "Template_talk"
 
-);
+) + $wgNamespaceNamesEn;
 
 /* private */ $wgQuickbarSettingsTh = array(
        "ไม่มี", "อยู่ทางซ้าย", "อยู่ทางขวา", "ลอยทางซ้าย"
 );
 
 /* private */ $wgSkinNamesTh = array(
-       "Standard", "Nostalgia", "Cologne Blue"
-);
-
-/* private */ $wgMathNamesTh = array(
-       "Always render PNG",
-       "HTML if very simple or else PNG",
-       "HTML if possible or else PNG",
-       "Leave it as TeX (for text browsers)",
      "Recommended for modern browsers"
+       'standard' => "Standard",
+       'nostalgia' => "Nostalgia",
+       'cologneblue' => "Cologne Blue",
+       'smarty' => "Paddington",
+       'montparnasse' => "Montparnasse",
+       'davinci' => "DaVinci",
+       'mono' => "Mono",
+       'monobook' => "MonoBook",
"myskin" => "MySkin"
 );
 
 /* private */ $wgDateFormatsTh = array(
-       "No preference",
-       "มกราคม 15, 2001",
-       "15 มกราคม 2001",
-       "2001 มกราคม 15",
-       "2001-01-15"
-);
-
-/* private */ $wgUserTogglesTh = array(
-       "hover"         => "แสดง hoverbox เหนือลิงก์",
-       "underline" => "ขีดเส้นใต้ลิงก์",
-       "highlightbroken" => "จัดลิงก์ที่ไม่มี <a href=\"\" class=\"new\">เป็น
-ดังนี้</a> (หรือ เป็นดังนี้<a href=\"\" class=\"internal\">?</a>).",
-       "justify"       => "จัดย่อหน้าให้เรียบร้อย",
-       "hideminor" => "ไม่แสดงการแก้ไขย่อยใน recent changes",
-       "usenewrc" => "Enhanced recent changes (ไม่สามารถใช้ได้กับทุกเว็บบราวเซอร์)",
-       "numberheadings" => "ใส่ตัวเลขหน้าหัวข้อโดยอัตโนมัติ",
-       "showtoolbar" => "Show edit toolbar",
-       "editondblclick" => "แก้ไขหน้าโดยใช้ double click (ผ่าน JavaScript)",
-       "editsection"=>"สามารถแก้ไขเฉพาะส่วนโดยใช้ลิงก์ [แก้ไข]",
-       "editsectiononrightclick"=>"สามารถแก้ไขเฉพาะส่วนโดยใช้ right click<br> บนชื่อส่วนย่อย (ผ่าน JavaScript)",
-       "showtoc"=>"แสดงสารบัญ<br>(สำหรับบทความที่มีมากกว่า 3 หัวข้อ)",
-       "rememberpassword" => "จำ password ระหว่าง session",
-       "editwidth" => "กล่องสำหรับการแก้ไขกว้างเต็มหน้าจอ",
-       "watchdefault" => "นำหน้าที่แก้ไขไปใส่ watchlist",
-       "minordefault" => "กำหนด default ให้การแก้ไขทุกครั้งเป็นการแก้ไขย่อย",
-       "previewontop" => "แสดง preview ก่อนกล่องสำหรับการแก้ไข",
-       "nocache" => "ไม่นำหน้าต่าง ๆ มาใส่ใน cache"
-);
-
-/* private */ $wgWeekdayNamesTh = array(
-       "วันอาทิตย์", "วันจันทร์", "วันอังคาร", "วันพุธ", "วันพฤหัสบดี",
-       "วันศุกร์", "วันเสาร์"
+#      "No preference",
 );
 
-/* private */ $wgMonthNamesTh = array(
-       "มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน",
-       "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน",
-       "ธันวาคม"
-);
 
-/* private */ $wgMonthAbbreviationsTh = array(
-       "ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.",
-       "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."
-);
 
 # All special pages have to be listed here: a description of ""
 # will make them not show up on the "Special Pages" page, which
 #-------------------------------------------------------------------
 # Default messages
 #-------------------------------------------------------------------
-# Allowed characters in keys are: A-Z, a-z, 0-9, underscore (_) and 
+# Allowed characters in keys are: A-Z, a-z, 0-9, underscore (_) and
 # hyphen (-). If you need more characters, you may be able to change
 # the regex in MagicWord::initRegex
 
 /* private */ $wgAllMessagesTh = array(
 
+# User Toggles
+#
+
+"tog-underline" => "ขีดเส้นใต้ลิงก์",
+"tog-highlightbroken" => "จัดลิงก์ที่ไม่มี <a href=\"\" class=\"new\">เป็น ดังนี้</a> (หรือ เป็นดังนี้<a href=\"\" class=\"internal\">?</a>).",
+"tog-justify"  => "จัดย่อหน้าให้เรียบร้อย",
+"tog-hideminor" => "ไม่แสดงการแก้ไขย่อยใน recent changes",
+"tog-usenewrc" => "Enhanced recent changes (ไม่สามารถใช้ได้กับทุกเว็บบราวเซอร์)",
+"tog-numberheadings" => "ใส่ตัวเลขหน้าหัวข้อโดยอัตโนมัติ",
+"tog-showtoolbar" => "Show edit toolbar",
+"tog-editondblclick" => "แก้ไขหน้าโดยใช้ double click (ผ่าน JavaScript)",
+"tog-editsection"=>"สามารถแก้ไขเฉพาะส่วนโดยใช้ลิงก์ [แก้ไข]",
+"tog-editsectiononrightclick"=>"สามารถแก้ไขเฉพาะส่วนโดยใช้ right click<br /> บนชื่อส่วนย่อย (ผ่าน JavaScript)",
+"tog-showtoc"=>"แสดงสารบัญ<br />(สำหรับบทความที่มีมากกว่า 3 หัวข้อ)",
+"tog-rememberpassword" => "จำ password ระหว่าง session",
+"tog-editwidth" => "กล่องสำหรับการแก้ไขกว้างเต็มหน้าจอ",
+"tog-watchdefault" => "นำหน้าที่แก้ไขไปใส่ watchlist",
+"tog-minordefault" => "กำหนด default ให้การแก้ไขทุกครั้งเป็นการแก้ไขย่อย",
+"tog-previewontop" => "แสดง preview ก่อนกล่องสำหรับการแก้ไข",
+"tog-nocache" => "ไม่นำหน้าต่าง ๆ มาใส่ใน cache",
+
+
+# Dates
+#
+
+'sunday' => "วันอาทิตย์",
+'monday' => "วันจันทร์",
+'tuesday' => "วันอังคาร",
+'wednesday' => "วันพุธ",
+'thursday' => "วันพฤหัสบดี",
+'friday' => "วันศุกร์",
+'saturday' => "วันเสาร์",
+'january' => "มกราคม",
+'february' => "กุมภาพันธ์",
+'march' => "มีนาคม",
+'april' => "เมษายน",
+'may_long' => "พฤษภาคม",
+'june' => "มิถุนายน",
+'july' => "กรกฎาคม",
+'august' => "สิงหาคม",
+'september' => "กันยายน",
+'october' => "ตุลาคม",
+'november' => "พฤศจิกายน",
+'december' => "ธันวาคม",
+'jan' => "ม.ค.",
+'feb' => "ก.พ.",
+'mar' => "มี.ค.",
+'apr' => "เม.ย.",
+'may' => "พ.ค.",
+'jun' => "มิ.ย.",
+'jul' => "ก.ค.",
+'aug' => "ส.ค.",
+'sep' => "ก.ย.",
+'oct' => "ต.ค.",
+'nov' => "พ.ย.",
+'dec' => "ธ.ค.",
+
 # Bits of text used by many pages:
 #
 "categories" => "ประเภทของหน้า",
 "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"               => "ค้นหา",
@@ -249,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\"
@@ -286,7 +300,7 @@ Please report this to an administrator, making note of the URL.",
 "filedeleteerror" => "Could not delete file \"$1\".",
 "filenotfound" => "Could not find file \"$1\".",
 "unexpected"   => "Unexpected value: \"$1\"=\"$2\".",
-"formerror"            => "Error: could not submit form",      
+"formerror"            => "Error: could not submit form",
 "badarticleerror" => "This action cannot be performed on this page.",
 "cannotdelete" => "Could not delete the page or image specified. (It may have already been deleted by someone else.)",
 "badtitle"             => "Bad title",
@@ -296,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",
@@ -325,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 ได้",
@@ -341,8 +355,8 @@ Don't forget to personalize your wikipedia preferences.",
 "youremail"            => "อีเมล์ของคุณ*",
 "yournick"             => "Your nickname (for signatures)",
 "emailforlost" => "* Entering an email address is optional.  But it enables people to
-contact you through the website without you having to reveal your 
-email address to them, and it also helps you if you forget your   
+contact you through the website without you having to reveal your
+email address to them, and it also helps you if you forget your
 password.",
 "loginerror"   => "Login error",
 "nocookiesnew" => "The user account was created, but you are not logged in. $wgSitename uses cookies to log in users. You have cookies disabled. Please enable them, then log in with your new username and password.",
@@ -375,15 +389,15 @@ 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
-[[$wgMetaNamespace:Administrators|administrators]] to discuss the block. 
+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]]. 
+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]].
 
 Your IP address is $3. Please include this address in any queries you make.
 
 ==Note to AOL users==
-Due to continuing acts of vandalism by one particular AOL user, Wikipedia often blocks AOL proxies. Unfortunately, a single proxy server may be used by a large number of AOL users, and hence innocent AOL users are often inadvertently blocked. We apologise for any inconvenience caused. 
+Due to continuing acts of vandalism by one particular AOL user, Wikipedia often blocks AOL proxies. Unfortunately, a single proxy server may be used by a large number of AOL users, and hence innocent AOL users are often inadvertently blocked. We apologise for any inconvenience caused.
 
 If this happens to you, please email an administrator, using an AOL email address. Be sure to include the IP address given above.
 ",
@@ -398,7 +412,7 @@ If this happens to you, please email an administrator, using an AOL email addres
 "newarticle"   => "(New)",
 "newarticletext" =>
 "คุณได้ตามลิงก์ที่นำไปยังหน้าที่ยังไม่ปรากฏอยู่
-เพื่อเริ่มสร้างหน้าใหม่ พิมพ์ลงในกล่องข้างล่างนี้ 
+เพื่อเริ่มสร้างหน้าใหม่ พิมพ์ลงในกล่องข้างล่างนี้
 (ดู[[$wgMetaNamespace:ความช่วยเหลือ|หน้าความช่วยเหลือ]]สำหรับข้อมูลเพิ่มเติม)
 If you are here by mistake, just click your browser's '''back''' button.",
 "anontalkpagetext" => "---- ''This is the discussion page for an anonymous user who has not created an account yet or who does not use it. We therefore have to use the numerical [[IP address]] to identify him/her. Such an IP address can be shared by several users. If you are an anonymous user and feel that irrelevant comments have been directed at you, please [[Special:Userlogin|create an account or log in]] to avoid future confusion with other anonymous users.'' ",
@@ -409,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.
@@ -418,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
 #
@@ -472,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.
@@ -501,45 +512,26 @@ 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.
 
 See [[$wgMetaNamespace:User preferences help]] for help deciphering the options.",
 "prefsreset"   => "Preferences have been reset from storage.",
-"qbsettings"   => "Quickbar settings", 
+"qbsettings"   => "Quickbar settings",
 "changepassword" => "Change password",
 "skin"                 => "Skin",
 "math"                 => "Rendering math",
@@ -554,7 +546,7 @@ See [[$wgMetaNamespace:User preferences help]] for help deciphering the options.
 "oldpassword"  => "Old password",
 "newpassword"  => "New password",
 "retypenew"            => "Retype new password",
-"textboxsize"  => "Textbox dimensions",
+"textboxsize"  => "Editing",
 "rows"                 => "Rows",
 "columns"              => "Columns",
 "searchresultshead" => "Search result settings",
@@ -584,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",
@@ -606,42 +597,9 @@ 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",
-"uploadtext"   => "<strong>STOP!</strong> Before you upload here,
-make sure to read and follow the <a href=\"" .
-wfLocalUrlE( "$wgMetaNamespace:Image_use_policy" ) . "\">image use policy</a>.
-<p>If a file with the name you are specifying already
-exists on the wiki, it'll be replaced without warning.
-So unless you mean to update a file, it's a good idea
-to first check if such a file exists.
-<p>To view or search previously uploaded images,
-go to the <a href=\"" . wfLocalUrlE( "Special:Imagelist" ) .
-"\">list of uploaded images</a>.
-Uploads and deletions are logged on the <a href=\"" .
-wfLocalUrlE( "$wgMetaNamespace:Upload_log" ) . "\">upload log</a>.
-<p>Use the form below to upload new image files for use in
-illustrating your articles.
-On most browsers, you will see a \"Browse...\" button, which will
-bring up your operating system's standard file open dialog.
-Choosing a file will fill the name of that file into the text
-field next to the button.
-You must also check the box affirming that you are not
-violating any copyrights by uploading the file.
-Press the \"Upload\" button to finish the upload.
-This may take some time if you have a slow internet connection.
-<p>The preferred formats are JPEG for photographic images, PNG
-for drawings and other iconic images, and OGG for sounds.
-Please name your files descriptively to avoid confusion.
-To include the image in an article, use a link in the form
-<b>[[image:file.jpg]]</b> or <b>[[image:file.png|alt text]]</b>
-or <b>[[media:file.ogg]]</b> for sounds.
-<p>Please note that as with wiki pages, others may edit or
-delete your uploads if they think it serves the encyclopedia, and
-you may be blocked from uploading if you abuse the system.",
 
 "uploadlog"            => "upload log",
 "uploadlogpage" => "Upload_log",
@@ -673,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",
@@ -693,9 +649,10 @@ created and by whom, and anything else you may know about it.",
 "imghistory"   => "Image history",
 "revertimg"            => "rev",
 "deleteimg"            => "del",
+"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.",
@@ -723,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",
@@ -751,7 +708,7 @@ That comes to <b>$5</b> average edits per page, and <b>$6</b> views per edit.",
 "randompage"   => "Random page",
 "shortpages"   => "Short pages",
 "longpages"            => "Long pages",
-"deadendpages"  => "Dead-end pages",                                  
+"deadendpages"  => "Dead-end pages",
 "listusers"            => "User list",
 "specialpages" => "Special pages",
 "spheading"            => "Special pages for all users",
@@ -781,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",
@@ -810,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.",
@@ -861,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.",
@@ -881,11 +834,11 @@ All times shown are server time (UTC).
 "rollbackfailed" => "Rollback failed",
 "cantrollback" => "Cannot revert edit; last contributor is only author of this article.",
 "alreadyrolled"        => "Cannot rollback last edit of [[$1]]
-by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled back the article already. 
+by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled back the article already.
 
 Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ",
 #   only shown if there is an edit comment
-"editcomment" => "The edit comment was: \"<i>$1</i>\".", 
+"editcomment" => "The edit comment was: \"<i>$1</i>\".",
 "revertpage"   => "Reverted to last edit by $1",
 "protectlogpage" => "Protection_log",
 "protectlogtext" => "Below is a list of page locks/unlocks.
@@ -947,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.",
@@ -961,7 +914,7 @@ to a previously blocked IP address or username.",
 "autoblocker"  => "Autoblocked because you share an IP address with \"$1\". Reason \"$2\".",
 "blocklogpage" => "Block_log",
 "blocklogentry"        => 'blocked "$1"',
-"blocklogtext" => "This is a log of user blocking and unblocking actions. Automatically 
+"blocklogtext" => "This is a log of user blocking and unblocking actions. Automatically
 blocked IP addresses are not be listed. See the [[Special:Ipblocklist|IP block list]] for
 the list of currently operational bans and blocks.",
 "unblocklogentry"      => 'unblocked "$1"',
@@ -987,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
@@ -1011,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.
 
@@ -1033,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",
@@ -1061,14 +1013,23 @@ amusement.",
 # Namespace 8 related
 
 "allmessages"  => "All_messages",
-"allmessagestext"      => "This is a list of all messages available in the MediaWiki: namespace"
+"allmessagestext"      => "This is a list of all messages available in the MediaWiki: namespace",
+
+# Math options
+'mw_math_png' => 'Always render PNG',
+'mw_math_simple' => 'HTML if very simple or else PNG',
+'mw_math_html' => 'HTML if possible or else PNG',
+'mw_math_source' => 'Leave it as TeX (for text browsers)',
+'mw_math_modern' => 'Recommended for modern browsers',
+'mw_math_mathml' => 'MathML if possible (experimental)',
+
 );
 
 #--------------------------------------------------------------------------
 # Internationalisation code
 #--------------------------------------------------------------------------
 
-include_once( "LanguageUtf8.php" );
+require_once( "LanguageUtf8.php" );
 
 class LanguageTh extends LanguageUtf8 {
 
@@ -1101,39 +1062,11 @@ class LanguageTh extends LanguageUtf8 {
                return $wgSkinNamesTh;
        }
 
-       function getMathNames() {
-               global $wgMathNamesTh;
-               return $wgMathNamesTh;
-       }
-       
        function getDateFormats() {
                global $wgDateFormatsTh;
                return $wgDateFormatsTh;
        }
 
-       function getUserToggles() {
-               global $wgUserTogglesTh;
-               return $wgUserTogglesTh;
-       }
-
-       function getMonthName( $key )
-       {
-               global $wgMonthNamesTh;
-               return $wgMonthNamesTh[$key-1];
-       }
-
-       function getMonthAbbreviation( $key )
-       {
-               global $wgMonthAbbreviationsTh;
-               return $wgMonthAbbreviationsTh[$key-1];
-       }
-
-       function getWeekdayName( $key )
-       {
-               global $wgWeekdayNamesTh;
-               return $wgWeekdayNamesTh[$key-1];
-       }
-
        function getValidSpecialPages()
        {
                global $wgValidSpecialPagesTh;
@@ -1155,9 +1088,13 @@ 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()
        {
                global $wgAllMessagesTh;