mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-12 17:29:30 +02:00
Fix special page I18N.
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
{
|
||||
"linktitles": "LinkTitles",
|
||||
"linktitles-desc": "Fügt beim Speichern von Seiten automatisch Querverweise zu vorhandenen Seiten ein.",
|
||||
"linktitles-special-info": "LinkTitles-Erweiterung: $1\n== Stapelverarbeitung ==\nKlicken Sie auf den Button, um die Stapelverarbeitung zu beginnen. Die Erweiterung wird nacheinander alle Seiten Ihres Wikis mit automatischen Links versehen. Um zu verhindern, daß der Server bei der Ausführung blockiert wird, wird diese Seite sich wiederholt selbst aufrufen. Um die Stapelverarbeitung abzubrechen, schließen Sie einfach diese Seite.",
|
||||
"linktitles-special-info": "LinkTitles-Erweiterung: <$1>\n== Stapelverarbeitung ==\nKlicken Sie auf den Button, um die Stapelverarbeitung zu beginnen. Die Erweiterung wird nacheinander alle Seiten Ihres Wikis mit automatischen Links versehen. Um zu verhindern, daß der Server bei der Ausführung blockiert wird, wird diese Seite sich wiederholt selbst aufrufen. Um die Stapelverarbeitung abzubrechen, schließen Sie einfach diese Seite.",
|
||||
"linktitles-special-submit": "Stapelverarbeitung beginnen",
|
||||
"linktitles-special-progress": "== Verarbeite die Seiten... ==\nDie [$1 LinkTitles-Erweiterung] verarbeitet gerade alle Seiten Ihres Wikis.\n=== Aktuelle Seite: $2 ===",
|
||||
"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.]]",
|
||||
|
@ -2,6 +2,7 @@
|
||||
"linktitles": "LinkTitles",
|
||||
"linktitles-desc": "Automatically adds links to existing pages whenever a page is saved.",
|
||||
"linktitles-special-info": "LinkTitles extension: $1\n== Batch Linking ==\nYou can start a batch linking process by clicking on the button below. This will go through every page in the normal namespace of your Wiki and insert links automatically. This page will repeatedly reload itself, in order to prevent blocking the server. To interrupt the process, simply close this page.",
|
||||
"linktitles-special-submit": "Start linking now",
|
||||
"linktitles-special-progress": "== Processing pages... ==\nThe [$1 LinkTitles] extension is currently going through every page of your wiki, adding links to existing pages as appropriate.\n=== Current page: $2 ===",
|
||||
"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.]]",
|
||||
|
@ -2,6 +2,7 @@
|
||||
"linktitles": "Name of the LinkTitles extension; also used for the special page.",
|
||||
"linktitles-desc": "Description of the LinkTitles extension.",
|
||||
"linktitles-special-info": "Descriptive text that appears on the Special:LinkTitles page.",
|
||||
"linktitles-special-submit": "Label for submit button to start linking.",
|
||||
"linktitles-special-progress": "Text that is shown on the Special:LinkTitles page while batch processing is executing.",
|
||||
"linktitles-special-page-count": "Number of pages.",
|
||||
"linktitles-special-cancel-notice": "Informs the user how to cancel the LinkTitles batch processing.",
|
||||
|
@ -175,12 +175,13 @@ class Special extends \SpecialPage {
|
||||
* and a form and button to start linking.
|
||||
*/
|
||||
private function buildInfoPage( &$request, &$output ) {
|
||||
$output->addWikiText( $this->msg( 'linktitles-special-info', Extension::URL ) );
|
||||
$output->addWikiMsg( 'linktitles-special-info', Extension::URL );
|
||||
$url = $request->getRequestURL();
|
||||
$submitButtonLabel = $this->msg( 'linktitles-special-submit' );
|
||||
$output->addHTML(
|
||||
<<<EOF
|
||||
<form method="post" action="${url}">
|
||||
<input type="submit" value="Start linking" />
|
||||
<input type="submit" value="$submitButtonLabel" />
|
||||
<input type="hidden" name="s" value="0" />
|
||||
</form>
|
||||
EOF
|
||||
@ -198,9 +199,9 @@ EOF
|
||||
$progress = $index / $end * 100;
|
||||
$percent = sprintf("%01.1f", $progress);
|
||||
|
||||
$output->addWikiText( $this->msg( 'linktitles-special-progress', Extension::URL, $curTitle ) );
|
||||
$output->addWikiMsg( 'linktitles-special-progress', Extension::URL, $curTitle );
|
||||
$pageInfo = $this->msg( 'linktitles-page-count', $index, $end );
|
||||
$output->addWikiText( 'linktitles-special-page-count', $index, $end );
|
||||
$output->addWikiMsg( 'linktitles-special-page-count', $index, $end );
|
||||
$output->addHTML( // TODO: do not use the style attribute (to make it work with CSP-enabled sites)
|
||||
<<<EOF
|
||||
<div style="width:100%; padding:2px; border:1px solid #000; position: relative; margin-bottom:16px;">
|
||||
@ -209,7 +210,7 @@ EOF
|
||||
</div>
|
||||
EOF
|
||||
);
|
||||
$output->addWikiText( $this->msg( 'linktitles-special-cancel-notice' ) );
|
||||
$output->addWikiMsg( 'linktitles-special-cancel-notice' );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -246,10 +247,8 @@ EOF
|
||||
*/
|
||||
private function addCompletedInfo( &$output, $start, $end, $reloads ) {
|
||||
$pagesPerReload = sprintf('%0.1f', $end / $reloads);
|
||||
$output->addWikiText(
|
||||
$this->msg( 'linktitltes-special-completed-info', $end,
|
||||
$config->specialPageReloadAfter, $reloads, $pagesPerReload
|
||||
)
|
||||
$output->addWikiMsg( 'linktitltes-special-completed-info', $end,
|
||||
$config->specialPageReloadAfter, $reloads, $pagesPerReload
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user