扩展:翻译通知
![]() 發佈狀態: 穩定版本 |
|
---|---|
实现 | 特殊页面 , 通知 |
描述 | 允许译者登记以获取翻译通知 |
作者 | Jon Harald Soby, Amir Aharoni, Santhosh Thottingal, Niklas Laxström, Siebrand Mazeland |
最新版本 | Continuous updates |
MediaWiki | 1.34+ |
数据库更改 | 否 |
Composer | mediawiki/translation-notifications |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下載 | |
示例 | translatewiki.net |
|
|
季度下載量 | 8 (Ranked 166th) |
翻譯TranslationNotifications的扩展,若在translatewiki.net可用 | |
問題 | 尚未完成的工作 · 报告錯誤 |
The TranslationNotifications extension provides a way to manage the communication with translators on a wiki which uses the Translate extension.
The extension has two main parts:
- For translators
- A form where translators sign themselves up for notifications. They can indicate the languages into which they can translate and preferred contact methods and frequency, including digest options.
- For translation managers
- A form for sending out page translation requests. The notification will be delivered to all translators matching the conditions either immediately or later in a digest email.
-
登记表单
-
通知表单
开始之前
此扩展只有安装并配置翻译扩展后才有用。 It uses the MassMessage extension to leave messages on user's talk pages, so that extension should also be installed.
下载说明
此扩展可直接从Git检索到 [?]:
- 浏览代码
- 部分扩展有稳定版本标签。
- 浏览标签
- 选择标签
- 点击“快照”
- 每个分支与过去的MediaWiki发布版本相关联。 这里也有一个“主线”分支,包含最新alpha版本(可能需要MediaWiki的alpha版本)。
- 浏览分支
- 选择一个分支名称
- 点击“继续”
提取快照,并将它放置在您的MediaWiki安装副本的extensions/TranslationNotifications/目录中。
如果您对git熟悉,并且拥有您服务器的shell访问权,您也可以通过以下方法获得扩展:
cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TranslationNotifications.git
安裝
- 下载文件,并将其放置在您
extensions/
文件夹中的TranslationNotifications
目录内。 - 将下列代码放置在您的
LocalSettings.php
的底部:wfLoadExtension( 'TranslationNotifications' );
- 根据需要配置
- 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。
配置
使用以下配置变量:
$wgTranslationNotificationsContactMethods
configures which contact methods are enabled. These are the default values:
$wgTranslationNotificationsContactMethods = [
'email' => true,
'talkpage' => true,
'talkpage-elsewhere' => false,
];
特殊页面
Special:TranslatorSignup
A special page where translators can sign up. Example: Special:TranslatorSignup on Wikimedia's Meta-wiki. Users can set their language preferences (first, second and third language) and the contact method such as email or talk page notifications. It's also possible to ask to be notified on a talk page on a different wiki in the same CentralAuth-based wiki family.[1] They can also choose the frequency of notifications: always (every time there is something to translate), weekly digest or monthly digest. The email option will be available only for users who confirmed their email address.
In the case you have enabled email notification for user talk edits in the wiki of choice, you'll get it also for translation notifications, so it's probably better to select only email as method, to avoid duplicate messages.
Special:NotifyTranslators
This page is available for translation managers. They use it to notify about the availability of a translatable page (notifications for other message groups are not supported). They can optionally set a deadline and a priority, and add a custom message. They can also send the notification only to translators to particular languages. If no languages are set, all the translators who signed up will receive the notification.
The user right required to operate this page is 'translate-manage'. For example, to allow all sysops to use this page, add the following line to your LocalSettings.php file:
$wgGroupPermissions['sysop']['translate-manage'] = true;
通知的配置
The notifications - email, digest emails, talk page notifications - are done with the help of the Job Queue. You need to configure the job queue execution time as explained in the Job queue manual.
The DigestEmailer script needs to be configured using a cron job. For example, it can be scheduled to run on every Sunday 10AM using a crontab entry like the following one:
0 10 * * 7 /usr/bin/php /www/wiki/extensions/TranslationNotifications/scripts/DigestEmailer.php 2>&1 > /var/log/digestEmail.log
The script will not start sending emails immediately. It starts inserting email jobs to the MediaWiki job queue. Depending on the configured job queue scheduling, the mails will be sent out.
脚注
- ↑ And if the wiki is a part of such a family, of course.
此扩展用于一个或多个维基媒体项目。 这可能意味着扩展足够稳定、运作足够良好,可以用在这样的高流量的网站上。 请在维基媒体的CommonSettings.php和InitialiseSettings.php配置文件中查找此扩展的名称以查看哪些网站安装了该扩展。 特定wiki上的已安装的扩展的完整列表位于Special:Version页面。 |
此擴充功能包含在以下包或/和wiki農場: 這不是一份權威名單。即使一些wiki農場/託管者沒有被列在這裡,他們也可能包含這個extension。請以各wiki農場/託管者或包的狀態為準。 |