[gnome-shell/gnome-3-36] windowManager: Fix ngettext() call
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-36] windowManager: Fix ngettext() call
- Date: Fri, 17 Apr 2020 22:36:14 +0000 (UTC)
commit 4895032054fd9a97c4a7147f61cd97fdc9e66c50
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Apr 16 22:49:24 2020 +0000
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 5ec5978d4ab75bbf7e01ce3e6b0968db0a486a6e)
js/ui/windowManager.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index 21c63b5c32..ffbec6d83c 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]