diff --git a/i18n/de.json b/i18n/de.json index 24b9b35..448b258 100644 --- a/i18n/de.json +++ b/i18n/de.json @@ -7,6 +7,7 @@ "linktitles-special-page-count": "Seite $1 von $2.\n", "linktitles-special-cancel-notice": "=== Um abzubrechen, schließen Sie diese Seite, oder klicken Sie den 'Stopp'-Knopf in Ihrem Browser ===\n[[Special:LinkTitles|Zu Special:LinkTitles zurückkehren.]]", "linktitles-special-completed-info": "== Stapelverarbeitung abgeschlossen! ==\n{| class=\"wikitable\"\n|-\n| Anzahl der verarbeiteten Seiten: || $1\n|-\n| Verarbeitungsintervall [s]: || $2\n|-\n| Reloads: || $3\n|-\n| Seiten pro Reload: || $4\n|}", + "linktitles-bot-comment": "Die LinkTitles-Erweiterung hat automatisch Links zu anderen Seiten hinzugefügt ($1).", "right-linktitles-batch": "LinkTitles-Stapelverarbeitung ausführen", "action-linktitles-batch": "LinkTitles-Stapelverarbeitung auszuführen" } diff --git a/i18n/en.json b/i18n/en.json index 251f206..5481835 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -7,6 +7,7 @@ "linktitles-special-page-count": "Page $1 of $2.\n", "linktitles-special-cancel-notice": "=== To abort, close this page, or hit the 'Stop' button in your browser ===\n[[Special:LinkTitles|Return to Special:LinkTitles.]]", "linktitles-special-completed-info": "== Batch processing completed! ==\n{| class=\"wikitable\"\n|-\n| total number of pages: || $1\n|-\n| timeout setting [s]: || $2\n|-\n| webpage reloads: || $3\n|-\n| pages scanned per reload interval: || $4\n|}", + "linktitles-bot-comment": "The LinkTitles extension automatically added links to existing pages ($1).", "right-linktitles-batch": "Perform a LinkTitles batch operation", "action-linktitles-batch": "perform a LinkTitles batch operation" } diff --git a/i18n/qqq.json b/i18n/qqq.json index 0762bfc..e49d4c4 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -7,6 +7,7 @@ "linktitles-special-page-count": "Number of pages.", "linktitles-special-cancel-notice": "Informs the user how to cancel the LinkTitles batch processing.", "linktitles-special-completed-info": "Text and statistics table that appear when batch processing has completed.", + "linktitles-bot-comment": "Comment to add when pages are processed by LinkTitles\\Extension::processPage. The parameter may take the URL the the extension's homepage.", "right-linktitles-batch": "Describes the right to perform a LinkTitles batch operation.", "action-linktitles-batch": "Describes the action of performing a LinkTitles batch operation." } diff --git a/includes/Extension.php b/includes/Extension.php index 2d30046..d46cad8 100644 --- a/includes/Extension.php +++ b/includes/Extension.php @@ -84,7 +84,7 @@ class Extension { $content = $source->getContent()->getContentHandler()->unserializeContent( $result ); $source->getPage()->doEditContent( $content, - "Links to existing pages added by LinkTitles bot.", // TODO: i18n + \wfMessage( 'linktitles-bot-comment', self::URL ), EDIT_MINOR | EDIT_FORCE_BOT, false, // baseRevId $context->getUser()