[gnome-shell] js: Fix util_translate_time_string() usage
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] js: Fix util_translate_time_string() usage
- Date: Sat, 8 Nov 2014 20:56:14 +0000 (UTC)
commit 52503c4c3814318d42a18c17ec26a024ba7d2b3b
Author: Bastien Nocera <hadess hadess net>
Date: Sat Nov 8 17:45:13 2014 +0100
js: Fix util_translate_time_string() usage
util_translate_time_string() was called to use LC_TIME to translate
strings, but those strings were not marked as to be translated.
https://bugzilla.gnome.org/show_bug.cgi?id=739822
js/ui/dateMenu.js | 2 +-
js/ui/screenShield.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index c46938a..7ff75f7 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -129,7 +129,7 @@ const DateMenuButton = new Lang.Class({
/* Translators: This is the date format to use when the calendar popup is
* shown - it is shown just below the time in the shell (e.g. "Tue 9:29 AM").
*/
- let dateFormat = Shell.util_translate_time_string ("%A %B %e, %Y");
+ let dateFormat = Shell.util_translate_time_string (N_("%A %B %e, %Y"));
this._date.set_label(now.toLocaleFormat(dateFormat));
}
}));
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 485e0ef..03e457c 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -85,7 +85,7 @@ const Clock = new Lang.Class({
let date = new Date();
/* Translators: This is a time format for a date in
long format */
- let dateFormat = Shell.util_translate_time_string("%A, %B %d");
+ let dateFormat = Shell.util_translate_time_string(N_("%A, %B %d"));
this._date.text = date.toLocaleFormat(dateFormat);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]