[file-roller] nautilus-fileroller: Avoid the use of g_dgettext
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] nautilus-fileroller: Avoid the use of g_dgettext
- Date: Mon, 20 Nov 2017 08:35:06 +0000 (UTC)
commit 96475f4ea2694a997c5b3b3f11e8e9affc7841d0
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Sun Nov 19 21:51:04 2017 +0100
nautilus-fileroller: Avoid the use of g_dgettext
nautilus-fileroller is using g_dgettext which may cause problems
when extracting strings on some systems.
This patch replaces g_dgettext for g_dcgettext, which has the same
behaviour when the category is LC_MESSAGES.
https://bugzilla.gnome.org/show_bug.cgi?id=790569
nautilus/nautilus-fileroller.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/nautilus/nautilus-fileroller.c b/nautilus/nautilus-fileroller.c
index 244f150..441356b 100644
--- a/nautilus/nautilus-fileroller.c
+++ b/nautilus/nautilus-fileroller.c
@@ -28,6 +28,7 @@
#include <libnautilus-extension/nautilus-extension-types.h>
#include <libnautilus-extension/nautilus-file-info.h>
#include <libnautilus-extension/nautilus-menu-provider.h>
+#include <locale.h>
#include "nautilus-fileroller.h"
@@ -257,9 +258,9 @@ nautilus_fr_get_file_items (NautilusMenuProvider *provider,
NautilusMenuItem *item;
item = nautilus_menu_item_new ("NautilusFr::extract_here",
- g_dgettext ("file-roller", "Extract Here"),
+ g_dcgettext ("file-roller", "Extract Here", LC_MESSAGES),
/* Translators: the current position is the current folder */
- g_dgettext ("file-roller", "Extract the selected archive to
the current position"),
+ g_dcgettext ("file-roller", "Extract the selected archive to
the current position", LC_MESSAGES),
"drive-harddisk");
g_signal_connect (item,
"activate",
@@ -276,8 +277,8 @@ nautilus_fr_get_file_items (NautilusMenuProvider *provider,
NautilusMenuItem *item;
item = nautilus_menu_item_new ("NautilusFr::extract_to",
- g_dgettext ("file-roller", "Extract To…"),
- g_dgettext ("file-roller", "Extract the selected archive"),
+ g_dcgettext ("file-roller", "Extract To…", LC_MESSAGES),
+ g_dcgettext ("file-roller", "Extract the selected archive",
LC_MESSAGES),
"drive-harddisk");
g_signal_connect (item,
"activate",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]