mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
i18n: Native digits on 'agent-other-display'
Change-Id: Idf6331b0c5656aea3d7a7af735be78981bdd8705
This commit is contained in:
parent
da04b97148
commit
3a9f64ace3
|
@ -825,20 +825,20 @@ class EchoBasicFormatter extends EchoNotificationFormatter {
|
|||
}
|
||||
}
|
||||
// example: {7} others, {99+} others
|
||||
} elseif ( $param === 'agent-other-display') {
|
||||
} elseif ( $param === 'agent-other-display' ) {
|
||||
global $wgEchoMaxNotificationCount;
|
||||
|
||||
if ( $this->bundleData['agent-other-count'] > $wgEchoMaxNotificationCount ) {
|
||||
$message->params(
|
||||
$this->getMessage( 'echo-notification-count' )
|
||||
->params( $wgEchoMaxNotificationCount )
|
||||
->numParams( $wgEchoMaxNotificationCount )
|
||||
->text()
|
||||
);
|
||||
} else {
|
||||
$message->params( $this->bundleData['agent-other-count'] );
|
||||
$message->numParams( $this->bundleData['agent-other-count'] );
|
||||
}
|
||||
// the number used for plural support
|
||||
} elseif ( $param === 'agent-other-count') {
|
||||
} elseif ( $param === 'agent-other-count' ) {
|
||||
$message->params( $this->bundleData['agent-other-count'] );
|
||||
} elseif ( $param === 'user' ) {
|
||||
$message->params( $user->getName() );
|
||||
|
|
Loading…
Reference in a new issue