r49059 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49058‎ | r49059 | r49060 >
Date:05:17, 31 March 2009
Author:purodha
Status:ok
Tags:
Comment:
(Bug 18268) Added date and time parameters.
Modified paths:
  • /trunk/extensions/SecurePoll/SecurePoll.i18n.php (modified) (history)
  • /trunk/extensions/SecurePoll/includes/VotePage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SecurePoll/SecurePoll.i18n.php
@@ -63,6 +63,7 @@
6464 'securepoll-desc' => 'A short description of this extension shown in [[Special:Version]].
6565 {{doc-important|Do not translate tag names.}}
6666 {{doc-important|Do not translate links.}}',
 67+ 'securepoll-not-started' => '$1 is a data/time, $2 is the date of it, $3 is its time.',
6768 'securepoll-return' => '{{Identical|Return to $1}}',
6869 'securepoll-secret-gpg-error' => "<span style=\"color:red\">'''DO <u>NOT</u> translate LocalSettings.php and \$wgSecurePollShowErrorDetail=true;'''</span>",
6970 );
Index: trunk/extensions/SecurePoll/includes/VotePage.php
@@ -37,7 +37,9 @@
3838
3939 if ( !$this->election->isStarted() ) {
4040 $wgOut->addWikiMsg( 'securepoll-not-started',
41 - $wgLang->timeanddate( $this->election->getStartDate() ) );
 41+ $wgLang->timeanddate( $this->election->getStartDate() ) ,
 42+ $wgLang->date( $this->election->getStartDate() ) ,
 43+ $wgLang->time( $this->election->getStartDate() ) );
4244 return;
4345 }
4446

Status & tagging log