i18n: Native digits on 'agent-other-display'

Change-Id: Idf6331b0c5656aea3d7a7af735be78981bdd8705
This commit is contained in:
Ebrahim Byagowi 2013-12-20 10:53:23 +00:00
parent da04b97148
commit 3a9f64ace3

View file

@ -825,20 +825,20 @@ class EchoBasicFormatter extends EchoNotificationFormatter {
} }
} }
// example: {7} others, {99+} others // example: {7} others, {99+} others
} elseif ( $param === 'agent-other-display') { } elseif ( $param === 'agent-other-display' ) {
global $wgEchoMaxNotificationCount; global $wgEchoMaxNotificationCount;
if ( $this->bundleData['agent-other-count'] > $wgEchoMaxNotificationCount ) { if ( $this->bundleData['agent-other-count'] > $wgEchoMaxNotificationCount ) {
$message->params( $message->params(
$this->getMessage( 'echo-notification-count' ) $this->getMessage( 'echo-notification-count' )
->params( $wgEchoMaxNotificationCount ) ->numParams( $wgEchoMaxNotificationCount )
->text() ->text()
); );
} else { } else {
$message->params( $this->bundleData['agent-other-count'] ); $message->numParams( $this->bundleData['agent-other-count'] );
} }
// the number used for plural support // the number used for plural support
} elseif ( $param === 'agent-other-count') { } elseif ( $param === 'agent-other-count' ) {
$message->params( $this->bundleData['agent-other-count'] ); $message->params( $this->bundleData['agent-other-count'] );
} elseif ( $param === 'user' ) { } elseif ( $param === 'user' ) {
$message->params( $user->getName() ); $message->params( $user->getName() );