Extension:TranslationNotifications

This 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.

Prerequisites
The extension is useful only if the Translate extension is installed and configured.

Download instructions
Download TranslationNotifications and put it in to a directory named  under

Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php:

Special:TranslatorSignup
A special page where translators can sign up. Example: Special:TranslatorSignup at translatewiki.net. Users can set their language preferences (First, Second, and Third language) and the contact method such as email or talk page notifications. 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.

Special:NotifyTranslators
This page is available for translation managers. They use it notify about the availability of a translatable page. 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:

Notification configuration
The notifications - email, digest emails, talk page notifications - are done with the help of Job Queue. You need to configure the job queue execution time as explained in the Job queue manual.

The DigestEmailer script need to be configured using a cron job. For example, it can be scheduled to run on every Sunday 10AM using the following crontab entry:

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 send out.