[gnome-shell] calendar: Don't mark translations from GTK+ for translation
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] calendar: Don't mark translations from GTK+ for translation
- Date: Sun, 27 Apr 2014 00:06:55 +0000 (UTC)
commit 6ece67b6545e88dbfe99db40609cfebd49bf42b4
Author: Florian Müllner <fmuellner gnome org>
Date: Sun Apr 27 01:06:13 2014 +0200
calendar: Don't mark translations from GTK+ for translation
The order in which month and year are displayed is controlled by
a "special" translated string in GTK+. We pick up the translation
from there, so make sure that it doesn't get translated again
in gnome-shell.
https://bugzilla.gnome.org/show_bug.cgi?id=715042
js/ui/calendar.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index 4cd2850..87bafb4 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -14,6 +14,9 @@ const Shell = imports.gi.Shell;
const MSECS_IN_DAY = 24 * 60 * 60 * 1000;
const SHOW_WEEKDATE_KEY = 'show-weekdate';
+// alias to prevent xgettext from picking up strings translated in GTK+
+const gtk30_ = Gettext_gtk30.gettext;
+
// in org.gnome.desktop.interface
const CLOCK_FORMAT_KEY = 'clock-format';
@@ -387,7 +390,7 @@ const Calendar = new Lang.Class({
// Find the ordering for month/year in the calendar heading
this._headerFormatWithoutYear = '%B';
- switch (Gettext_gtk30.gettext('calendar:MY')) {
+ switch (gtk30_('calendar:MY')) {
case 'calendar:MY':
this._headerFormat = '%B %Y';
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]