windowManager: Fix ngettext() call
We don't pass the number that allows gettext to decide on the
correct string, whoops.
Spotted by Alexandre Franke.
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2649
(cherry picked from commit 5ec5978d4a
)
This commit is contained in:
parent
6b24ab572c
commit
4895032054
@ -82,8 +82,10 @@ class DisplayChangeDialog extends ModalDialog.ModalDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_formatCountDown() {
|
_formatCountDown() {
|
||||||
let fmt = ngettext("Settings changes will revert in %d second",
|
const fmt = ngettext(
|
||||||
"Settings changes will revert in %d seconds");
|
'Settings changes will revert in %d second',
|
||||||
|
'Settings changes will revert in %d seconds',
|
||||||
|
this._countDown);
|
||||||
return fmt.format(this._countDown);
|
return fmt.format(this._countDown);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user