mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-18 02:40:50 +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
|
// 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() );
|
||||||
|
|
Loading…
Reference in a new issue