Blame SOURCES/0001-Update-desktop-icons-gettext-domain.patch

d2679a
From f5e47cd8ca32ae433f6906b01a509c5a304894d9 Mon Sep 17 00:00:00 2001
d2679a
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
d2679a
Date: Sat, 24 Oct 2020 01:14:44 +0200
d2679a
Subject: [PATCH] Update desktop-icons gettext domain
d2679a
d2679a
---
d2679a
 extensions/desktop-icons/createFolderDialog.js | 2 +-
d2679a
 extensions/desktop-icons/desktopGrid.js        | 2 +-
d2679a
 extensions/desktop-icons/fileItem.js           | 2 +-
d2679a
 extensions/desktop-icons/prefs.js              | 8 +++++---
d2679a
 4 files changed, 8 insertions(+), 6 deletions(-)
d2679a
d2679a
diff --git a/extensions/desktop-icons/createFolderDialog.js b/extensions/desktop-icons/createFolderDialog.js
d2679a
index f3e40e9..5038762 100644
d2679a
--- a/extensions/desktop-icons/createFolderDialog.js
d2679a
+++ b/extensions/desktop-icons/createFolderDialog.js
d2679a
@@ -21,7 +21,7 @@ const { Clutter, GObject, GLib, Gio, St } = imports.gi;
d2679a
 const Signals = imports.signals;
d2679a
 
d2679a
 const Dialog = imports.ui.dialog;
d2679a
-const Gettext = imports.gettext.domain('desktop-icons');
d2679a
+const Gettext = imports.gettext.domain('gnome-shell-extensions');
d2679a
 const ModalDialog = imports.ui.modalDialog;
d2679a
 const ShellEntry = imports.ui.shellEntry;
d2679a
 const Tweener = imports.ui.tweener;
d2679a
diff --git a/extensions/desktop-icons/desktopGrid.js b/extensions/desktop-icons/desktopGrid.js
d2679a
index a2d1f12..94d2dfd 100644
d2679a
--- a/extensions/desktop-icons/desktopGrid.js
d2679a
+++ b/extensions/desktop-icons/desktopGrid.js
d2679a
@@ -44,7 +44,7 @@ const Util = imports.misc.util;
d2679a
 
d2679a
 const Clipboard = St.Clipboard.get_default();
d2679a
 const CLIPBOARD_TYPE = St.ClipboardType.CLIPBOARD;
d2679a
-const Gettext = imports.gettext.domain('desktop-icons');
d2679a
+const Gettext = imports.gettext.domain('gnome-shell-extensions');
d2679a
 
d2679a
 const _ = Gettext.gettext;
d2679a
 
d2679a
diff --git a/extensions/desktop-icons/fileItem.js b/extensions/desktop-icons/fileItem.js
d2679a
index 0c6a54d..d6d43c9 100644
d2679a
--- a/extensions/desktop-icons/fileItem.js
d2679a
+++ b/extensions/desktop-icons/fileItem.js
d2679a
@@ -42,7 +42,7 @@ const Prefs = Me.imports.prefs;
d2679a
 const DBusUtils = Me.imports.dbusUtils;
d2679a
 const DesktopIconsUtil = Me.imports.desktopIconsUtil;
d2679a
 
d2679a
-const Gettext = imports.gettext.domain('desktop-icons');
d2679a
+const Gettext = imports.gettext.domain('gnome-shell-extensions');
d2679a
 
d2679a
 const _ = Gettext.gettext;
d2679a
 
d2679a
diff --git a/extensions/desktop-icons/prefs.js b/extensions/desktop-icons/prefs.js
d2679a
index 4b8d986..51daf15 100644
d2679a
--- a/extensions/desktop-icons/prefs.js
d2679a
+++ b/extensions/desktop-icons/prefs.js
d2679a
@@ -26,7 +26,7 @@ const Gettext = imports.gettext;
d2679a
 
d2679a
 const Config = imports.misc.config;
d2679a
 
d2679a
-var _ = Gettext.domain('desktop-icons').gettext;
d2679a
+var _ = Gettext.domain('gnome-shell-extensions').gettext;
d2679a
 
d2679a
 const SCHEMA_NAUTILUS = 'org.gnome.nautilus.preferences';
d2679a
 const SCHEMA_GTK = 'org.gtk.Settings.FileChooser';
d2679a
@@ -51,11 +51,13 @@ var CLICK_POLICY_SINGLE = false;
d2679a
 function initTranslations() {
d2679a
     let extension = ExtensionUtils.getCurrentExtension();
d2679a
 
d2679a
+    let domain = extension.metadata['gettext-domain'] || 'desktop-icons';
d2679a
+
d2679a
     let localedir = extension.dir.get_child('locale');
d2679a
     if (localedir.query_exists(null))
d2679a
-        Gettext.bindtextdomain('desktop-icons', localedir.get_path());
d2679a
+        Gettext.bindtextdomain(domain, localedir.get_path());
d2679a
     else
d2679a
-        Gettext.bindtextdomain('desktop-icons', Config.LOCALEDIR);
d2679a
+        Gettext.bindtextdomain(domain, Config.LOCALEDIR);
d2679a
 }
d2679a
 
d2679a
 function init() {
d2679a
-- 
d2679a
2.21.1
d2679a