https://www.mediawiki.org/wiki/Special:Code/MediaWiki/102209
Revision: 102209
Author: krinkle
Date: 2011-11-06 23:15:37 +0000 (Sun, 06 Nov 2011)
Log Message:
-----------
[TsIntuition] Add plural-support for weeks/days/hours
* r102206 did it for renew-cookies, undoing that
* Doing it for weeks/days/hours instead
* Follows-up r102206
Modified Paths:
--------------
trunk/tools/ToolserverI18N/public_html/index.php
Modified: trunk/tools/ToolserverI18N/public_html/index.php
===================================================================
--- trunk/tools/ToolserverI18N/public_html/index.php 2011-11-06 23:13:36 UTC
(rev 102208)
+++ trunk/tools/ToolserverI18N/public_html/index.php 2011-11-06 23:15:37 UTC
(rev 102209)
@@ -167,23 +167,23 @@
// 29+ days
if ( $lifetime > 29*24*3600 ) {
$class = 'perfect';
- $time = floor( $lifetime/3600/24/7 ) . '+ ' . _g('weeks');
+ $time = floor( $lifetime/3600/24/7 ) . '+ ' . _g( 'weeks',
array( 'parsemag' => true ) );
// 10+ days
} elseif ( $lifetime > 10*24*3600 ) {
$class = 'good';
- $time = floor( $lifetime/3600/24 ) . '+ ' . _g('days');
+ $time = floor( $lifetime/3600/24 ) . '+ ' . _g( 'days', array(
'parsemag' => true ) );
// 1+ day
} elseif ( $lifetime > 24*3600 ) {
$class = 'bad';
- $time = floor( $lifetime/3600/24 ) . '+ ' . _g('days');
+ $time = floor( $lifetime/3600/24 ) . '+ ' . _g( 'days', array(
'parsemag' => true ) );
$after = $renew;
// Less than a day
} else {
$class = 'worst';
- $time = '<' . ceil( $lifetime/3600 ) . ' ' . _g('hours');
+ $time = '<' . ceil( $lifetime/3600 ) . ' ' . _g( 'hours',
array( 'parsemag' => true ) );
$after = $renew;
}
@@ -199,7 +199,7 @@
. ')<br />'
. kfTag( _( 'cookie-expiration' ) . _g( 'colon-separator' ),
'label' ) . kfTag( '', 'input', array( 'value' => $time, 'class' =>
"cookie-health $class", 'readonly' => 'readonly' ) )
. ' ('
- . kfTag( _( 'renew-cookies', array( 'parsemag' => true ) ), 'a',
array( 'href' => $Tool->generatePermalink( array( 'action' => 'renewcookies' )
) ) )
+ . kfTag( _( 'renew-cookies' ), 'a', array( 'href' =>
$Tool->generatePermalink( array( 'action' => 'renewcookies' ) ) ) )
. ')<br />'
. $after
. '</div></fieldset></form></div><!-- #tab-currentsettings -->'
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs