ชุดส่วนขยายภาษามีเดียวิกิ
ชุดส่วนขยายภาษามีเดียวิกิ (MLEB) คือชุดส่วนขยายมีเดียวิกิที่ดูแลจัดการอย่างดีซึ่งนำเสนอคุณลักษณะหลายภาษา
พยายามจัดหาวิธีง่าย ๆ ในการสนับสนุนภาษาอย่างครอบคลุมไปยังมีเดียวิกิ
ภาพรวมของส่วนขยาย
MLEB เวอร์ชันปัจจุบันมีส่วนขยายหกรายการ:[1][2]
- Babel
- CLDR ("Common Locale Data Repository")
- Translate
- UniversalLanguageSelector
MLEB is released semi-annually after the new MediaWiki release and will only support the latest MediaWiki version. บันเดิลได้รับการทดสอบเทียบกับเวอร์ชันล่าสุดของมีเดียวิกิ ดังนั้นคุณจึงสามารถหลีกเลี่ยงการหยุดชั่วคราวส่วนใหญ่ที่จะเกิดขึ้นหากคุณใช้เวอร์ชันการพัฒนาล่าสุดของแต่ละส่วนขยาย
แรงจูงใจ
ตัวเลือกภาษาสากล เป็นสิ่งที่ต้องมีเพราะมันมีฟังก์ชั่นที่จำเป็นสำหรับผู้ใช้ใด ๆ โดยไม่คำนึงถึงจำนวนภาษาที่พวกเขาพูด: การเลือกภาษา, การสนับสนุนแบบอักษร สำหรับการแสดงสคริปต์ที่รองรับไม่ดีโดยระบบปฏิบัติการทั่วไปและ วิธีการป้อนข้อมูล สำหรับการพิมพ์ภาษาที่ไม่ใช้ตัวอักษรละติน ประกอบด้วยฟอนต์ลิขสิทธิ์ฟรี ซึ่งครอบคลุมภาษาหลักส่วนใหญ่ในอเมริกา ยุโรป ตะวันออกกลาง อินเดีย และเอเชียตะวันออกเฉียงใต้
การดูแลรักษาเนื้อหาหลายภาษาในวิกิเป็นเรื่องยุ่งเหยิงหากไม่มีส่วนขยาย การแปล ซึ่งใช้โดยมูลนิธิวิกิมีเดีย, KDE, translatewiki.net และไซต์อื่น ๆ
อย่าพลาดโอกาสในการฝึกฝนทักษะทางภาษาที่ล้าสมัย: ใช้ Babel extension เพื่อทำเครื่องหมายภาษาที่คุณพูดและค้นหาผู้พูดภาษาเดียวกันคนอื่น ๆ ในวิกิของคุณ และสุดท้าย CLDR extension คือฐานข้อมูลของการแปลภาษาและประเทศ
บันทึกประจำรุ่นและดาวน์โหลด
Latest release (2025.07)
- Download: https://translatewiki.net/mleb/MediaWikiLanguageExtensionBundle-2025.07.tar.bz2
- sha256sum: 4bde98632adeba62710779ec36025abb225939fe0b5052f6e793fcc84e1afb2e
- Signature: https://translatewiki.net/mleb/MediaWikiLanguageExtensionBundle-2025.07.tar.bz2.asc
- Announcement
- Release notes
- Compatible with MediaWiki >= 1.44.0 and requires PHP >= 8.1.0.
Highlights
- CleanChanges extension is no longer part of MLEB releases. See T379896. The Language filter has been integrated into the Translate extension. The User filter will be deprecated; use the standard Special:Contributions page as an alternative.
- To enable the language filter on
Special:RecentChanges, set$wgTranslateRecentChangesLanguageFilter = true;
- To enable the language filter on
Previous releases
2025.03
- Download: https://translatewiki.net/mleb/MediaWikiLanguageExtensionBundle-2025.03.tar.bz2
- sha256sum: 4f173ea9ebd31f894861b1fd06124727fe788fb008f9b983fdbe0446151d7fe5
- Signature: https://translatewiki.net/mleb/MediaWikiLanguageExtensionBundle-2025.03.tar.bz2.asc
- Announcement
- Release notes
- Compatible with MediaWiki >= 1.43.0 and requires PHP >= 7.4.0.
Highlights
- Future releases of MLEB will no longer include the CleanChanges extension. The Language filter has been integrated into the Translate extension. The User filter will be deprecated; use the standard
Special:Contributionspage as an alternative.- To enable the language filter on
Special:RecentChanges, set$wgTranslateRecentChangesLanguageFilter = true;
- To enable the language filter on
2024.07
- Download: https://translatewiki.net/mleb/MediaWikiLanguageExtensionBundle-2024.07.tar.bz2
- sha256sum: 81d2232577f8309cf3335073464f7c5be3c38b3703a858eac17061cca20daf2e
- Signature: https://translatewiki.net/mleb/MediaWikiLanguageExtensionBundle-2024.07.tar.bz2.asc
- Announcement
- Release notes
- Compatible with MediaWiki >= 1.41.0 and requires PHP >= 7.4.0.
Highlights
- As per discussion on phab:T356847 this is the last release to support MediaWiki 1.41 and MediaWiki 1.42. Moving forward, MLEB will be released semi-annually after the new MediaWiki release and will only support the latest MediaWiki version.
- Support has been dropped for MediaWiki 1.40. MLEB 2024.07 supports >= MediaWiki 1.41.
กำลังดาวน์โหลดด้วย Git
ในไดเรกทอรีส่วนขยายของคุณ ให้ทำดังต่อไปนี้เพื่อรับหรืออัปเดตเป็นรุ่นล่าสุด และทำตามคำแนะนำการกำหนดค่าด้านล่าง
for ext in Babel cldr 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 2025.07; 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' );
$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/run.php update
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.
- https://www.mediawiki.org/wiki/Extension:Babel
- https://www.mediawiki.org/wiki/Extension:CLDR
- https://www.mediawiki.org/wiki/Extension:UniversalLanguageSelector
- https://www.mediawiki.org/wiki/Help:Extension:Translate
ภูมิหลัง
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.
Releases
References
- ↑ LocalisationUpdate is no longer part of MLEB since 2022.07 release.
- ↑ CleanChanges is no longer part of MLEB since 2025.07 release.