快捷方式: MLEB

MediaWiki语言扩展包

From mediawiki.org
This page is a translated version of the page MediaWiki Language Extension Bundle and the translation is 100% complete.


MediaWiki语言扩展包(MLEB)是一个为MediaWiki扩展提供的多语言特征的策划组。 它尝试提供一个简单的方式来带来给MediaWiki一个综合语言支持。

扩展概述

现在版本的MLEB包含六个扩展:

MLEB有一个季度发布时间表,因此你能通过不断地提升语言支持来很简单地保持在前沿。 软件测试了MediaWiki最近的发行版本,因此如果你使用最新的每个扩展的开发版本,你能避免大多数的技术难题的发生。

启用

Universal Language Selector 是必不可少的,因为它为任何用户提供了一项基本功能,无论他们说多少语言:语言选择字体支持 用于显示常见操作系统严重支持的脚本,以及用于键入不使用拉丁字母的语言的输入法。 它包含免费授权字体,其中包含大多数的美洲、欧洲、中东、印度和东南亚的专业字体。

在没有Translate项目的条件下,在一个wiki项目中维护多语内容是一团糟。 他被用于维基媒体基金会,KDE,维基翻译项目和其他网站。 使用 Localisation Update,您的用户将始终获得最新翻译。 Clean Changes extension 使您最近的更改页面免受翻译活动和其他混乱的影响。

不要错过练习生疏语言技能的机会:使用 Babel 扩展程序 标记您说的语言,并在您的 wiki 中找到其他说相同语言的人。 最后,cldr extension 是一个语言和国家/地区翻译数据库。


发行说明和下载

Latest release

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

Previous releases

2022.01
Translate
UniversalLanguageSelector
  • Remove backward compatibility for MW <= 1.35
2021.12
Translate

2021.11
Translate
  • Fix compatibility with MediaWiki <= 1.37 when VisualEditor is installed. (Phab:T294605)

2021.10
Translate
  • SECURITY: Allow revdel-related actions in translatable pages (Gerrit)
  • BREAKING CHANGES
    • Export script: remove --hours (Gerrit)
    • Remove translation aids customization (Hook: TranslateTranslationAids) (Gerrit)
    • Remove $wgTranslateDelayedMessageIndexRebuild (Gerrit)
    • Remove getConfiguration and getFFS from MessageGroup (Gerrit)
    • Group configuration: Rename validator keymatch option to include (Gerrit)
UniversalLanguageSelector
  • SECURITY: Language name search: Avoid searching for very long search keys (Gerrit, Phabricator)
  • Improve support for the new Vector Skin.
  • Remove configuration ULSEnableAnon (Gerrit)
  • Add support for multiple ULS buttons (Gerrit)

2021.07
Translate
  • SECURITY: Enhance validation and logging for AggregateGroups API deletions (任务T282932)
  • BREAKING CHANGES

Configuration variable changes

To address voice and tone issues in the Translate extension (任务T277965) the following configuration variable names have been renamed:

  • TranslateBlacklistTranslateDisabledTargetLanguages
  • TranslateAuthorBlacklistTranslateAuthorExclusionList
  • TranslateCheckBlacklistTranslateValidationExclusionFile

The old variables will be supported for MLEB 2021.07 release but removed in the MLEB 2021.10 release.

If you have defined message groups defined with LANGUAGE attributes, whitelist/blacklist have been changed to include/exclude

UniversalLanguageSelector
  • BREAKING CHANGE: UniversalLanguageSelector extension now requires MediaWiki 1.35 or above.
  • MODERN VECTOR:
    • Position language menu below language button. (任务T276248)
    • Fix "ULS settings window can’t be opened with the preferences link on new Vector". (任务T282956)

2021.06
Translate
  • Fix metadata handling for translatable page moves and deletions. (任务T282905)
  • Restore suggested languages to compact languages button. (任务T282037)

2021.04
Translate
  • Consider translated optional messages towards meeting the export threshold (任务T159122)
  • Do not lock pages indefinitely during translatable page moves (Gerrit change 661125)
  • Limit pages that can be moved from the UI to 500 by default. (任务T277431)
    • This can be modified by updating the configuration: $wgTranslatePageMoveLimit
  • Namespace for classes under the src/ folder has been changed to: MediaWiki\Extension\Translate instead of: MediaWiki\Extensions\Translate. class_alias has been used to ensure existing functionality and cached data does not break. The alias will be removed in the next MLEB release.
UniversalLanguageSelector

2021.01
Translate
UniversalLanguageSelector

Show all releases.

使用 Git 下载

在您的扩展目录中执行以下操作以获取或更新到最新版本,并按照下面的配置说明进行操作。

 for ext in Babel cldr CleanChanges LocalisationUpdate 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 2022.04; cd ..
 done


Installation

Installation requirements

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

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( 'LocalisationUpdate' );
$wgLocalisationUpdateDirectory = "$IP/cache";

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. Do note that LocalisationUpdate does nothing by default and needs additional configuration to be run periodically.

背景

MLEB不用于特定版本的项目分支。 这是来自 master 的截图,经过验证可以与指定的 MediaWiki 版本一起使用。 这意味着所有 MLEB 扩展必须遵循在 master 分支中支持两个最新的稳定 MediaWiki 版本的兼容性策略。

MLEB 版本是使用名为 Melange 的工具创建的。 如果您对该代码感兴趣(例如,您想更改其代码),请参阅 Git 中的 Melange 存储库。