https://www.mediawiki.org/wiki/Special:Code/MediaWiki/115372
Revision: 115372
Author: krinkle
Date: 2012-05-13 22:51:32 +0000 (Sun, 13 May 2012)
Log Message:
-----------
TsIntuition: Implement parensWrap; Mwsnapshots: msg sync, got ajax now
Modified Paths:
--------------
trunk/tools/ToolserverI18N/TsIntuition.php
trunk/tools/ToolserverI18N/language/messages/Mwsnapshots.i18n.php
Modified: trunk/tools/ToolserverI18N/TsIntuition.php
===================================================================
--- trunk/tools/ToolserverI18N/TsIntuition.php 2012-05-13 20:03:02 UTC (rev
115371)
+++ trunk/tools/ToolserverI18N/TsIntuition.php 2012-05-13 22:51:32 UTC (rev
115372)
@@ -1154,12 +1154,20 @@
array( $this, 'msg' ),
func_get_args()
);
+ return $this->parensWrap( $msg );
+ }
+
+ /**
+ * @param string $content: Text or HTML to be wrapped in parentheses.
+ * @param string $escape: Any valid format for
TsIntuitionUtil::strEscape.
+ */
+ public function parensWrap( $content, $escape = 'plain' ) {
return $this->msg(
'parentheses',
array(
'domain' => 'general',
- 'variables' => array( $msg ),
'raw-variables' => true,
+ 'variables' => array(
TsIntuitionUtil::strEscape( $content, $escape ) ),
)
);
}
Modified: trunk/tools/ToolserverI18N/language/messages/Mwsnapshots.i18n.php
===================================================================
--- trunk/tools/ToolserverI18N/language/messages/Mwsnapshots.i18n.php
2012-05-13 20:03:02 UTC (rev 115371)
+++ trunk/tools/ToolserverI18N/language/messages/Mwsnapshots.i18n.php
2012-05-13 22:51:32 UTC (rev 115372)
@@ -22,9 +22,9 @@
'updatelog-active' => 'The update script is currently running. Come
back later for the complete log.',
'title-download' => '$1', // Do not translate
'download-button' => 'Download $1',
- 'title-downloading' => 'Downloading: $1',
- 'downloading-intro' => 'Your download will start shortly...',
- 'downloading-directlink' => 'Problems with the download? Please use
this direct link.',
+ 'download-directlink' => 'direct link',
+ 'title-downloadpage' => 'Download: $1',
+ 'downloadpage-directlink' => 'Click here to download the snapshot.',
'err-snapshotindex' => 'Snapshot index temporarily unavailable. Please
try again later.',
'err-invalid-repo' => 'Unknown repository: "$1".',
'err-invalid-branch' => 'Unknown branch: "$1" in repository "$2".',
@@ -51,14 +51,14 @@
'title-overview' => 'Heading of overview page listing all repositories
and branches',
'title-error' => 'Heading of page if action failed',
'title-download' => '{{Ignore}}',
- 'download-button' => 'Label of the download button.
+ 'download-button' => 'Label of the download button. Text is outputted
below an up-arrow.
* $1: Branch name',
- 'title-downloading' => 'Heading of page if a file is going to be
downloaded
+ 'download-directlink' => 'Link displayed in parentheses below the
download button.',
+ 'title-downloadpage' => 'Heading of download page where the file is
ready to be downloaded by the user
* $1: File name',
- 'downloading-intro' => 'Displayed under the heading, the download will
start in a second.',
- 'downloading-directlink' => 'Clickable link shown under the heading,
links to the file directly',
+ 'downloadpage-directlink' => 'Clickable link shown under the heading,
links to the file directly',
'err-snapshotindex' => 'If the information manifest (Index) can not be
found on the server, this error is shown.',
'err-invalid-repo' => '
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs