[eog-plugins] export-to-folder: Fix untranslated UI labels
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog-plugins] export-to-folder: Fix untranslated UI labels
- Date: Wed, 24 Feb 2021 20:21:27 +0000 (UTC)
commit a3012c3da95eb9c505dbd77152c98f4d567ec825
Author: Felix Riemann <friemann gnome org>
Date: Wed Feb 24 21:12:37 2021 +0100
export-to-folder: Fix untranslated UI labels
Make the plugin use the correct translation domain.
Fixes #8.
plugins/export-to-folder/export-to-folder.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/plugins/export-to-folder/export-to-folder.py b/plugins/export-to-folder/export-to-folder.py
index 3b383d5..7d4b61e 100644
--- a/plugins/export-to-folder/export-to-folder.py
+++ b/plugins/export-to-folder/export-to-folder.py
@@ -18,11 +18,14 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+import gettext
import os
import shutil
from gi.repository import GObject, GLib, Eog, Gio, Gtk, PeasGtk
+_ = gettext.translation('eog-plugins', fallback=True).gettext
+
_MENU_ID = 'Export'
_ACTION_NAME = 'export-to-folder'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]