Phần mở rộng:Thông báo dịch thuật

From mediawiki.org
This page is a translated version of the page Extension:TranslationNotifications and the translation is 55% complete.
Cẩm nang phần mở rộng MediaWiki
TranslationNotifications
Trạng thái phát hành: ổn định
Cài đặt Special page , Notify
Mô tả Cho phép người dịch đăng ký nhận thông báo dịch
Tác giả Jon Harald Soby, Amir Aharoni, Santhosh Thottingal, Niklas Laxström, Siebrand Mazeland
Phiên bản Cập nhật liên tục
MediaWiki 1.34+
Database changes Không
Composer mediawiki/translation-notifications
Giấy phép GNU General Public License 2.0 or later
Tải xuống
Ví dụ translatewiki.net
  • $wgTranslationNotificationsAlwaysHttpsInEmail
  • $wgTranslationNotificationsSignupLegalMessage
  • $wgTranslationNotificationsContactMethods
Quarterly downloads 5 (Ranked 145th)
Translate the TranslationNotifications extension if it is available at translatewiki.net
Phản hồi Open tasks · Báo cáo lỗi

Phần mở rộng TranslationNotifications là một cách để quản lý giao tiếp với các dịch giả trên một wiki sử dụng phần mở rộng Translate.

Phần mở rộng có hai phần chính:

Đối với người dịch
Một biểu mẫu để người dịch tự đăng ký nhận thông báo. Họ có thể chỉ ra ngôn ngữ mà họ có thể dịch và phương pháp và tần suất liên hệ ưa thích, bao gồm các tùy chọn thông báo.
Đối với người quản lý dịch thuật
Biểu mẫu gửi yêu cầu page translation. Thông báo sẽ được gửi đến tất cả các dịch giả khớp với các điều kiện ngay lập tức hoặc muộn hơn trong email thông báo.

Điều kiện

Phần mở rộng này chỉ có ích khi phần mở rộngBiên dịch được cài đặt và cấu hình. It uses the MassMessage extension to leave messages on user's talk pages, so that extension should also be installed.

Cài đặt

  • Download and move the extracted TranslationNotifications folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TranslationNotifications
  • Thêm mã sau vào dưới cùng tệp $LocalSettings của bạn:
    wfLoadExtension( 'TranslationNotifications' );
    
  • Cấu hình như yêu cầu.
  • Yes Xong – Chuyển tới Special:Version trên wiki của bạn để xác nhận phần mở rộng được cài đặt thành công.

Cấu hình

Một số biến để cấu hình được sử dụng như sau:

$wgTranslationNotificationsContactMethods configures which contact methods are enabled. These are the default values:

$wgTranslationNotificationsContactMethods = [
	'email' => true,
	'talkpage' => true,
	'talkpage-elsewhere' => false,
];

Special pages

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;

Notification configuration

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.

Footnotes

  1. And if the wiki is a part of such a family, of course.