Difference between revisions of "Translation Policy"
From LibrePlanet
(→การตั้งชื่อของหน้าการแปล) |
(→Introduction) |
||
| Line 1: | Line 1: | ||
{{Languages|master page=Translation_Policy|language=en}} | {{Languages|master page=Translation_Policy|language=en}} | ||
| − | == | + | == บทนำ == |
| − | + | เอกสารนี้กำหนดนโยบายการแปลสำหรับ [http://libreplanet.org LibrePlanet] วิกิพีเดีย | |
| − | + | ศัพท์ที่ใช้ในเอกสารนี้ | |
| − | ; | + | ; [หน้า] ต้นฉบับ |
| − | ; | + | หน้าหลัก; |
| − | : - | + | : -- ดูหน้าเว็บต้นฉบับ (ในภาษาที่ใช้โดยผู้เขียน) จากที่แปลจะทำ; |
| − | ; | + | ; แปล [หน้า] |
| − | : - | + | : -- หมายถึงหน้าที่มีคำแปลของหน้าต้นฉบับ |
== การตั้งชื่อของหน้าการแปล == | == การตั้งชื่อของหน้าการแปล == | ||
Revision as of 01:02, 27 May 2011
บทนำ
เอกสารนี้กำหนดนโยบายการแปลสำหรับ LibrePlanet วิกิพีเดีย
ศัพท์ที่ใช้ในเอกสารนี้
- [หน้า] ต้นฉบับ
หน้าหลัก;
- -- ดูหน้าเว็บต้นฉบับ (ในภาษาที่ใช้โดยผู้เขียน) จากที่แปลจะทำ;
- แปล [หน้า]
- -- หมายถึงหน้าที่มีคำแปลของหน้าต้นฉบับ
การตั้งชื่อของหน้าการแปล
หน้าการแปลควรตั้งชื่อในรูปแบบดังต่อไปนี้
<MasterPage> <th>
</ pre>
ที่ :
; <tt> <MasterPage.th> </ tt>
: เป็นชื่อต้นแบบของเพจ;
; <tt> <th> </ tt>
: การใช้ภาษาที่ใช้ในการแปล : รหัสตัวพิมพ์เล็ก 2 หลัก ([/ secure.wikimedia.org/wikipedia/th/wiki/List_of_ISO_639-1_codes / ISO 639-1 https]) เป็น
ดังนั้นกฎคือ : หน้าการแปลทำให้ชื่อ (แปล) เดียวกันของหน้าต้นฉบับพร้อมจุดตัวอักษรตามด้วยรหัสตัวพิมพ์เล็ก 2 หลัก (ISO 639-1) ของภาษาที่ใช้แปลในการ
นี้จะส่งผลดีผลการค้นหาสับสนน้อยลงและความสอดคล้องมากขึ้นของวิกิพีเดีย
ตัวอย่าง :
'Main_Page <tt> '' </ tt>''' แปลภาษาอิตาลีของของวิกิพีเดียนี้ควรตั้งชื่อเป็น '''<tt Main_Page.it <tt>> / '''
== แถบภาษา (แม่แบบ'ภาษา') ==
เมื่อการแปลหน้าหลักบางอย่างอยู่ในวิกิพีเดียแล้วทั้งหน้าหลักหรือหน้าเว็บแต่ละหน้าจะแสดงคำแปล (ที่พวกเขาด้านบน) แถบภาษาเชื่อมโยงไปยังการแปลที่ใช้ได้ทั้งหมด
โดยให้ทำหน้าต้นแบบและทุกหน้าของการแปลควรโทร (ที่ด้านบนของพวกเขา) [[แม่แบบ : ภาษา]]
แม่แบบนี้ควรจะถูกเรียกว่าในรูปแบบดังต่อไปนี้
<pre>
{{ภาษา | หน้าหลัก = <MasterPage> | ภาษา = <LangCode>}}
</ pre>
ที่ :
; <tt> <MasterPage> </ tt>
: เป็นชื่อของเพจต้นแบบ;
; <tt> <LangCode> </ tt>
: รหัสตัวพิมพ์เล็ก 2 หลักคือ ([https : / / secure.wikimedia.org/wikipedia/en/wiki/List_of_ISO_639-1_codes ISO 639-1]) ของภาษาที่ใช้สำหรับเนื้อหาของหน้าเว็บจากที่แม่ตัวเอง จะถูกเรียกว่า (ไม่ว่ามันคือหน้าหลักหรือหนึ่งในการแปลไม่ได้)
ตัวอย่าง :
'''<tt> Main_Page </ tt> '''ของวิกิพีเดียนี้ได้รับการเขียนเป็นภาษาอังกฤษดังนั้นจึงควรมีที่ด้านบน : <br />
<pre>
{{ภาษา | หน้าหลัก = Main_Page | ภาษา = th}}
</ pre>
หน้าควรจะมีการแปลภาษาอิตาลีที่ด้านบนของมัน
<pre>
{{ภาษา | หน้าหลัก = Main_Page | ภาษา = it}}
</ pre>
โปรดทราบว่าในทั้งสองกรณีเป็นแม่แบบที่เรียกว่า '' หมายถึงหลักของหน้าเว็บเดียวกัน '' (นี้ให้พวกเขาทั้งหมดที่เกี่ยวข้องกับแต่ละอื่น ๆ !) แต่สำหรับหน้าเว็บในภาษาอังกฤษมีการใช้รหัส ''''<> tt en <tt / >'''' ในขณะที่สำหรับหน้าเว็บในอิตาลีมีการใช้ tt ''''< code> มันได้ <tt / >''''.
=== === ความหมายคุณสมบัติของภาษา
เมื่อใช้ [[แม่แบบ : ภาษา]] ทั้ง [http://semantic-mediawiki.org/wiki/Semantic_MediaWiki คุยเกี่ยวกับความหมาย] [[Special : คุณสมบัติ | คุณสมบัติ]] '' '' '' '' ภาษาและรหัส '' ภาษา '' เนื้อหา '' '' สำหรับหน้าโทรถูกตั้งค่าให้ <tt> <LangCode> </ tt> ค่าพารามิเตอร์ คุณสมบัติเหล่านี้แล้วสามารถนำมาใช้ในการค้นหาความหมายและการค้นหาในวิกินี้
ในคำอื่น ๆ ต่อไปนี้ตัวอย่างข้างต้นเมื่อรวมทั้งในหน้า :
<pre>
{{ภาษา | หน้าหลัก = Main_Page | ภาษา = it}}
</ pre>
ไม่เพียง แต่จะแสดงแถบภาษาเท่านั้น แต่ยังจะกำหนด'<tt> มัน </ tt>'มูลค่าให้กับทั้งคุณสมบัติทางความหมาย'<tt> รหัสภาษา </ tt>'และ'เนื้อหา <<tt> ภาษา /> tt'สำหรับหน้านั้น ซึ่งหมายความว่าหน้านี้จะจับคู่เมื่อค้นหา / สอบถามคุยเกี่ยวกับความหมายของหน้าเว็บเหล่านั้นมี'<tt> รหัสภาษา </ tt>'หรือ'<tt> เนื้อหาภาษา </ tt>'ตั้งค่าคุณสมบัติ tt <เพื่อ' > มันได้ </> tt'
== Renaming/moving a master page ==
In order to keep the [[Template:Languages]] working as expected when renaming/moving a master page, then the "old" master page should '''NOT be deleted''' and a [http://www.mediawiki.org/wiki/Help:Redirects redirection] to the "new" master page should be set. This is needed because the translation pages including the [[Template:Languages]] still refer to the "old" master page name after it has been renamed/moved.
Only if '''''all''''' the references to the "old" master page in its translation pages were updated with the "new" master page name, then the [http://www.mediawiki.org/wiki/Help:Redirects redirection] of the "old" master page is not required.
Example: To rename the <tt>Group:LibrePlanetTest\FooPage</tt> master page in <tt>Group:LibrePlanetTest\FooPageNew</tt> keeping at the same time the language bar correctly displaying its translation pages, the 'FooPage' should NOT deleted and its content should be replaced with:
<pre>
#REDIRECT [[Group:LibrePlanetTest\FooPageNew]]
Aligning existing translation pages to this policy
If a master page has one or more translation, then they should be checked in order to be aligned to this policy.
To do this:
- the names of all the translation pages should be aligned to the naming format described above:
- create a new page for the translation, giving it the "right" name accordingly with the <MasterPage>.<LangCode> format;
- cut 'n paste ALL the content from the "old" translation page (that with the "wrong" name) to the "new" page just created (that with the "right" name);
- redirect the "old" translation page to the "new" one;
- either the master page and all its translation pages should be checked in order to add a call to the Template:Languages (using the calling format described above) if such a call it is missing or wrong.