Localize comment that is added by processPage.

- Improved: The comment that is added when pages are edited by the maintenance script can now be translated using a message.
This commit is contained in:
Daniel Kraus
2017-09-03 20:02:31 +02:00
parent a0449eaf6d
commit fa9d10bd63
4 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,7 @@
"linktitles-special-page-count": "Seite $1 von $2.\n", "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-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-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", "right-linktitles-batch": "LinkTitles-Stapelverarbeitung ausführen",
"action-linktitles-batch": "LinkTitles-Stapelverarbeitung auszuführen" "action-linktitles-batch": "LinkTitles-Stapelverarbeitung auszuführen"
} }

View File

@ -7,6 +7,7 @@
"linktitles-special-page-count": "Page $1 of $2.\n", "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-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-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", "right-linktitles-batch": "Perform a LinkTitles batch operation",
"action-linktitles-batch": "perform a LinkTitles batch operation" "action-linktitles-batch": "perform a LinkTitles batch operation"
} }

View File

@ -7,6 +7,7 @@
"linktitles-special-page-count": "Number of pages.", "linktitles-special-page-count": "Number of pages.",
"linktitles-special-cancel-notice": "Informs the user how to cancel the LinkTitles batch processing.", "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-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.", "right-linktitles-batch": "Describes the right to perform a LinkTitles batch operation.",
"action-linktitles-batch": "Describes the action of performing a LinkTitles batch operation." "action-linktitles-batch": "Describes the action of performing a LinkTitles batch operation."
} }

View File

@ -84,7 +84,7 @@ class Extension {
$content = $source->getContent()->getContentHandler()->unserializeContent( $result ); $content = $source->getContent()->getContentHandler()->unserializeContent( $result );
$source->getPage()->doEditContent( $source->getPage()->doEditContent(
$content, $content,
"Links to existing pages added by LinkTitles bot.", // TODO: i18n \wfMessage( 'linktitles-bot-comment', self::URL ),
EDIT_MINOR | EDIT_FORCE_BOT, EDIT_MINOR | EDIT_FORCE_BOT,
false, // baseRevId false, // baseRevId
$context->getUser() $context->getUser()