CINXE.COM
คู่มือ:ภาษา - MediaWiki
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-disabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref--excluded vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>คู่มือ:ภาษา - MediaWiki</title> <script>(function(){var className="client-js vector-feature-language-in-header-disabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref--excluded vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )mediawikiwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""], "wgDefaultDateFormat":"thai","wgMonthNames":["","มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],"wgRequestId":"d96db12b-9ee3-4ba5-b13d-15b47924c46b","wgCanonicalNamespace":"Manual","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":100,"wgPageName":"Manual:Language/th","wgTitle":"Language/th","wgCurRevisionId":6815153,"wgRevisionId":6815153,"wgArticleId":1551856,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Localisation/th"],"wgPageViewLanguage":"th","wgPageContentLanguage":"th","wgPageContentModel":"wikitext","wgRelevantPageName":"Manual:Language/th","wgRelevantArticleId":1551856,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[], "wgRestrictionMove":[],"wgNoticeProject":"mediawiki","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"th","pageLanguageDir":"ltr","pageVariantFallbacks":"th"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":40000,"wgTranslatePageTranslation":"translation","wgCentralAuthMobileDomain":false,"wgVisualEditorDisabledByHook":true,"wgULSPosition":"personal","wgULSisCompactLinksEnabled":true,"wgVector2022LanguageInHeader":false,"wgULSisLanguageSelectorEmpty":false,"wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"]};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.translate.tag.languages": "ready","ext.cite.styles":"ready","ext.pygments":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.translate":"ready","ext.wikimediamessages.styles":"ready","ext.uls.pt":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.cite.ux-enhancements","ext.pygments.view","mediawiki.page.media","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.translate.pagetranslation.uls","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.compactlinks","ext.uls.interface","ext.checkUser.clientHints"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&modules=ext.cite.styles%7Cext.pygments%2Ctranslate%2CwikimediaBadges%7Cext.translate.tag.languages%7Cext.uls.pt%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:site_name" content="MediaWiki"> <meta property="og:title" content="คู่มือ:ภาษา - MediaWiki"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//m.mediawiki.org/wiki/Manual:Language/th"> <link rel="alternate" type="application/x-wiki" title="Edit" href="/w/index.php?title=Manual:Language/th&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/mediawiki.png"> <link rel="icon" href="/static/favicon/mediawiki.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="MediaWiki (en)"> <link rel="EditURI" type="application/rsd+xml" href="//www.mediawiki.org/w/api.php?action=rsd"> <link rel="canonical" href="https://www.mediawiki.org/wiki/Manual:Language/th"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"> <link rel="alternate" type="application/atom+xml" title="MediaWiki Atom feed" href="/w/index.php?title=Special:RecentChanges&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-100 ns-subject mw-editable page-Manual_Language_th rootpage-Manual_Language skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/MediaWiki" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-mw-download" class="mw-list-item"><a href="/wiki/Download"><span>Get MediaWiki</span></a></li><li id="n-mw-extensions" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Category:Extensions"><span>Get extensions</span></a></li><li id="n-blog-text" class="mw-list-item"><a href="https://techblog.wikimedia.org/"><span>Tech blog</span></a></li><li id="n-mw-contribute" class="mw-list-item"><a href="/wiki/Special:MyLanguage/How_to_contribute"><span>Contribute</span></a></li> </ul> </div> </div> <div id="p-support" class="vector-menu mw-portlet mw-portlet-support" > <div class="vector-menu-heading"> Support </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Help:Contents" title="The place to find out"><span>User help</span></a></li><li id="n-mw-faq" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Manual:FAQ"><span>FAQ</span></a></li><li id="n-mw-manual" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Manual:Contents"><span>Technical manual</span></a></li><li id="n-mw-supportdesk" class="mw-list-item"><a href="/wiki/Project:Support_desk"><span>Support desk</span></a></li><li id="n-mw-communication" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Communication"><span>Communication</span></a></li> </ul> </div> </div> <div id="p-development" class="vector-menu mw-portlet mw-portlet-development" > <div class="vector-menu-heading"> Development </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mw-developerportal" class="mw-list-item"><a href="https://developer.wikimedia.org/"><span>Developer portal</span></a></li><li id="n-svn-statistics" class="mw-list-item"><a href="/wiki/Development_statistics"><span>Code statistics</span></a></li> </ul> </div> </div> <div id="p-mediawiki.org" class="vector-menu mw-portlet mw-portlet-mediawiki_org" > <div class="vector-menu-heading"> mediawiki.org </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-portal" class="mw-list-item"><a href="/wiki/Project:Help" title="About the project, what you can do, where to find things"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-mw-translate" class="mw-list-item"><a href="/wiki/Special:LanguageStats"><span>Translate content</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Load a random page [x]" accesskey="x"><span>Random page</span></a></li><li id="n-mw-discussion" class="mw-list-item"><a href="/wiki/Project:Village_Pump"><span>Village pump</span></a></li><li id="n-Sandboxlink-portlet-label" class="mw-list-item"><a href="/wiki/Project:Sandbox"><span>Sandbox</span></a></li> </ul> </div> </div> <div id="p-lang" class="vector-menu mw-portlet mw-portlet-lang" > <div class="vector-menu-heading"> In other languages </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-add wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:NewItem?site=mediawikiwiki&page=Manual%3ALanguage%2Fth" title="Add interlanguage links" class="wbc-editpage">Add links</a></span></div> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/MediaWiki" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/mediawikiwiki.svg" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="MediaWiki" src="/static/images/mobile/copyright/mediawikiwiki-wordmark.svg" style="width: 7.5em; height: 1.125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search MediaWiki [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search MediaWiki" aria-label="Search MediaWiki" autocapitalize="sentences" title="Search MediaWiki [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-uls" class="mw-list-item active user-links-collapsible-item"><a data-mw="interface" href="#" class="uls-trigger cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>English</span></a> </li> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page's font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/?utm_source=donate&utm_medium=sidebar&utm_campaign=spontaneous&uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&returnto=Manual%3ALanguage%2Fth" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&returnto=Manual%3ALanguage%2Fth" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="More options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/?utm_source=donate&utm_medium=sidebar&utm_campaign=spontaneous&uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&returnto=Manual%3ALanguage%2Fth" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&returnto=Manual%3ALanguage%2Fth" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">Beginning</div> </a> </li> <li id="toc-รหัสภาษา" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#รหัสภาษา"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>รหัสภาษา</span> </div> </a> <ul id="toc-รหัสภาษา-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Names.php" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Names.php"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Names.php</span> </div> </a> <ul id="toc-Names.php-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-ภาษาสำรอง" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#ภาษาสำรอง"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>ภาษาสำรอง</span> </div> </a> <ul id="toc-ภาษาสำรอง-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-ภาษาของเนื้อหาเว็บไซต์" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#ภาษาของเนื้อหาเว็บไซต์"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>ภาษาของเนื้อหาเว็บไซต์</span> </div> </a> <ul id="toc-ภาษาของเนื้อหาเว็บไซต์-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-ภาษาอินเทอร์เฟซผู้ใช้" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#ภาษาอินเทอร์เฟซผู้ใช้"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>ภาษาอินเทอร์เฟซผู้ใช้</span> </div> </a> <ul id="toc-ภาษาอินเทอร์เฟซผู้ใช้-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-ภาษาเนื้อหาของหน้า" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#ภาษาเนื้อหาของหน้า"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>ภาษาเนื้อหาของหน้า</span> </div> </a> <ul id="toc-ภาษาเนื้อหาของหน้า-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-โครงสร้างโค้ด" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#โครงสร้างโค้ด"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>โครงสร้างโค้ด</span> </div> </a> <button aria-controls="toc-โครงสร้างโค้ด-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle โครงสร้างโค้ด subsection</span> </button> <ul id="toc-โครงสร้างโค้ด-sublist" class="vector-toc-list"> <li id="toc-Language_objects" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Language_objects"> <div class="vector-toc-text"> <span class="vector-toc-numb">7.1</span> <span>Language objects</span> </div> </a> <ul id="toc-Language_objects-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Old_local_translation_system" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Old_local_translation_system"> <div class="vector-toc-text"> <span class="vector-toc-numb">8</span> <span>Old local translation system</span> </div> </a> <ul id="toc-Old_local_translation_system-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Keeping_messages_centralised_and_in_sync" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Keeping_messages_centralised_and_in_sync"> <div class="vector-toc-text"> <span class="vector-toc-numb">9</span> <span>Keeping messages centralised and in sync</span> </div> </a> <ul id="toc-Keeping_messages_centralised_and_in_sync-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-What_can_be_localised" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#What_can_be_localised"> <div class="vector-toc-text"> <span class="vector-toc-numb">10</span> <span>What can be localised</span> </div> </a> <button aria-controls="toc-What_can_be_localised-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle What can be localised subsection</span> </button> <ul id="toc-What_can_be_localised-sublist" class="vector-toc-list"> <li id="toc-เนมสเปซ" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#เนมสเปซ"> <div class="vector-toc-text"> <span class="vector-toc-numb">10.1</span> <span>เนมสเปซ</span> </div> </a> <ul id="toc-เนมสเปซ-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-นามแฝงหน้าพิเศษ" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#นามแฝงหน้าพิเศษ"> <div class="vector-toc-text"> <span class="vector-toc-numb">10.2</span> <span>นามแฝงหน้าพิเศษ</span> </div> </a> <ul id="toc-นามแฝงหน้าพิเศษ-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Namespace_name_aliases" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Namespace_name_aliases"> <div class="vector-toc-text"> <span class="vector-toc-numb">10.3</span> <span>Namespace name aliases</span> </div> </a> <ul id="toc-Namespace_name_aliases-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-การตั้งค่าภูมิภาค" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#การตั้งค่าภูมิภาค"> <div class="vector-toc-text"> <span class="vector-toc-numb">10.4</span> <span>การตั้งค่าภูมิภาค</span> </div> </a> <ul id="toc-การตั้งค่าภูมิภาค-sublist" class="vector-toc-list"> <li id="toc-Time_and_date_formats" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Time_and_date_formats"> <div class="vector-toc-text"> <span class="vector-toc-numb">10.4.1</span> <span>Time and date formats</span> </div> </a> <ul id="toc-Time_and_date_formats-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </li> <li id="toc-หมายเหตุ" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#หมายเหตุ"> <div class="vector-toc-text"> <span class="vector-toc-numb">11</span> <span>หมายเหตุ</span> </div> </a> <ul id="toc-หมายเหตุ-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-ดูเพิ่ม" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#ดูเพิ่ม"> <div class="vector-toc-text"> <span class="vector-toc-numb">12</span> <span>ดูเพิ่ม</span> </div> </a> <ul id="toc-ดูเพิ่ม-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading">คู่มือ:ภาษา</h1> <div class="mw-indicators"> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-manual" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Manual:Language/th" title="View the subject page [c]" accesskey="c"><span>Manual</span></a></li><li id="ca-talk" class="new vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Manual_talk:Language/th&action=edit&redlink=1" rel="discussion" class="new" title="Discussion about the content page (page does not exist) [t]" accesskey="t"><span>Discussion</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">ไทย</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Manual:Language/th"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Special:Translate&group=page-Manual%3ALanguage&action=page&filter=&language=th" title="Edit this page [e]" accesskey="e"><span>Translate</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Manual:Language/th&action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Manual:Language/th"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:Translate&group=page-Manual%3ALanguage&action=page&filter=&language=th" title="Edit this page [e]" accesskey="e"><span>Translate</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Manual:Language/th&action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Manual:Language/th" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Manual:Language/th" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Manual:Language/th&oldid=6815153" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Manual:Language/th&action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&page=Manual%3ALanguage%2Fth&id=6815153&wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FManual%3ALanguage%2Fth"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FManual%3ALanguage%2Fth"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=Special:Book&bookcmd=book_creator&referer=Manual%3ALanguage%2Fth"><span>Create a book</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&page=Manual%3ALanguage%2Fth&action=show-download-screen"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Manual:Language/th&printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects emptyPortlet" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div id="siteSub" class="noprint">From mediawiki.org</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-pt-translate-header noprint" dir="ltr" lang="en">This page is a <span class="plainlinks"><a class="external text" href="https://www.mediawiki.org/w/index.php?title=Special:Translate&group=page-Manual%3ALanguage&action=page&filter=&language=th">translated version</a></span> of the page <a href="/wiki/Manual:Language" title="Manual:Language">Manual:Language</a> and the translation is 38% complete.</div><div class="mw-pt-translate-header" dir="ltr" lang="en"><span class="mw-translate-fuzzy">Outdated translations are marked like this.</span></div><div class="mw-content-ltr mw-parser-output" lang="th" dir="ltr"><div class="mw-pt-languages noprint navigation-not-searchable" lang="en" dir="ltr"><div class="mw-pt-languages-label">Languages:</div><ul class="mw-pt-languages-list"><li><a href="/wiki/Manual:Language/id" class="mw-pt-progress mw-pt-progress--low" title="Manual:Bahasa (5% translated)" lang="id" dir="ltr">Bahasa Indonesia</a></li> <li><a href="/wiki/Manual:Language/de" class="mw-pt-progress mw-pt-progress--low" title="Handbuch:Sprache (14% translated)" lang="de" dir="ltr">Deutsch</a></li> <li><a href="/wiki/Manual:Language" class="mw-pt-languages-ui mw-pt-progress mw-pt-progress--complete" title="Manual:Language (100% translated)" lang="en" dir="ltr">English</a></li> <li><a href="/wiki/Manual:Language/nl" class="mw-pt-progress mw-pt-progress--complete" title="Handleiding:Language (100% translated)" lang="nl" dir="ltr">Nederlands</a></li> <li><a href="/wiki/Manual:Language/ca" class="mw-pt-progress mw-pt-progress--low" title="Manual:Language (4% translated)" lang="ca" dir="ltr">català</a></li> <li><a href="/wiki/Manual:Language/da" class="mw-pt-progress mw-pt-progress--low" title="Manual:Language/da (2% translated)" lang="da" dir="ltr">dansk</a></li> <li><a href="/wiki/Manual:Language/es" class="mw-pt-progress mw-pt-progress--low" title="Manual:Idioma (8% translated)" lang="es" dir="ltr">español</a></li> <li><a href="/wiki/Manual:Language/fr" class="mw-pt-progress mw-pt-progress--complete" title="Manuel:Langue (100% translated)" lang="fr" dir="ltr">français</a></li> <li><a href="/wiki/Manual:Language/hu" class="mw-pt-progress mw-pt-progress--med" title="Kézikönyv:Nyelv (15% translated)" lang="hu" dir="ltr">magyar</a></li> <li><a href="/wiki/Manual:Language/pl" class="mw-pt-progress mw-pt-progress--low" title="Podręcznik:Język (7% translated)" lang="pl" dir="ltr">polski</a></li> <li><a href="/wiki/Manual:Language/pt" class="mw-pt-progress mw-pt-progress--med" title="Manual:Idioma (26% translated)" lang="pt" dir="ltr">português</a></li> <li><a href="/wiki/Manual:Language/pt-br" class="mw-pt-progress mw-pt-progress--low" title="Manual:Idiomas (12% translated)" lang="pt-BR" dir="ltr">português do Brasil</a></li> <li><a href="/wiki/Manual:Language/fi" class="mw-pt-progress mw-pt-progress--low" title="Manual:Language/fi (1% translated)" lang="fi" dir="ltr">suomi</a></li> <li><a href="/wiki/Manual:Language/sv" class="mw-pt-progress mw-pt-progress--low" title="Manual:Språk (7% translated)" lang="sv" dir="ltr">svenska</a></li> <li><a href="/wiki/Manual:Language/cs" class="mw-pt-progress mw-pt-progress--complete" title="Příručka:Jazyk (100% translated)" lang="cs" dir="ltr">čeština</a></li> <li><a href="/wiki/Manual:Language/be" class="mw-pt-progress mw-pt-progress--low" title="Інструкцыя:Мова (4% translated)" lang="be" dir="ltr">беларуская</a></li> <li><a href="/wiki/Manual:Language/be-tarask" class="mw-pt-progress mw-pt-progress--low" title="Інструкцыя:Мова (4% translated)" lang="be-tarask" dir="ltr">беларуская (тарашкевіца)</a></li> <li><a href="/wiki/Manual:Language/ru" class="mw-pt-progress mw-pt-progress--med" title="Руководство:Язык (17% translated)" lang="ru" dir="ltr">русский</a></li> <li><a href="/wiki/Manual:Language/uk" class="mw-pt-progress mw-pt-progress--low" title="Мова (7% translated)" lang="uk" dir="ltr">українська</a></li> <li><a href="/wiki/Manual:Language/azb" class="mw-pt-progress mw-pt-progress--low" title="کؤمک:دیل (2% translated)" lang="azb" dir="rtl">تۆرکجه</a></li> <li><a href="/wiki/Manual:Language/fa" class="mw-pt-progress mw-pt-progress--low" title="Manual:زبان (3% translated)" lang="fa" dir="rtl">فارسی</a></li> <li><a href="/wiki/Manual:Language/ps" class="mw-pt-progress mw-pt-progress--low" title="Manual:ژبه (4% translated)" lang="ps" dir="rtl">پښتو</a></li> <li><a href="/wiki/Manual:Language/gu" class="mw-pt-progress mw-pt-progress--low" title="Manual:Language/gu (1% translated)" lang="gu" dir="ltr">ગુજરાતી</a></li> <li><span class="mw-pt-languages-selected mw-pt-progress mw-pt-progress--med" lang="th" dir="ltr">ไทย</span></li> <li><a href="/wiki/Manual:Language/zh" class="mw-pt-progress mw-pt-progress--high" title="Manual: (93% translated)" lang="zh" dir="ltr">中文</a></li> <li><a href="/wiki/Manual:Language/ja" class="mw-pt-progress mw-pt-progress--med" title="Manual:言語 (52% translated)" lang="ja" dir="ltr">日本語</a></li> <li><a href="/wiki/Manual:Language/ko" class="mw-pt-progress mw-pt-progress--low" title="매뉴얼:언어 (5% translated)" lang="ko" dir="ltr">한국어</a></li></ul></div> <style data-mw-deduplicate="TemplateStyles:r6651103">.mw-parser-output .nmbox{background:#f8f9fa;border:1px solid #AAA;box-sizing:border-box;margin:2px 0;padding:0}.mw-parser-output .nmbox *{box-sizing:border-box}.mw-parser-output .nmbox-header{background:#eaecf0;padding:4px 0.5em;font-weight:bold;text-align:center;white-space:nowrap}.mw-parser-output .nmbox .mbox-image{display:inline-block;padding-right:1em}.mw-parser-output .nmbox-text{border-top:1px solid #AAA;width:100%;padding:4px 0.5em}@media screen and (min-width:768px){.mw-parser-output .nmbox-header{display:table-cell;border-right:1px solid #AAA;width:1%}.mw-parser-output .nmbox-text{border-top:none;display:table-cell}}@media screen{html.skin-theme-clientpref-night .mw-parser-output .nmbox-header,html.skin-theme-clientpref-night .mw-parser-output .nmbox{background:transparent;color:inherit}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .nmbox-header,html.skin-theme-clientpref-os .mw-parser-output .nmbox{background:transparent;color:inherit}}</style> <div class="nmbox noprint mw-content-ltr"><div class="nmbox-header">i18n docs </div> <div class="nmbox-text mbox-text"><style data-mw-deduplicate="TemplateStyles:r6387430">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li,.mw-parser-output .hlist .mw-empty-elt{display:none}.mw-parser-output .hlist dt:after{content:": "}.mw-parser-output .hlist dd:after,.mw-parser-output .hlist li:after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child:after,.mw-parser-output .hlist dt:last-child:after,.mw-parser-output .hlist li:last-child:after{content:none}.mw-parser-output .hlist dd dd:first-child:before,.mw-parser-output .hlist dd dt:first-child:before,.mw-parser-output .hlist dd li:first-child:before,.mw-parser-output .hlist dt dd:first-child:before,.mw-parser-output .hlist dt dt:first-child:before,.mw-parser-output .hlist dt li:first-child:before,.mw-parser-output .hlist li dd:first-child:before,.mw-parser-output .hlist li dt:first-child:before,.mw-parser-output .hlist li li:first-child:before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child:after,.mw-parser-output .hlist dd dt:last-child:after,.mw-parser-output .hlist dd li:last-child:after,.mw-parser-output .hlist dt dd:last-child:after,.mw-parser-output .hlist dt dt:last-child:after,.mw-parser-output .hlist dt li:last-child:after,.mw-parser-output .hlist li dd:last-child:after,.mw-parser-output .hlist li dt:last-child:after,.mw-parser-output .hlist li li:last-child:after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li:before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child:before,.mw-parser-output .hlist dt ol>li:first-child:before,.mw-parser-output .hlist li ol>li:first-child:before{content:" ("counter(listitem)"\a0 "}</style><div class="hlist"> <ul><li><a href="/wiki/Special:MyLanguage/Localisation" title="Special:MyLanguage/Localisation">เทศน์วิวัฒน์</a><span style="display:none"><a href="/wiki/Localisation" title="Localisation"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Help:System_message" title="Special:MyLanguage/Help:System message">System message</a><span style="display:none"><a href="/wiki/Help:System_message" title="Help:System message"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Manual:Messages_API" title="Special:MyLanguage/Manual:Messages API">Messages API</a><span style="display:none"><a href="/wiki/Manual:Messages_API" title="Manual:Messages API"> </a></span></li> <li><b><a href="/wiki/Special:MyLanguage/Manual:Language" title="Special:MyLanguage/Manual:Language">ภาษา</a></b><span style="display:none"><a href="/wiki/Manual:Language" title="Manual:Language"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/translatewiki.net" title="Special:MyLanguage/translatewiki.net">translatewiki.net</a><span style="display:none"><a href="/wiki/Translatewiki.net" title="Translatewiki.net"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Writing_systems" title="Special:MyLanguage/Writing systems">Writing systems</a><span style="display:none"><a href="/wiki/Writing_systems" title="Writing systems"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Directionality_support" title="Special:MyLanguage/Directionality support">Directionality</a><span style="display:none"><a href="/wiki/Directionality_support" title="Directionality support"> </a></span></li></ul> </div></div> </div> <div style="clear: right; margin-bottom: .5em; float: right; margin-left:2em; width: auto;"><meta property="mw:PageProp/toc" /></div> <dl><dd><i>ดูเพิ่มเติมที่ <a href="/wiki/Special:MyLanguage/Manual:MediaWiki_architecture#Languages" title="Special:MyLanguage/Manual:MediaWiki architecture">Manual:MediaWiki architecture#Languages</a> (ควรรวมไว้ที่นี่หรือไม่)</i></dd></dl> <p>ในมีเดียวิกิ มีภาษาหลายประเภท: </p> <ul><li><b>ภาษาเนื้อหาของไซต์</b> ($บริการ ContLang เป็น <code>MediaWiki\MediaWikiServices::getContentLanguage</code> ตาม <code><a href="/wiki/Special:MyLanguage/Manual:$wgLanguageCode" title="Special:MyLanguage/Manual:$wgLanguageCode">$wgLanguageCode</a><span style="display:none"><a href="/wiki/Manual:$wgLanguageCode" title="Manual:$wgLanguageCode"> </a></span></code>) ซึ่งโดยทั่วไปแล้วควรจะเหมือนเดิมตราบใดที่วิกิยังมีอยู่ <ul><li><b>ตัวแปรภาษาของเนื้อหาไซต์</b> (<a href="/wiki/Special:MyLanguage/Manual:$wgDefaultLanguageVariant" title="Special:MyLanguage/Manual:$wgDefaultLanguageVariant">$wgDefaultLanguageVariant</a><span style="display:none"><a href="/wiki/Manual:$wgDefaultLanguageVariant" title="Manual:$wgDefaultLanguageVariant"> </a></span>) เป็นรูปแบบเริ่มต้นเมื่อมีการใช้งาน <a href="/wiki/Special:MyLanguage/LanguageConverter" title="Special:MyLanguage/LanguageConverter">LanguageConverter</a><span style="display:none"><a href="/wiki/LanguageConverter" class="mw-redirect" title="LanguageConverter"> </a></span> สำหรับภาษานั้น</li></ul></li> <li><b>ภาษาอินเทอร์เฟซผู้ใช้</b> (<a href="/wiki/Special:MyLanguage/Manual:RequestContext" title="Special:MyLanguage/Manual:RequestContext">$contextSource->getLanguage()</a> เดิมคือ <code><a href="/wiki/Special:MyLanguage/Manual:$wgLang" title="Special:MyLanguage/Manual:$wgLang">$wgLang</a><span style="display:none"><a href="/wiki/Manual:$wgLang" title="Manual:$wgLang"> </a></span></code>) ซึ่งสามารถเปลี่ยนแปลงได้ตามต้องการหรือด้วย <code>&uselang=xyz</code> ใน URL แต่โดยทั่วไปยังคงเหมือนเดิมในขณะที่ใช้วิกิ</li></ul> <div class="mw-translate-fuzzy"> <ul><li><b>ภาษาเนื้อหาของหน้า</b> อาจแตกต่างกันไปในแต่ละหน้า แม้ว่าไซต์และภาษาของผู้ใช้จะเหมือนกันก็ตาม มีการกำหนดไว้ใน getPageLanguage() ใน <a href="/wiki/Special:MyLanguage/Manual:Title.php" title="Special:MyLanguage/Manual:Title.php">Title</a> ซึ่งแสดงถึงภาษาที่ต้นฉบับข้อความวิกิเขียน</li></ul> </div> <div class="mw-translate-fuzzy"> <ul><li><ul><li><b>ภาษามุมมองหน้า</b> หรือที่รู้จักกันในชื่อ <b>ตัวแปรภาษาของผู้ใช้</b> ซึ่งเป็นตัวแปรภาษาของภาษาเนื้อหาของหน้าตามที่ผู้ใช้ต้องการ นอกจากนี้ยังสามารถตั้งค่าผ่านรหัส & ตัวแปร / รหัส (หรือ$VariantArticlePath) ใน URL (เช่นโดยการเลือกแท็บใดแท็บหนึ่ง) <b>ถ้า</b> มันเป็นตัวแปรของภาษาเนื้อหาของหน้าที่กําลังดู มันถูกกําหนดไว้ใน getPageViewLanguage() ใน <a href="/w/index.php?title=$title&action=edit&redlink=1" class="new" title="$title (page does not exist)"> ชื่อเรื่อง</a>, ซึ่งแสดงภาษาที่เนื้อหา HTML ที่แสดงถูกเขียนขึ้น</li></ul></li></ul> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">It can also be set through <code>&variant</code> (or <code><a href="/wiki/Special:MyLanguage/Manual:$wgVariantArticlePath" title="Special:MyLanguage/Manual:$wgVariantArticlePath">$wgVariantArticlePath</a><span style="display:none"><a href="/wiki/Manual:$wgVariantArticlePath" title="Manual:$wgVariantArticlePath"> </a></span></code>) in the URL (e.g. by selecting one of the tabs) <b>if</b> it is a variant of the content language of the page being viewed.</span> </p><div lang="en" dir="ltr" class="mw-content-ltr"> <p>It's defined in getPageViewLanguage() in <a href="/wiki/Special:MyLanguage/Manual:Title.php" title="Special:MyLanguage/Manual:Title.php">Title</a>, representing what language the rendered HTML content is written in. </p> </div> <p>ทั้งสามนั้นเป็น <a href="/wiki/Special:MyLanguage/language_object" title="Special:MyLanguage/language object">language objects</a> </p><p><span id="Language_code"></span> </p> <div class="mw-heading mw-heading2"><h2 id="รหัสภาษา"><span id=".E0.B8.A3.E0.B8.AB.E0.B8.B1.E0.B8.AA.E0.B8.A0.E0.B8.B2.E0.B8.A9.E0.B8.B2"></span>รหัสภาษา</h2></div> <dl><dd><i>เพื่อไม่ให้สับสนกับ <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Special_language_codes" class="extiw" title="m:Special:MyLanguage/Special language codes">รหัสโครงการวิกิมีเดีย</a>; ดูเพิ่มเติมที่ <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Language_codes" class="extiw" title="m:Special:MyLanguage/Language codes">รหัสภาษา</a> บนเมทา</i></dd></dl> <p><span class="mw-translate-fuzzy">รหัสภาษาเป็นตัวย่อมาตรฐานที่ถูกต้องสำหรับภาษาที่สนับสนุนโดยมีเดียวิกิ<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> ซึ่งใช้รหัสดังกล่าวเป็นตัวระบุมาตรฐานสำหรับภาษาต่างๆ (ส่วนใหญ่เป็นไปตาม <a href="https://en.wikipedia.org/wiki/ISO_639" class="extiw" title="w:ISO 639">ISO 639-3</a> ยกเว้นรหัสสองตัวอักษรจาก ISO 639-1 สำหรับโลแคล "ที่จัดตั้งขึ้น") และเปิดเผยหรือกำหนดให้ใช้ในหลายจุดของอินเทอร์เฟซและโค้ด</span><sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> </p><p>สำหรับตัวอย่างด้านล่าง, <code>MediaWiki:Message/ar</code>, <code>ar</code> เป็นรหัสภาษาสำหรับ Arabic </p><p>ความสม่ําเสมอกับมาตรฐาน Unicode เป็นสิ่งจำเป็นเพื่อให้การสนับสนุนภาษาที่ดี โดยเฉพาะอย่างยิ่งในการร่วมมือกับ <a href="https://translatewiki.net/wiki/CLDR" class="extiw" title="translatewiki:CLDR">CLDR</a>; การมีรหัส ISO 639-3 เป็นหนึ่ง <a href="https://translatewiki.net/wiki/Translatewiki.net_languages#Policy_on_enabling_translation_into_a_language" class="extiw" title="translatewiki:Translatewiki.net languages">ข้อกำหนดสำหรับภาษาที่จะเพิ่มไปยังตำแหน่งที่ตั้งมีเดียวิกิ</a> </p><p>There are some special language codes for internal or development use: <code>qqq</code> (for message documentation, does not work with <code>uselang</code> etc.), <code>qqx</code> (shows message names for debugging), <code>en-x-rtl</code> (English, but pretends it is a right-to-left language), <code>en-x-piglatin</code> (when <code><a href="/wiki/Special:MyLanguage/Manual:$wgUsePigLatinVariant" title="Special:MyLanguage/Manual:$wgUsePigLatinVariant">$wgUsePigLatinVariant</a><span style="display:none"><a href="/wiki/Manual:$wgUsePigLatinVariant" title="Manual:$wgUsePigLatinVariant"> </a></span></code> is enabled, for <a href="/wiki/LanguageConverter" class="mw-redirect" title="LanguageConverter">LanguageConverter</a> testing), <code>x-xss</code> (when <code><a href="/wiki/Special:MyLanguage/Manual:$wgUseXssLanguage" title="Special:MyLanguage/Manual:$wgUseXssLanguage">$wgUseXssLanguage</a><span style="display:none"><a href="/wiki/Manual:$wgUseXssLanguage" title="Manual:$wgUseXssLanguage"> </a></span></code> is enabled, tests XSS vulnerabilities in messages). </p> <div class="mw-heading mw-heading2"><h2 id="Names.php">Names.php</h2></div> <p><a href="https://gerrit.wikimedia.org/g/mediawiki/core/%2B/HEAD/includes/languages/data/Names.php" class="extiw" title="git:mediawiki/core/+/HEAD/includes/languages/data/Names.php">Names.php</a> เป็นรีจิสทรีหลักของภาษาที่สนับสนุนโดย MediaWiki ซึ่งไม่เหมือนกับภาษาที่ MediaWiki จะแสดง l10n (<a href="/wiki/Special:MyLanguage/Help:System_message#Localisation_file_format" title="Special:MyLanguage/Help:System message">ไฟล์ JSON</a>) หรือภาษาที่ MediaWiki รู้ชื่อ (ผ่าน <a href="/wiki/Special:MyLanguage/Extension:CLDR" title="Special:MyLanguage/Extension:CLDR">CLDR</a><span style="display:none"><a href="/wiki/Extension:CLDR" title="Extension:CLDR"> </a></span>) โปรดทราบ! </p><p><span id="Fallback_languages"></span> </p> <div class="mw-heading mw-heading2"><h2 id="ภาษาสำรอง"><span id=".E0.B8.A0.E0.B8.B2.E0.B8.A9.E0.B8.B2.E0.B8.AA.E0.B8.B3.E0.B8.A3.E0.B8.AD.E0.B8.87"></span>ภาษาสำรอง</h2></div> <style data-mw-deduplicate="TemplateStyles:r6353907">.mw-parser-output .hatnote{font-style:italic;padding-bottom:0.4em;margin-bottom:0.4em;border-bottom:1px solid #ccc}.mw-parser-output .hatnote.no-border{border-bottom:none}</style><div role="note" class="hatnote mw-tpl-seealso">See also: <a href="/wiki/Special:MyLanguage/Help:System_message" title="Special:MyLanguage/Help:System message">Help:System message</a><span style="display:none"><a href="/wiki/Help:System_message" title="Help:System message"> </a></span></div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:MediaWiki_fallback_chains.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/2/26/MediaWiki_fallback_chains.svg/220px-MediaWiki_fallback_chains.svg.png" decoding="async" width="220" height="251" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/2/26/MediaWiki_fallback_chains.svg/330px-MediaWiki_fallback_chains.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/2/26/MediaWiki_fallback_chains.svg/440px-MediaWiki_fallback_chains.svg.png 2x" data-file-width="512" data-file-height="585" /></a><figcaption>โซ่ (chain) สำรอง (บางบรรทัดที่แสดงไม่ถูกต้องเนื่องจากมีภาษาสองภาษาในตัวเลือกสำรอง ตรวจสอบว่ามีการเชื่อมต่ออยู่ใน <a href="https://phabricator.wikimedia.org/T258492#6490574" class="extiw" title="phab:T258492">เวอร์ชันข้อความ</a>)</figcaption></figure> <p><span class="mw-translate-fuzzy">บางภาษาในมีเดียวิกิมีสิ่งที่เรียกว่า "ลำดับทางเลือก" นี่คือที่ที่ MediaWiki จะกลับไปใช้ภาษาอื่นหากไม่พบสิ่งที่ต้องการ ตัวอย่างนี้คือรหัสภาษา <code>frc</code> (Cajun French) ซึ่งกลับไปใช้รหัสภาษา <code>fr</code> (ภาษาฝรั่งเศส) เหตุผลก็คือบางครั้งภาษาก็ไม่มีข้อความที่กำหนดไว้ทั้งหมด</span> <span lang="en" dir="ltr" class="mw-content-ltr">This is where MediaWiki will fall back on a different language if it cannot find what it needs.</span> <span lang="en" dir="ltr" class="mw-content-ltr">An example of this is the language code <code>frc</code> (Cajun French), which falls back on the language code <code>fr</code> (French).</span> <span lang="en" dir="ltr" class="mw-content-ltr">The reason for this is that sometimes languages don't have all messages defined in them.</span> </p><p>ทางเลือกของภาษาสามารถพบได้ในไฟล์ <code>languages/messages/MessagesXX.php</code> ที่เกี่ยวข้อง เช่น <a href="https://gerrit.wikimedia.org/g/mediawiki/core/%2B/HEAD/languages/messages/MessagesFrc.php" class="extiw" title="git:mediawiki/core/+/HEAD/languages/messages/MessagesFrc.php">MessagesFrc.php</a> คุณสามารถ <a rel="nofollow" class="external text" href="https://codesearch.wmcloud.org/search/?q=%5C%24fallback%20%3D&i=nope&files=languages%2Fmessages&excludeFiles=&repos=MediaWiki%20core">ค้นหารหัสสำหรับการใช้งานทั้งหมด</a> นอกจากนี้ยังมีรายการธรรมดาจาก กันยายน พ.ศ. 2563 ใน <a href="https://phabricator.wikimedia.org/T258492#9028038" class="extiw" title="phab:T258492">นี่เป็นความเห็นฟาบริเคเตอร์</a> </p><p><span id="Site_content_language"></span> </p> <div class="mw-heading mw-heading2"><h2 id="ภาษาของเนื้อหาเว็บไซต์"><span id=".E0.B8.A0.E0.B8.B2.E0.B8.A9.E0.B8.B2.E0.B8.82.E0.B8.AD.E0.B8.87.E0.B9.80.E0.B8.99.E0.B8.B7.E0.B9.89.E0.B8.AD.E0.B8.AB.E0.B8.B2.E0.B9.80.E0.B8.A7.E0.B9.87.E0.B8.9A.E0.B9.84.E0.B8.8B.E0.B8.95.E0.B9.8C"></span>ภาษาของเนื้อหาเว็บไซต์</h2></div> <p>การดู/รับภาษาของเนื้อหาไซต์ </p><p><a href="/wiki/Special:MyLanguage/Manual:Interface/JavaScript" title="Special:MyLanguage/Manual:Interface/JavaScript">JavaScript</a><span style="display:none"><a href="/wiki/Manual:Interface/JavaScript" title="Manual:Interface/JavaScript"> </a></span>: </p> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="nx">mw</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="w"> </span><span class="s1">'wgContentLanguage'</span><span class="w"> </span><span class="p">);</span> </pre></div> <p><span id="User_interface_language"></span> </p> <div class="mw-heading mw-heading2"><h2 id="ภาษาอินเทอร์เฟซผู้ใช้"><span id=".E0.B8.A0.E0.B8.B2.E0.B8.A9.E0.B8.B2.E0.B8.AD.E0.B8.B4.E0.B8.99.E0.B9.80.E0.B8.97.E0.B8.AD.E0.B8.A3.E0.B9.8C.E0.B9.80.E0.B8.9F.E0.B8.8B.E0.B8.9C.E0.B8.B9.E0.B9.89.E0.B9.83.E0.B8.8A.E0.B9.89"></span>ภาษาอินเทอร์เฟซผู้ใช้</h2></div> <style data-mw-deduplicate="TemplateStyles:r4199130">.mw-parser-output .mw-version{border:1px solid #72777d;font-size:80%;line-height:1.2;border-collapse:collapse}.mw-parser-output .mw-version-ltr{float:right;margin:0 0 .5em .5em;text-align:right}.mw-parser-output .mw-version-rtl{float:left;margin:0 .5em .5em 0;text-align:left}.mw-parser-output .mw-version td{padding:.1em .3em}.mw-parser-output .mw-version-versionbox{border:5px solid #00af89;text-align:center}.mw-parser-output .mw-version-versionnumber{font-weight:bold;font-size:180%}.mw-parser-output .mw-version-version .mw-version-versionbox{border-color:#c8ccd1}.mw-parser-output .mw-version.mw-version-version2 .mw-version-versionbox{border-top-color:#c8ccd1;border-right-color:#c8ccd1;border-left-color:#c8ccd1}.mw-parser-output .mw-version-version-unsupported .mw-version-versionbox{border-color:#d33}.mw-parser-output .mw-version.mw-version-version2-unsupported .mw-version-versionbox{border-top-color:#d33;border-right-color:#d33;border-left-color:#d33}.mw-parser-output .mw-version-version-legacy .mw-version-versionbox{border-color:#f93}.mw-parser-output .mw-version.mw-version-version2-legacy .mw-version-versionbox{border-top-color:#f93;border-right-color:#f93;border-left-color:#f93}.mw-parser-output .mw-version-version-stable .mw-version-versionbox,.mw-parser-output .mw-version.mw-version.mw-version-and-later .mw-version-versionbox{border-color:#00af89}.mw-parser-output .mw-version.mw-version-version2-stable .mw-version-versionbox{border-top-color:#00af89;border-right-color:#00af89;border-left-color:#00af89}.mw-parser-output .mw-version-version-future .mw-version-versionbox{border-color:#8080c0}.mw-parser-output .mw-version.mw-version-version2-future .mw-version-versionbox{border-top-color:#8080c0;border-right-color:#8080c0;border-left-color:#8080c0}.mw-parser-output .mw-version-version-alpha .mw-version-versionbox{border-style:dotted}</style> <table class="mw-version mw-version-ltr mw-version-version mw-version-version-unsupported mw-version-and-later"><tbody><tr> <td>เวอร์ชันมีเดียวิกิ:</td> <td class="mw-version-versionbox" title="รุ่นที่เสถียรในปัจจุบันคือ 1.42"><div class="mw-version-versionnumber"><small>≥</small> 1.18</div></td> </tr></tbody></table> <dl><dt>ค่าเริ่มต้น</dt> <dd> <ul><li><a href="/wiki/Special:MyLanguage/Manual:RequestContext" title="Special:MyLanguage/Manual:RequestContext">$contextSource-</a></li></ul></dd></dl><a href="/wiki/Special:MyLanguage/Manual:RequestContext" title="Special:MyLanguage/Manual:RequestContext"></a><p><a href="/wiki/Special:MyLanguage/Manual:RequestContext" title="Special:MyLanguage/Manual:RequestContext">>getLanguage()</a> </p> <dl><dt>ตั้งค่าผ่าน</dt></dl> <dl><dd><ul><li>Special:Preferences</li> <li><code>&uselang=zxx</code> ใน URL (ดูที่ <a href="/wiki/Special:MyLanguage/uselang" title="Special:MyLanguage/uselang">uselang</a>)</li> <li><code>&variant=xy</code> (หรือ <code><a href="/wiki/Special:MyLanguage/Manual:$wgVariantArticlePath" title="Special:MyLanguage/Manual:$wgVariantArticlePath">$wgVariantArticlePath</a><span style="display:none"><a href="/wiki/Manual:$wgVariantArticlePath" title="Manual:$wgVariantArticlePath"> </a></span></code>) ใน URL <b>ถ้า</b> มันเป็นตัวแปรของภาษาผู้ใช้ของคุณ</li></ul></dd></dl> <dl><dt>ปัญหา</dt> <dd>เนื่องจากข้อความส่วนต่อประสานอาจมาจากภาษาทางเลือก แต่ไม่มีการส่งคืนภาษา จึงไม่ทราบภาษาจริงของแต่ละข้อความ</dd></dl> <p><span id="Page_content_language"></span> </p> <div class="mw-heading mw-heading2"><h2 id="ภาษาเนื้อหาของหน้า"><span id=".E0.B8.A0.E0.B8.B2.E0.B8.A9.E0.B8.B2.E0.B9.80.E0.B8.99.E0.B8.B7.E0.B9.89.E0.B8.AD.E0.B8.AB.E0.B8.B2.E0.B8.82.E0.B8.AD.E0.B8.87.E0.B8.AB.E0.B8.99.E0.B9.89.E0.B8.B2"></span>ภาษาเนื้อหาของหน้า</h2></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4199130"> <table class="mw-version mw-version-ltr mw-version-version mw-version-version-unsupported mw-version-and-later"><tbody><tr> <td>เวอร์ชันมีเดียวิกิ:</td> <td class="mw-version-versionbox" title="รุ่นที่เสถียรในปัจจุบันคือ 1.42"><div class="mw-version-versionnumber"><small>≥</small> 1.18</div></td> </tr></tbody></table> <dl><dt>ค่าเริ่มต้น</dt></dl> <dl><dd><ul><li>$wgLang ในหน้าพิเศษ</li> <li>ภาษาอังกฤษสำหรับหน้า CSS และ JS</li></ul></dd></dl> <div lang="en" dir="ltr" class="mw-content-ltr"> <dl><dd><ul><li>For MediaWiki namespace pages, the language depends on the subpage. For example, MediaWiki:Message/ar will be set to Arabic (ar), and MediaWiki:Message will be <code>ContentLanguage</code>.</li></ul></dd></dl> </div> <dl><dd><ul><li>หน้าอื่น ๆ ทั้งหมดคือ <code>ContentLanguage</code> โดยค่าเริ่มต้น</li></ul></dd></dl> <dl><dt>การกำหนดค่า</dt> <dd>ส่วนขยายสามารถเปลี่ยนหน้าอื่นๆ ทั้งหมดผ่าน <a href="/wiki/Special:MyLanguage/Manual:Hooks/PageContentLanguage" title="Special:MyLanguage/Manual:Hooks/PageContentLanguage">PageContentLanguage</a><span style="display:none"><a href="/wiki/Manual:Hooks/PageContentLanguage" title="Manual:Hooks/PageContentLanguage"> </a></span> hook ค่าสำหรับหน้าพิเศษ, หน้าเนมสเปซ CSS, JS และ MediaWiki ไม่สามารถแทนที่ได้</dd></dl> <dl><dt>ตัวอย่าง</dt> <dd><a href="/wiki/Special:MyLanguage/Extension:Translate" title="Special:MyLanguage/Extension:Translate">ส่วนขยายการแปล</a> ใช้สำหรับคุณลักษณะการแปลหน้า ดู <a href="https://translatewiki.net/wiki/Project:About/ar" class="extiw" title="translatewiki:Project:About/ar">translatewiki:Project:About/ar</a> เป็นคำแปลของ <a href="https://translatewiki.net/wiki/Project:About" class="extiw" title="translatewiki:Project:About">translatewiki:Project:About</a> ทิศทางของหน้าจึงถูกตั้งค่าเป็นขวาไปซ้ายสำหรับภาษาอาหรับอย่างถูกต้อง</dd></dl> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4199130"> <table class="mw-version mw-version-ltr mw-version-version mw-version-version-unsupported mw-version-and-later"><tbody><tr> <td>เวอร์ชันมีเดียวิกิ:</td> <td class="mw-version-versionbox" title="รุ่นที่เสถียรในปัจจุบันคือ 1.42"><div class="mw-version-versionnumber"><small>≥</small> 1.24</div></td> </tr></tbody></table> <dl><dt>เปลี่ยนภาษาหน้าด้วยตนเอง</dt> <dd>การเลือกภาษาของหน้าสามารถทำได้โดยใช้ Special:PageLanguage ตั้งแต่ MediaWiki 1.24</dd> <dd>ผู้ใช้สามารถเปลี่ยนภาษาเนื้อหาของหน้าซึ่งเป็นค่าเริ่มต้นของภาษา Wiki (<code>ContentLanguage</code>) ภาษาของหน้าในเนมสเปซมีเดียวิกิ (MediaWiki) ไม่สามารถเปลี่ยนแปลงได้</dd> <dd>ต้องเปิดใช้งานคุณลักษณะนี้ด้วย <code class="mw-highlight"><a href="/wiki/Special:MyLanguage/Manual:$wgPageLanguageUseDB" title="Special:MyLanguage/Manual:$wgPageLanguageUseDB">$wgPageLanguageUseDB</a><span style="display:none"><a href="/wiki/Manual:$wgPageLanguageUseDB" title="Manual:$wgPageLanguageUseDB"> </a></span> = <span class="k">true</span></code> และต้องให้สิทธิ์ <code>pagelang</code> แก่กลุ่มสิทธิ์ผู้ใช้ Wiki (ผู้ที่สามารถเปลี่ยนแปลงภาษาของหน้าได้)</dd> <dd>การเปลี่ยนภาษาของหน้าทำให้หน้าการแปลต้นฉบับและหน่วยของหน้าถูกย้ายไปยังภาษาเป้าหมายที่ถูกต้อง ในกรณีที่หน้าแปลภาษาเป้าหมายมีอยู่แล้ว ไม่อนุญาตให้เปลี่ยนภาษา</dd></dl> <div class="mw-translate-fuzzy"> <dl><dd>Matching API สามารถพบได้ใน <a href="/wiki/Special:MyLanguage/API:SetPageLanguage" title="Special:MyLanguage/API:SetPageLanguage">API:SetPageLanguage</a><span style="display:none"><a href="/wiki/API:SetPageLanguage" title="API:SetPageLanguage"> </a></span>.</dd></dl> </div> <dl><dt>มันกำหนดอะไร?</dt></dl> <dl><dd><ul><li>ใน SkinTemplate จะเพิ่ม <code class="mw-highlight mw-highlight-lang-html mw-content-ltr" dir="ltr"><span class="p"><</span><span class="nt">div</span> <span class="na">lang</span><span class="o">=</span><span class="s">"xyz"</span> <span class="na">dir</span><span class="o">=</span><span class="s">"ltr/rtl"</span> <span class="na">class</span><span class="o">=</span><span class="s">"mw-content-ltr/rtl"</span><span class="p">></</span><span class="nt">div</span><span class="p">></span></code> รอบข้อความหน้า dir แอตทริบิวต์ตั้งค่าที่ถูกต้อง <b><a href="/wiki/Special:MyLanguage/Directionality_support" title="Special:MyLanguage/Directionality support">ทิศทางการเขียน</a></b> แอตทริบิวต์ lang จะเป็นรหัสรูทเสมอ เช่น "de" แม้ว่าจะกำหนด "de-formal" ก็ตาม <dl><dd>สำหรับหน้าไฟล์จะถูกตั้งค่าเป็น ImagePage.php เนื่องจากมี HTML จำนวนมากในภาษาของผู้ใช้</dd></dl></li> <li>ใน Parser.php จะกำหนดหมายเลขสารบัญ (TOC) และสิ่งต่างๆ เช่น ไวยากรณ์ แม้ว่าจะไม่ค่อยเกี่ยวข้องกันเป็นส่วนใหญ่ หากต้องการทำเช่นนั้นเท่านั้น ให้ใช้ parserOptions->setTargetLanguage()</li> <li>ทิศทางของข้อความต่าง (DifferenceEngine) ถูกตั้งค่าเป็นภาษาเนื้อหาของหน้า ในบางกรณีสิ่งนี้ไม่เหมือนกัน ซึ่งในกรณีนี้ $diffEngineObject->setTextLanguage( $code ) สามารถใช้ได้</li> <li>ตั้งแต่ <span class="plainlinks"><a class="external text" href="https://static-codereview.wikimedia.org/MediaWiki/94680.html">1.19</a></span> มันยังตั้งเวลาและการจัดรูปแบบตัวเลข <b><a href="/wiki/Special:MyLanguage/Help:magic_words" title="Special:MyLanguage/Help:magic words">magic words</a></b> รวมถึง DIRECTIONMARK แต่ไม่ใช่ NAMESPACE(E) เพราะนั่นขึ้นอยู่กับภาษาของไซต์จริงๆ โปรดทราบว่าการรวมเทมเพลตที่ทำเครื่องหมายเป็นภาษา A ไว้ในหน้าที่มีภาษา B จะถูกแยกวิเคราะห์ด้วยภาษา B ในหน้านั้น</li></ul></dd></dl> <dl><dt>หลายภาษาในหน้าเดียว</dt> <dd>ในทางทฤษฎีแล้ว หลายภาษาในหน้าเดียวไม่รองรับ แต่แท็ก <code class="mw-highlight mw-highlight-lang-html mw-content-ltr" dir="ltr"><span class="p"><</span><span class="nt">div</span> <span class="na">lang</span><span class="o">=</span><span class="s">"xyz"</span> <span class="na">dir</span><span class="o">=</span><span class="s">"ltr/rtl"</span> <span class="na">class</span><span class="o">=</span><span class="s">"mw-content-ltr/rtl"</span><span class="p">></span></code> แบบธรรมดาสามารถใช้เพื่อทำเครื่องหมายข้อความว่าเขียนในภาษาอื่น หากใช้คลาส CSS รายการ ul/ol และส่วนแก้ไขจะแสดงอย่างสวยงามเมื่อแท็ก dir อยู่ตรงข้ามกับค่าของภาษาเนื้อหาของหน้า อย่างไรก็ตาม สิ่งที่กำหนดไว้ใน parser เช่น TOC และคำวิเศษ จะไม่เปลี่ยนแปลง</dd></dl> <dl><dt>กำลังดู/รับภาษาของหน้า</dt></dl> <ul><li><a href="/wiki/Special:MyLanguage/Manual:Interface/JavaScript" title="Special:MyLanguage/Manual:Interface/JavaScript">JavaScript</a>: <code>mw.config.get( 'wgPageContentLanguage' )</code> - โปรดทราบว่าเมื่อเช่น การดูประวัติหน้าจะส่งคืนภาษาของหน้าเว็บที่เป็นประวัติ ในขณะที่หน้าประวัติไม่มีคลาส mw-content-ltr/rtl เช่น. ทั้ง "/wiki/Page" และ "/w/index.php?title=Page&action=history" จะส่งคืนภาษาของ "หน้า" <span style="display: inline-block; border: 1px solid var( --border-color-notice, #54595d ); background-color: var( --background-color-interactive, #eaecf0 ); color: var( --color-base, #202122 ); padding: 1px 4px; margin: 0 4px; white-space:nowrap;">1.19+</span></li> <li>ภาษาของเนื้อหาหน้าระบุไว้ในมุมมองข้อมูลของเพจ (<code>action=info</code> ลิงก์ในกล่องเครื่องมือ) <span style="display: inline-block; border: 1px solid var( --border-color-notice, #54595d ); background-color: var( --background-color-interactive, #eaecf0 ); color: var( --color-base, #202122 ); padding: 1px 4px; margin: 0 4px; white-space:nowrap;"><a href="https://gerrit.wikimedia.org/r/30099" class="extiw" title="gerrit:30099">1.21+</a></span></li> <li>ภาษาของเนื้อหาของหน้าสามารถเรียกค้นได้ใน <a href="/wiki/Special:MyLanguage/API" title="Special:MyLanguage/API">API</a> ผ่านทาง <a href="/wiki/Special:MyLanguage/API:Properties" title="Special:MyLanguage/API:Properties">api.php?action=query&prop=info</a> <span style="display: inline-block; border: 1px solid var( --border-color-notice, #54595d ); background-color: var( --background-color-interactive, #eaecf0 ); color: var( --color-base, #202122 ); padding: 1px 4px; margin: 0 4px; white-space:nowrap;"><a href="https://gerrit.wikimedia.org/r/64512" class="extiw" title="gerrit:64512">1.22+</a></span></li></ul> <p><span id="Code_structure"></span> </p> <div class="mw-heading mw-heading2"><h2 id="โครงสร้างโค้ด"><span id=".E0.B9.82.E0.B8.84.E0.B8.A3.E0.B8.87.E0.B8.AA.E0.B8.A3.E0.B9.89.E0.B8.B2.E0.B8.87.E0.B9.82.E0.B8.84.E0.B9.89.E0.B8.94"></span>โครงสร้างโค้ด</h2></div> <p>อันดับแรก คุณมีออบเจ็กต์ภาษาในสกุลเงิน <a href="/wiki/Special:MyLanguage/Manual:Code#Language.php" title="Special:MyLanguage/Manual:Code">Language.php</a><span style="display:none"><a href="/wiki/Manual:Code#Language.php" title="Manual:Code"> </a></span> ออบเจ็กต์นี้มี <a href="/wiki/Special:MyLanguage/Help:System_message" title="Special:MyLanguage/Help:System message">สตริงข้อความ</a> ที่แปลเป็นภาษาท้องถิ่นได้ทั้งหมด เช่นเดียวกับการตั้งค่าเฉพาะภาษาที่สำคัญอื่นๆ และการทำงานที่กำหนดเอง (ตัวพิมพ์ใหญ่ ตัวพิมพ์เล็ก วันที่พิมพ์ การจัดรูปแบบตัวเลข <a href="/wiki/Special:MyLanguage/Directionality_support" title="Special:MyLanguage/Directionality support">ทิศทาง</a>, <a href="/wiki/Special:MyLanguage/Manual:Messages_API#…on_use_context_inside_sentences_via_GRAMMAR" title="Special:MyLanguage/Manual:Messages API"> กฎไวยากรณ์ที่กำหนดเอง</a> <i> ฯลฯ </i>) </p><p>อ็อบเจ็กต์ถูกสร้างขึ้นจากแหล่งที่มาสองแหล่ง: เวอร์ชันย่อยของตัวมันเอง (คลาส (classes)) และไฟล์ข้อความ (ข้อความ (messages)) </p><p>นอกจากนี้ยังมีคลาส (class) MessageCache ซึ่งจัดการการป้อนข้อความผ่านเนมสเปซ MediaWiki <span lang="en" dir="ltr" class="mw-content-ltr">Most internationalisation is nowadays done via <a href="/wiki/Special:MyLanguage/Manual:Messages_API" title="Special:MyLanguage/Manual:Messages API">Manual:Messages API</a><span style="display:none"><a href="/wiki/Manual:Messages_API" title="Manual:Messages API"> </a></span> objects and by using the <code>wfMessage()</code> shortcut function, which is defined in <code>includes/GlobalFunctions.php</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Legacy code might still be using the old <code>wfMsg*()</code> functions, which are now considered deprecated in favor of the above-mentioned Message objects.</span> </p><p>ดูเพิ่มที่ <a href="/wiki/Special:MyLanguage/Manual:Messages_API" title="Special:MyLanguage/Manual:Messages API">Manual:Messages API</a><span style="display:none"><a href="/wiki/Manual:Messages_API" title="Manual:Messages API"> </a></span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading3"><h3 id="Language_objects">Language objects</h3></div> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">There are two ways to get a language object.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can use the globals <a href="/wiki/Special:MyLanguage/Manual:$wgLang" title="Special:MyLanguage/Manual:$wgLang">$wgLang</a><span style="display:none"><a href="/wiki/Manual:$wgLang" title="Manual:$wgLang"> </a></span> and <code>ContentLanguage</code> service (<code>MediaWiki\MediaWikiServices::getContentLanguage</code>) for user interface and content language respectively.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For an arbitrary language you can construct an object by using <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$languageFactory</span><span class="o">-></span><span class="na">getLanguage</span><span class="p">(</span> <span class="s1">'en'</span> <span class="p">)</span></code> by replacing <code>en</code> with the code of the language.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can get <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$languageFactory</span></code>, an object of the <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nx">MediaWiki\Languages\LanguageFactory</span></code> class, using <a href="/wiki/Special:MyLanguage/Dependency_Injection" title="Special:MyLanguage/Dependency Injection">Dependency Injection</a><span style="display:none"><a href="/wiki/Dependency_Injection" title="Dependency Injection"> </a></span>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can also use <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><span class="nx">wfGetLangObj</span><span class="p">(</span> <span class="nv">$code</span> <span class="p">);</span></code> if <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><span class="nv">$code</span></code> could already be a language object.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The list of codes is in <code>includes/languages/data/Names.php</code>.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">Language objects are needed for doing language-specific functions, most often to do number, time and date formatting, but also to construct lists and other things.</span> <span lang="en" dir="ltr" class="mw-content-ltr">There are multiple layers of caching and merging with <a href="#Fallback_languages">#Fallback languages</a>, but the details are irrelevant in normal use.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading2"><h2 id="Old_local_translation_system">Old local translation system</h2></div> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">With MediaWiki 1.3.0, a new system was set up for localising MediaWiki.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Instead of editing the language file and asking developers to apply the change, users could edit the interface strings directly from their wikis.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This is the system in use as of August 2005.</span> <span lang="en" dir="ltr" class="mw-content-ltr">People can find the message they want to translate in <a href="/wiki/Special:AllMessages" title="Special:AllMessages">Special:AllMessages</a> and then edit the relevant string in the <code>MediaWiki:</code> namespace.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Once edited, these changes are live.</span> <span lang="en" dir="ltr" class="mw-content-ltr">There was no more need to request an update, and wait for developers to check and update the file.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>The system is great for Wikipedia projects; however a side effect is that the MediaWiki language files shipped with the software are no longer quite up-to-date, and it is harder for developers to keep the files on meta in sync with the real language files. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>As the default language files do not provide enough translated material, we face two problems: </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ol><li>New Wikimedia projects created in a language which has not been updated for a long time, need a total re-translation of the interface.</li></ol> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ol><li>Other users of MediaWiki (including Wikimedia projects in the same language) are left with untranslated interfaces.</li></ol> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">This is especially unfortunate for the smaller languages which don't have many translators.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">This is not such a big issue anymore, because translatewiki.net is advertised prominently and used by almost all translations.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Local translations still do happen sometimes but they're strongly discouraged.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Local messages mostly have to be deleted, moving the relevant translations to translatewiki.net and leaving on the wiki only the site-specific customisation; there's a huge backlog especially in older projects, <a rel="nofollow" class="external text" href="//toolserver.org/~robin/?tool=cleanuplocalmsgs">this tool</a> helps with cleanup.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading2"><h2 id="Keeping_messages_centralised_and_in_sync">Keeping messages centralised and in sync</h2></div> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">English messages are very rarely out of sync with the code.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Experience has shown that it's convenient to have all the English messages in the same place.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Revising the English text can be done without reference to the code, just like translation can.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Programmers sometimes make very poor choices for the default text.</span> </p><p><span class="anchor" id="what-can-be-localized"></span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading2"><h2 id="What_can_be_localised">What can be localised</h2></div> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">So many things are localisable on MediaWiki that not all of them are directly available on <a href="/wiki/Special:MyLanguage/translatewiki.net" title="Special:MyLanguage/translatewiki.net">translatewiki.net</a><span style="display:none"><a href="/wiki/Translatewiki.net" title="Translatewiki.net"> </a></span>: see <a href="https://translatewiki.net/wiki/Translating:MediaWiki" class="extiw" title="translatewiki:Translating:MediaWiki">translatewiki:Translating:MediaWiki</a>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If something requires a <a href="/wiki/Special:MyLanguage/Developers" title="Special:MyLanguage/Developers">developer</a> intervention on the code, you can <a href="/wiki/Special:MyLanguage/How_to_report_a_bug" title="Special:MyLanguage/How to report a bug">request it on Phabricator</a>, or ask at <a href="https://translatewiki.net/wiki/Support" class="extiw" title="translatewiki:Support">translatewiki:Support</a> if you don't know what to do exactly.</span> </p> <ul><li><a href="#Namespaces">เนมสเปซ</a> - <span lang="en" dir="ltr" class="mw-content-ltr">both core and extensions, plus <a href="/wiki/Special:MyLanguage/Manual:Messages_API#Users_have_grammatical_genders" title="Special:MyLanguage/Manual:Messages API">gender</a>-dependent user namespaces</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Weekdays (and abbreviations)</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Months (and abbreviations)</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Bookstores for <a href="/wiki/Special:BookSources" title="Special:BookSources">Special:BookSources</a></span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Skin names</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Math names</span></li> <li><a href="/wiki/Special:MyLanguage/Manual:Date_formatting" title="Special:MyLanguage/Manual:Date formatting"><span lang="en" dir="ltr" class="mw-content-ltr">Date preferences</span></a><span style="display:none"><a href="/wiki/Manual:Date_formatting" title="Manual:Date formatting"> </a></span> - <code>$datePreferences</code></li> <li><a href="/wiki/Special:MyLanguage/Manual:Date_formatting" title="Special:MyLanguage/Manual:Date formatting"><span lang="en" dir="ltr" class="mw-content-ltr">Date formats</span></a><span style="display:none"><a href="/wiki/Manual:Date_formatting" title="Manual:Date formatting"> </a></span> - <code>$dateFormats</code></li> <li><a href="/wiki/Special:MyLanguage/Manual:Date_formatting" title="Special:MyLanguage/Manual:Date formatting"><span lang="en" dir="ltr" class="mw-content-ltr">Default date format</span></a><span style="display:none"><a href="/wiki/Manual:Date_formatting" title="Manual:Date formatting"> </a></span> - <code>$defaultDateFormat</code></li> <li><a href="/wiki/Special:MyLanguage/Manual:Date_formatting" title="Special:MyLanguage/Manual:Date formatting"><span lang="en" dir="ltr" class="mw-content-ltr">Date preference migration map</span></a><span style="display:none"><a href="/wiki/Manual:Date_formatting" title="Manual:Date formatting"> </a></span> - <span lang="en" dir="ltr" class="mw-content-ltr">for compatibility with old MediaWiki databases</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Default user option overrides</span></li> <li>ชื่อภาษา</li> <li>ชื่อประเทศ (ผ่าน <a href="/wiki/Special:MyLanguage/Extension:CLDR" title="Special:MyLanguage/Extension:CLDR">Extension:CLDR</a><span style="display:none"><a href="/wiki/Extension:CLDR" title="Extension:CLDR"> </a></span>)</li> <li>ชื่อสกุลเงิน (ผ่าน <a href="/wiki/Special:MyLanguage/Extension:CLDR" title="Special:MyLanguage/Extension:CLDR">Extension:CLDR</a><span style="display:none"><a href="/wiki/Extension:CLDR" title="Extension:CLDR"> </a></span>)</li> <li>โซนเวลา</li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Character encoding conversion via <a href="https://en.wikipedia.org/wiki/en:Iconv" class="extiw" title="w:en:Iconv"><code>iconv</code></a></span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">UpperLowerCase first (needs casemaps for some)</span><sup class="noprint Inline-Template" style="white-space:nowrap;">[<i><a href="https://en.wikipedia.org/wiki/Wikipedia:Please_clarify" class="extiw" title="wikipedia:Wikipedia:Please clarify"><span title="The text in the vicinity of this tag needs clarification or removal of jargon">clarification needed</span></a></i>]</sup></li> <li>ตัวพิมพ์ใหญ่<sup class="noprint Inline-Template" style="white-space:nowrap;">[<i><a href="https://en.wikipedia.org/wiki/Wikipedia:Please_clarify" class="extiw" title="wikipedia:Wikipedia:Please clarify"><span title="The text in the vicinity of this tag needs clarification or removal of jargon">clarification needed</span></a></i>]</sup></li> <li>คำตัวพิมพ์ใหญ่</li> <li>ตัวแบ่งคำตัวพิมพ์ใหญ่<sup class="noprint Inline-Template" style="white-space:nowrap;">[<i><a href="https://en.wikipedia.org/wiki/Wikipedia:Please_clarify" class="extiw" title="wikipedia:Wikipedia:Please clarify"><span title="The text in the vicinity of this tag needs clarification or removal of jargon">clarification needed</span></a></i>]</sup></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Case folding</span><sup class="noprint Inline-Template" style="white-space:nowrap;">[<i><a href="https://en.wikipedia.org/wiki/Wikipedia:Please_clarify" class="extiw" title="wikipedia:Wikipedia:Please clarify"><span title="The text in the vicinity of this tag needs clarification or removal of jargon">clarification needed</span></a></i>]</sup></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Strip punctuation for MySQL search (search optimisation)</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Get first character</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Alternate encoding</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Recoding for edit (and then recode input)</span><sup class="noprint Inline-Template" style="white-space:nowrap;">[<i><a href="https://en.wikipedia.org/wiki/Wikipedia:Please_clarify" class="extiw" title="wikipedia:Wikipedia:Please clarify"><span title="The text in the vicinity of this tag needs clarification or removal of jargon">clarification needed</span></a></i>]</sup></li></ul> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:MediaWiki_fallback_chains.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/2/26/MediaWiki_fallback_chains.svg/220px-MediaWiki_fallback_chains.svg.png" decoding="async" width="220" height="251" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/2/26/MediaWiki_fallback_chains.svg/330px-MediaWiki_fallback_chains.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/2/26/MediaWiki_fallback_chains.svg/440px-MediaWiki_fallback_chains.svg.png 2x" data-file-width="512" data-file-height="585" /></a><figcaption><span lang="en" dir="ltr" class="mw-content-ltr">Graph of language fallback</span></figcaption></figure> <ul><li><span lang="en" dir="ltr" class="mw-content-ltr"><a href="/wiki/Special:MyLanguage/Manual:Language" title="Special:MyLanguage/Manual:Language">Fallback languages</a> (that is, other more closely related language(s) to use when a translation is not available, instead of the default fallback, which is English)</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Directionality (left to right or right to left, RTL)</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Direction mark character depending on RTL</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Arrow depending on RTL</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Languages where italics cannot be used</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Number formatting (comma-ify, <i>i.e.</i> adding or not digits separators; transform digits; transform separators)</span><sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Truncate (multibyte)</span></li> <li><a href="/wiki/Special:MyLanguage/Manual:Messages_API#…on_use_context_inside_sentences_via_GRAMMAR" title="Special:MyLanguage/Manual:Messages API"><span lang="en" dir="ltr" class="mw-content-ltr">Grammar conversions for inflected languages</span></a><span style="display:none"><a href="/wiki/Manual:Messages_API#…on_use_context_inside_sentences_via_GRAMMAR" title="Manual:Messages API"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Manual:Messages_API#Be_aware_of_PLURAL_use_on_all_numbers" title="Special:MyLanguage/Manual:Messages API"><span lang="en" dir="ltr" class="mw-content-ltr">Plural transformations</span></a><span style="display:none"><a href="/wiki/Manual:Messages_API#Be_aware_of_PLURAL_use_on_all_numbers" title="Manual:Messages API"> </a></span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Formatting expiry times</span><sup class="noprint Inline-Template" style="white-space:nowrap;">[<i><a href="https://en.wikipedia.org/wiki/Wikipedia:Please_clarify" class="extiw" title="wikipedia:Wikipedia:Please clarify"><span title="The text in the vicinity of this tag needs clarification or removal of jargon">clarification needed</span></a></i>]</sup></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Segmenting for diffs (Chinese)</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Convert to variants of language (between different orthographies, or scripts)</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Language specific user preference options</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr"><a href="/wiki/Special:MyLanguage/Help:Links#linktrail" title="Special:MyLanguage/Help:Links">Link trails</a> and link prefix - <code>$linkTrail</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">These are letters that can be glued after/before the closing/opening brackets of a wiki link, but appear rendered on the screen as if part of the link (that is, clickable and in the same colour), <i>e.g.</i>: <code>[[foo]]bar</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">By default the link trail is "a-z"; you may want to add the accentuated or non-Latin letters used by your language to the list.</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Language code (preferably used according to the latest RFC in standard BCP 47, currently <a href="//tools.ietf.org/html/rfc5646" class="extiw" title="rfc:5646">RFC<style data-mw-deduplicate="TemplateStyles:r4673781">'"`UNIQ--templatestyles-00000019-QINU`"'</style><span class="nowrap"> </span>5646</a>, with its associated IANA database.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Avoid deprecated, grandfathered and private-use codes: look at what they mean in standard ISO 639, and avoid codes assigned to collections/families of languages in ISO 639-5, and ISO 639 codes which were not imported in the IANA database for BCP 47)</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">Type of emphasising</span></li> <li><span lang="en" dir="ltr" class="mw-content-ltr">The <a href="/wiki/Special:MyLanguage/Extension:Cite" title="Special:MyLanguage/Extension:Cite">Cite</a><span style="display:none"><a href="/wiki/Extension:Cite" title="Extension:Cite"> </a></span> extension has a special page file per language, <code>cite_text-<i>zyx</i></code> for language code <code>zyx</code>.</span></li></ul> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Neat functionality: </p> </div> <ul><li><span lang="en" dir="ltr" class="mw-content-ltr">I18N <code>sprintfDate</code></span></li> <li>การจัดรูปแบบเลขโรมัน</li></ul> <p><span id="Namespaces"></span> </p> <div class="mw-heading mw-heading3"><h3 id="เนมสเปซ"><span id=".E0.B9.80.E0.B8.99.E0.B8.A1.E0.B8.AA.E0.B9.80.E0.B8.9B.E0.B8.8B"></span>เนมสเปซ</h3></div> <dl><dd></dd></dl> <p><span lang="en" dir="ltr" class="mw-content-ltr">Currently making namespace name translations is disabled on translatewiki.net, so you need to do this yourself in Gerrit, or file a <a href="/wiki/Special:MyLanguage/Phabricator" title="Special:MyLanguage/Phabricator">ฟาบริเคเตอร์</a><span style="display:none"><a href="/wiki/Phabricator" title="Phabricator"> </a></span> task asking for someone else to do it.</span><sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>To allow custom namespaces introduced by your extension to be translated, create a <code><i>MyExtension</i>.i18n.namespaces.php</code> file that looks like this: </p> </div> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="cp"><?php</span> <span class="sd">/**</span> <span class="sd"> * Translations of the namespaces introduced by MyExtension.</span> <span class="sd"> *</span> <span class="sd"> * @file</span> <span class="sd"> */</span> <span class="nv">$namespaceNames</span> <span class="o">=</span> <span class="p">[];</span> <span class="c1">// For wikis where the MyExtension extension is not installed.</span> <span class="k">if</span><span class="p">(</span> <span class="o">!</span><span class="nb">defined</span><span class="p">(</span> <span class="s1">'NS_MYEXTENSION'</span> <span class="p">)</span> <span class="p">)</span> <span class="p">{</span> <span class="nb">define</span><span class="p">(</span> <span class="s1">'NS_MYEXTENSION'</span><span class="p">,</span> <span class="mi">2510</span> <span class="p">);</span> <span class="p">}</span> <span class="k">if</span><span class="p">(</span> <span class="o">!</span><span class="nb">defined</span><span class="p">(</span> <span class="s1">'NS_MYEXTENSION_TALK'</span> <span class="p">)</span> <span class="p">)</span> <span class="p">{</span> <span class="nb">define</span><span class="p">(</span> <span class="s1">'NS_MYEXTENSION_TALK'</span><span class="p">,</span> <span class="mi">2511</span> <span class="p">);</span> <span class="p">}</span> <span class="sd">/** English */</span> <span class="nv">$namespaceNames</span><span class="p">[</span><span class="s1">'en'</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span> <span class="nx">NS_MYEXTENSION</span> <span class="o">=></span> <span class="s1">'MyNamespace'</span><span class="p">,</span> <span class="nx">NS_MYEXTENSION_TALK</span> <span class="o">=></span> <span class="s1">'MyNamespace_talk'</span><span class="p">,</span> <span class="p">];</span> <span class="sd">/** Finnish (Suomi) */</span> <span class="nv">$namespaceNames</span><span class="p">[</span><span class="s1">'fi'</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span> <span class="nx">NS_MYEXTENSION</span> <span class="o">=></span> <span class="s1">'Nimiavaruuteni'</span><span class="p">,</span> <span class="nx">NS_MYEXTENSION_TALK</span> <span class="o">=></span> <span class="s1">'Keskustelu_nimiavaruudestani'</span><span class="p">,</span> <span class="p">];</span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Then load it from the <code>extension.json</code> file using ExtensionMessagesFiles like this: </p> </div> <div class="mw-highlight mw-highlight-lang-json mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{</span> <span class="w"> </span><span class="nt">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"MyExtension"</span><span class="p">,</span> <span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="s2">"0.0.1"</span><span class="p">,</span> <span class="w"> </span><span class="nt">"descriptionmsg"</span><span class="p">:</span><span class="w"> </span><span class="s2">"myextension-desc"</span><span class="p">,</span> <span class="w"> </span><span class="nt">"ExtensionMessagesFiles"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="nt">"MyExtensionNamespaces"</span><span class="p">:</span><span class="w"> </span><span class="s2">"MyExtension.i18n.namespaces.php"</span> <span class="w"> </span><span class="p">}</span> <span class="p">}</span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Now, when a user installs MyExtension on their Finnish (fi) wiki, the custom namespace will be translated into Finnish magically, and the user doesn't need to do a thing! </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Also remember to register your extension's namespace(s) on the <a href="/wiki/Special:MyLanguage/extension_default_namespaces" title="Special:MyLanguage/extension default namespaces">extension default namespaces</a><span style="display:none"><a href="/wiki/Extension_default_namespaces" title="Extension default namespaces"> </a></span> page. </p> </div> <p><span id="Special_page_aliases"></span> </p> <div class="mw-heading mw-heading3"><h3 id="นามแฝงหน้าพิเศษ"><span id=".E0.B8.99.E0.B8.B2.E0.B8.A1.E0.B9.81.E0.B8.9D.E0.B8.87.E0.B8.AB.E0.B8.99.E0.B9.89.E0.B8.B2.E0.B8.9E.E0.B8.B4.E0.B9.80.E0.B8.A8.E0.B8.A9"></span>นามแฝงหน้าพิเศษ</h3></div> <p><span lang="en" dir="ltr" class="mw-content-ltr">See <a href="/wiki/Manual:Special_pages#The_aliases_file" title="Manual:Special pages">the manual page for Special pages</a> for up-to-date information.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The following does not appear to be valid.</span> </p><p><br /> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Create a new file for the special page aliases in this format: </p> </div> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="cp"><?php</span> <span class="sd">/**</span> <span class="sd"> * Aliases for the MyExtension extension.</span> <span class="sd"> *</span> <span class="sd"> * @file</span> <span class="sd"> * @ingroup Extensions</span> <span class="sd"> */</span> <span class="nv">$aliases</span> <span class="o">=</span> <span class="p">[];</span> <span class="sd">/** English */</span> <span class="nv">$aliases</span><span class="p">[</span><span class="s1">'en'</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span> <span class="s1">'MyExtension'</span> <span class="o">=></span> <span class="p">[</span> <span class="s1">'MyExtension'</span> <span class="p">]</span> <span class="p">];</span> <span class="sd">/** Finnish (Suomi) */</span> <span class="nv">$aliases</span><span class="p">[</span><span class="s1">'fi'</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span> <span class="s1">'MyExtension'</span> <span class="o">=></span> <span class="p">[</span> <span class="s1">'Lisäosani'</span> <span class="p">]</span> <span class="p">];</span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Then load it from the <code>extension.json</code> file using ExtensionMessagesFiles like this: </p> </div> <div class="mw-highlight mw-highlight-lang-json mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{</span> <span class="w"> </span><span class="nt">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"MyExtension"</span><span class="p">,</span> <span class="w"> </span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="s2">"0.0.1"</span><span class="p">,</span> <span class="w"> </span><span class="nt">"descriptionmsg"</span><span class="p">:</span><span class="w"> </span><span class="s2">"myextension-desc"</span><span class="p">,</span> <span class="w"> </span><span class="nt">"ExtensionMessagesFiles"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="nt">"MyExtensionAlias"</span><span class="p">:</span><span class="w"> </span><span class="s2">"MyExtension.i18n.alias.php"</span> <span class="w"> </span><span class="p">}</span> <span class="p">}</span> </pre></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>When your special page code uses either <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nx">SpecialPage</span><span class="o">::</span><span class="na">getTitleFor</span><span class="p">(</span> <span class="s1">'MyExtension'</span> <span class="p">)</span></code> or <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$this</span><span class="o">-></span><span class="na">getTitle</span><span class="p">()</span></code> (in the class that provides Special:MyExtension), the localised alias will be used, if it's available. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading3"><h3 id="Namespace_name_aliases">Namespace name aliases</h3></div> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Namespace name aliases are additional names which can be used to address existing namespaces.</span> <span lang="en" dir="ltr" class="mw-content-ltr">They are rarely needed, but not having them when they are, usually creates havoc in existing wikis.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>You need namespace name aliases: </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <ol><li>When a language has variants, and these variants spell some namespaces differently, and you want editors to be able to use the variant spellings.</li></ol> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Variants are selectable in the user preferences.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Users always see their selected variant, except in wikitext, but when editing or searching, an arbitrary variant can be used.</span> </p><div lang="en" dir="ltr" class="mw-content-ltr"> <ol><li>When an existing wiki's language, fall back language(s), or localisation is changed, with it are changed some namespace names.</li></ol> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">So as not to break the links already present in the wiki, that are using the old namespace names, you need to add each of the altered previous namespace names to its namespace name aliases, when, or before, the change is made.</span> </p><div lang="en" dir="ltr" class="mw-content-ltr"> <p>The generic English namespace names are always present as namespace name aliases in all localisations, so you need not, and should not, add those. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Aliases can't be translated on <a href="/wiki/Special:MyLanguage/translatewiki.net" title="Special:MyLanguage/translatewiki.net">translatewiki.net</a><span style="display:none"><a href="/wiki/Translatewiki.net" title="Translatewiki.net"> </a></span>, but can be requested there or on <a href="/wiki/Special:MyLanguage/bugzilla" title="Special:MyLanguage/bugzilla">bugzilla</a><span style="display:none"><a href="/wiki/Bugzilla" title="Bugzilla"> </a></span>: see <a href="https://translatewiki.net/wiki/Translating:MediaWiki#Namespace_name_aliases" class="extiw" title="translatewiki:Translating:MediaWiki">translatewiki:Translating:MediaWiki#Namespace name aliases</a>. </p> </div> <p><span id="Regional_settings"></span> </p> <div class="mw-heading mw-heading3"><h3 id="การตั้งค่าภูมิภาค"><span id=".E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B8.95.E0.B8.B1.E0.B9.89.E0.B8.87.E0.B8.84.E0.B9.88.E0.B8.B2.E0.B8.A0.E0.B8.B9.E0.B8.A1.E0.B8.B4.E0.B8.A0.E0.B8.B2.E0.B8.84"></span>การตั้งค่าภูมิภาค</h3></div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>Some linguistic settings vary across geographies; MediaWiki doesn't have a concept of region, it only has languages and language variants. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>These settings need to be set once as a language's default, then individual wikis can change them as they wish in their configuration. </p> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <div class="mw-heading mw-heading5"><h5 id="Time_and_date_formats">Time and date formats</h5></div> </div> <p><span lang="en" dir="ltr" class="mw-content-ltr">Time and dates are shown on special pages and alike.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The default time and date format is used for signatures, so it should be the most used and most widely understood format for users of that language.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Also anonymous users see the default format.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Registered users can choose other formats in their preferences.</span> </p><p><span lang="en" dir="ltr" class="mw-content-ltr">If you are familiar with PHP's time() format, you can try to construct formats yourself.</span> <span lang="en" dir="ltr" class="mw-content-ltr">MediaWiki uses a similar format string, with some extra features.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If you don't understand the previous sentence, that's OK.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can provide a list of examples for <a href="/wiki/Special:MyLanguage/Developers" title="Special:MyLanguage/Developers">ผู้พัฒนา</a><span style="display:none"><a href="/wiki/Developers" title="Developers"> </a></span>.</span> </p> <div lang="en" dir="ltr" class="mw-content-ltr"> <p>See <a href="/wiki/Special:MyLanguage/Help:System_message#Message_sources" title="Special:MyLanguage/Help:System message">Help:System message#Message sources</a>. </p> </div> <p><span id="Notes"></span> </p> <div class="mw-heading mw-heading2"><h2 id="หมายเหตุ"><span id=".E0.B8.AB.E0.B8.A1.E0.B8.B2.E0.B8.A2.E0.B9.80.E0.B8.AB.E0.B8.95.E0.B8.B8"></span>หมายเหตุ</h2></div> <div class="mw-references-wrap"><ol class="references"> <li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text">ดู <a href="https://phabricator.wikimedia.org/diffusion/MW/browse/master/includes/languages/data/Names.php" class="extiw" title="phab:diffusion/MW/browse/master/includes/languages/data/Names.php">includes/languages/data/Names.php</a></span> </li> <li id="cite_note-2"><span class="mw-cite-backlink"><a href="#cite_ref-2">↑</a></span> <span class="reference-text">ถึงแม้สิ่งนี้ การตรวจสอบรหัสภาษาในปี 2555 ยังไม่ได้รับการแก้ไข ปัญหา. ดู Niklas Laxström, <i><a rel="nofollow" class="external text" href="http://laxstrom.name/blag/2012/08/28/language-validation-in-mediawiki/">Language validation in MediaWiki</a></i>, 28 สิงหาคม 2012</span> </li> <li id="cite_note-3"><span class="mw-cite-backlink"><a href="#cite_ref-3">↑</a></span> <span class="reference-text"> <span lang="en" dir="ltr" class="mw-content-ltr">These are configured by language in the respective <code>language/classes/LanguageXx.php</code> or <code>language/messages/MessagesXx.php</code> files.</span></span> </li> <li id="cite_note-4"><span class="mw-cite-backlink"><a href="#cite_ref-4">↑</a></span> <span class="reference-text"> <a href="https://gerrit.wikimedia.org/r/211677" class="extiw" title="gerrit:211677">https://gerrit.wikimedia.org/r/211677</a></span> </li> </ol></div> <p><span id="See_also"></span> </p> <div class="mw-heading mw-heading2"><h2 id="ดูเพิ่ม"><span id=".E0.B8.94.E0.B8.B9.E0.B9.80.E0.B8.9E.E0.B8.B4.E0.B9.88.E0.B8.A1"></span>ดูเพิ่ม</h2></div> <ul><li><a href="/wiki/Special:MyLanguage/Multilingual_MediaWiki" title="Special:MyLanguage/Multilingual MediaWiki">มีเดียวิกิหลายภาษา</a></li></ul> <div lang="en" dir="ltr" class="mw-content-ltr"> <ul><li>Obtaining language names from codes is possible using the core function {{#language:<code>}} documented in <a href="/wiki/Special:MyLanguage/Help:magic_words" title="Special:MyLanguage/Help:magic words">magic words</a></li></ul> </div> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐7d89b5d4c4‐95768 Cached time: 20241120172303 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 0.506 seconds Real time usage: 0.709 seconds Preprocessor visited node count: 5700/1000000 Post‐expand include size: 35219/2097152 bytes Template argument size: 15259/2097152 bytes Highest expansion depth: 25/100 Expensive parser function count: 38/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 25255/5000000 bytes Lua time usage: 0.137/10.000 seconds Lua memory usage: 1748307/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 468.838 1 -total 53.34% 250.081 40 Template:Ll 40.61% 190.393 82 Template:Translatable 31.15% 146.023 1 Template:I18n_navigation 29.58% 138.687 1 Template:Nmbox 24.00% 112.502 83 Template:Pagelang 22.19% 104.048 1 Template:Flatlist 8.08% 37.898 2 Template:MW_1.18 7.48% 35.085 3 Template:MW_version/th 6.82% 31.980 3 Template:MW_version/layout --> <!-- Saved in parser cache with key mediawikiwiki:pcache:idhash:1551856-0!canonical and timestamp 20241120172303 and revision id 6815153. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://www.mediawiki.org/w/index.php?title=Manual:Language/th&oldid=6815153">https://www.mediawiki.org/w/index.php?title=Manual:Language/th&oldid=6815153</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Special:Categories" title="Special:Categories">Category</a>: <ul><li><a href="/wiki/Category:Localisation/th" title="Category:Localisation/th">Localisation/th</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 27 October 2024, at 22:40.</li> <li id="footer-info-copyright">Text is available under the <a rel="nofollow" class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. Text in <a class="external text" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents">the Help: namespace</a> is available under the <a rel="nofollow" class="external text" href="https://creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC0 License</a>. By using this site, you agree to the <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terms of Use</a> and <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy Policy</a>.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Project:About">About mediawiki.org</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Project:General_disclaimer">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/www.mediawiki.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//m.mediawiki.org/w/index.php?title=Manual:Language/th&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-f69cdc8f6-vthpd","wgBackendResponseTime":239,"wgPageParseReport":{"limitreport":{"cputime":"0.001","walltime":"0.001","ppvisitednodes":{"value":3,"limit":1000000},"postexpandincludesize":{"value":0,"limit":2097152},"templateargumentsize":{"value":0,"limit":2097152},"expansiondepth":{"value":1,"limit":100},"expensivefunctioncount":{"value":0,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":0,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 0.000 1 -total"]},"cachereport":{"origin":"mw-web.codfw.main-f69cdc8f6-vthpd","timestamp":"20241124135811","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>