ชุดส่วนขยายภาษามีเดียวิกิ

shortcut: MLEB
From mediawiki.org
This page is a translated version of the page MediaWiki Language Extension Bundle and the translation is 85% complete.
Outdated translations are marked like this.


ชุดส่วนขยายภาษามีเดียวิกิ (MLEB) คือชุดส่วนขยายมีเดียวิกิที่ดูแลจัดการอย่างดีซึ่งนำเสนอคุณลักษณะหลายภาษา พยายามจัดหาวิธีง่าย ๆ ในการสนับสนุนภาษาอย่างครอบคลุมไปยังมีเดียวิกิ

ภาพรวมของส่วนขยาย

MLEB เวอร์ชันปัจจุบันมีส่วนขยายหกรายการ:

[1]

MLEB มีกำหนดการเผยแพร่รายไตรมาส ดังนั้นคุณจึงไม่พลาดทุกความเคลื่อนไหวด้วยการสนับสนุนภาษาที่ปรับปรุงอย่างต่อเนื่อง บันเดิลได้รับการทดสอบเทียบกับเวอร์ชันล่าสุดของมีเดียวิกิ ดังนั้นคุณจึงสามารถหลีกเลี่ยงการหยุดชั่วคราวส่วนใหญ่ที่จะเกิดขึ้นหากคุณใช้เวอร์ชันการพัฒนาล่าสุดของแต่ละส่วนขยาย

แรงจูงใจ

ตัวเลือกภาษาสากล เป็นสิ่งที่ต้องมีเพราะมันมีฟังก์ชั่นที่จำเป็นสำหรับผู้ใช้ใด ๆ โดยไม่คำนึงถึงจำนวนภาษาที่พวกเขาพูด: การเลือกภาษา, การสนับสนุนแบบอักษร สำหรับการแสดงสคริปต์ที่รองรับไม่ดีโดยระบบปฏิบัติการทั่วไปและ วิธีการป้อนข้อมูล สำหรับการพิมพ์ภาษาที่ไม่ใช้ตัวอักษรละติน ประกอบด้วยฟอนต์ลิขสิทธิ์ฟรี ซึ่งครอบคลุมภาษาหลักส่วนใหญ่ในอเมริกา ยุโรป ตะวันออกกลาง อินเดีย และเอเชียตะวันออกเฉียงใต้

การดูแลรักษาเนื้อหาหลายภาษาในวิกิเป็นเรื่องยุ่งเหยิงหากไม่มีส่วนขยาย การแปล ซึ่งใช้โดยมูลนิธิวิกิมีเดีย, KDE, translatewiki.net และไซต์อื่น ๆ

ส่วนขยาย Clean Changes ช่วยให้หน้าการเปลี่ยนแปลงล่าสุดของคุณไม่กระจัดกระจายจากกิจกรรมการแปลและความยุ่งเหยิงอื่นๆ

อย่าพลาดโอกาสในการฝึกฝนทักษะทางภาษาที่ล้าสมัย: ใช้ Babel extension เพื่อทำเครื่องหมายภาษาที่คุณพูดและค้นหาผู้พูดภาษาเดียวกันคนอื่น ๆ ในวิกิของคุณ และสุดท้าย cldr extension คือฐานข้อมูลของการแปลภาษาและประเทศ


บันทึกประจำรุ่นและดาวน์โหลด

Latest release

2024.01
Highlights
  • MediaWiki Language Extension Bundle 2024.01 no longer supports MediaWiki 1.39 and requires MediaWiki 1.40 or above.
  • The hook Translate:GettextFFS:headerFields has been deprecated, use Translate:GettextFormat:headerFields instead.

Previous releases

2023.12
Highlights
  • Translate extension: Fix broken Special:SpecialPages for MediaWiki 1.40, and 1.39 (task T351959).
2023.10
Highlights
  • Translate extension: Removed mirrors option when providing configuration for translation memory.
2023.07
Highlights
  • This release of MLEB now requires MediaWiki >= 1.39
2023.04
Highlights
  • This is the last release of MLEB supporting MediaWiki >= 1.38
2023.01
Highlights
  • MLEB now requires PHP >= 7.4 and MediaWiki >= 1.38
2022.10
Highlights
  • [SECURITY] Translate: Adds missing block checks to various pages and API (task T302479, Gerrit change 838940)
  • This will be the last MLEB release supporting PHP 7.3 and MediaWiki 1.37
2022.07
LocalisationUpdate
  • LocalisationUpdate extension is removed from MediaWiki Language Extension Bundle. Please read the announcement.
Translate
2022.04
LocalisationUpdate
  • We're planning to sunset the LocalisationUpdate extension from version 2022.07. Please read the announcement.
Translate
  • If you are using translation memory with ElasticSearch backend, we recommend rebuilding the translation memory index. This can be done by running php <path_to_mediawiki_core>/extensions/Translate/scripts/ttmserver-export.php

Show all releases.

กำลังดาวน์โหลดด้วย Git

ในไดเรกทอรีส่วนขยายของคุณ ให้ทำดังต่อไปนี้เพื่อรับหรืออัปเดตเป็นรุ่นล่าสุด และทำตามคำแนะนำการกำหนดค่าด้านล่าง

 for ext in Babel cldr CleanChanges Translate UniversalLanguageSelector
 do
   if [ ! -d "$ext" ]
   then
     git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/$ext.git
   fi
   cd $ext; git fetch --tags; git checkout 2023.12; cd ..
 done


Installation

Installation requirements

Installation requirements of each piece of provided software are included in the respective documentation. See in particular the installation requirements.

Add/update your LocalSettings.php

Near the end of LocalSettings.php, you have to place this configuration:

wfLoadExtension( 'Babel' );

wfLoadExtension( 'cldr' );

wfLoadExtension( 'CleanChanges' );
$wgCCTrailerFilter = true;
$wgCCUserFilter = false;
$wgDefaultUserOptions['usenewrc'] = 1;

wfLoadExtension( 'Translate' );
$wgGroupPermissions['user']['translate'] = true;
$wgGroupPermissions['user']['translate-messagereview'] = true;
$wgGroupPermissions['user']['translate-groupreview'] = true;
$wgGroupPermissions['user']['translate-import'] = true;
$wgGroupPermissions['sysop']['pagetranslation'] = true;
$wgGroupPermissions['sysop']['translate-manage'] = true;
$wgTranslateDocumentationLanguageCode = 'qqq';
$wgExtraLanguageNames['qqq'] = 'Message documentation'; # No linguistic content. Used for documenting messages

wfLoadExtension( 'UniversalLanguageSelector' );

Update database tables

Command line

In the directory where your LocalSettings.php is located, run the following command:

php maintenance/update.php

Web browser

Go to example.com/mediawiki/mw-config/ (see Manual:Upgrading#Web browser) by using your domain and path and rerun install.

Configuring and using extensions

See the respective extension documentation pages.

ภูมิหลัง

MLEB ไม่ได้ใช้ส่วนขยายเฉพาะรุ่น เป็นสแนปชอตจากต้นแบบซึ่งได้รับการตรวจสอบแล้วว่าสามารถทำงานร่วมกับมีเดียวิกิรุ่นที่ระบุได้ ซึ่งหมายความว่าส่วนขยาย MLEB ทั้งหมดต้องเป็นไปตามนโยบายความเข้ากันได้ของการสนับสนุนมีเดียวิกิที่เสถียรล่าสุดสองรุ่นในสาขาหลัก

MLEB รีลีสถูกสร้างขึ้นด้วยเครื่องมือที่เรียกว่า Melange หากคุณสนใจรหัสนั้น (เช่น คุณต้องการเปลี่ยนรหัส) ให้ดูที่เก็บ Melange ใน Git We may drop support for EOL versions of PHP, but will have at least one compatible version for each MediaWiki version we support.

References

  1. LocalisationUpdate is no longer part of MLEB since 2022.07 release.