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:
Florian Müllner 2020-04-16 22:49:24 +00:00 committed by Georges Basile Stavracas Neto
parent 6b24ab572c
commit 4895032054

View File

@ -82,8 +82,10 @@ class DisplayChangeDialog extends ModalDialog.ModalDialog {
}
_formatCountDown() {
let fmt = ngettext("Settings changes will revert in %d second",
"Settings changes will revert in %d seconds");
const fmt = ngettext(
'Settings changes will revert in %d second',
'Settings changes will revert in %d seconds',
this._countDown);
return fmt.format(this._countDown);
}