[gvfs] monitor: Mark error strings as translatable



commit 275450e614da8defd7d270e1ed88f4d56a13b21f
Author: Ondrej Holy <oholy redhat com>
Date:   Mon Jan 2 12:32:18 2017 +0100

    monitor: Mark error strings as translatable
    
    Error strings in gvfsproxyvolumemonitordaemon.c are not marked as
    translatable and thus it might be shown untranslated in UI, mark them.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776616

 monitor/proxy/gvfsproxyvolumemonitordaemon.c |   26 +++++++++++++-------------
 po/POTFILES.in                               |    1 +
 2 files changed, 14 insertions(+), 13 deletions(-)
---
diff --git a/monitor/proxy/gvfsproxyvolumemonitordaemon.c b/monitor/proxy/gvfsproxyvolumemonitordaemon.c
index 9a2e8da..0575003 100644
--- a/monitor/proxy/gvfsproxyvolumemonitordaemon.c
+++ b/monitor/proxy/gvfsproxyvolumemonitordaemon.c
@@ -1034,7 +1034,7 @@ handle_mount_unmount (GVfsRemoteVolumeMonitor *object,
     {
       g_dbus_method_invocation_return_dbus_error (invocation,
                                                   "org.gtk.Private.RemoteVolumeMonitor.NotFound",
-                                                  "The given mount was not found");
+                                                  _("The given mount was not found"));
       goto out;
     }
 
@@ -1042,7 +1042,7 @@ handle_mount_unmount (GVfsRemoteVolumeMonitor *object,
     {
       g_dbus_method_invocation_return_dbus_error (invocation,
                                                   "org.gtk.Private.RemoteVolumeMonitor.Failed",
-                                                  "An operation is already pending");
+                                                  _("An operation is already pending"));
       goto out;
     }
 
@@ -1125,7 +1125,7 @@ handle_mount_op_reply (GVfsRemoteVolumeMonitor *object,
     {
       g_dbus_method_invocation_return_dbus_error (invocation,
                                                   "org.gtk.Private.RemoteVolumeMonitor.NotFound",
-                                                  "No outstanding mount operation");
+                                                  _("No outstanding mount operation"));
       goto out;
     }
 
@@ -1213,7 +1213,7 @@ handle_volume_mount (GVfsRemoteVolumeMonitor *object,
     {
       g_dbus_method_invocation_return_dbus_error (invocation,
                                                   "org.gtk.Private.RemoteVolumeMonitor.NotFound",
-                                                  "The given volume was not found");
+                                                  _("The given volume was not found"));
       goto out;
     }
 
@@ -1221,7 +1221,7 @@ handle_volume_mount (GVfsRemoteVolumeMonitor *object,
     {
       g_dbus_method_invocation_return_dbus_error (invocation,
                                                   "org.gtk.Private.RemoteVolumeMonitor.Failed",
-                                                  "An operation is already pending");
+                                                  _("An operation is already pending"));
       goto out;
     }
 
@@ -1320,7 +1320,7 @@ handle_drive_eject (GVfsRemoteVolumeMonitor *object,
     {
       g_dbus_method_invocation_return_dbus_error (invocation,
                                                   "org.gtk.Private.RemoteVolumeMonitor.NotFound",
-                                                  "The given drive was not found");
+                                                  _("The given drive was not found"));
       goto out;
     }
 
@@ -1328,7 +1328,7 @@ handle_drive_eject (GVfsRemoteVolumeMonitor *object,
     {
       g_dbus_method_invocation_return_dbus_error (invocation,
                                                   "org.gtk.Private.RemoteVolumeMonitor.Failed",
-                                                  "An operation is already pending");
+                                                  _("An operation is already pending"));
       goto out;
     }
 
@@ -1427,7 +1427,7 @@ handle_drive_stop (GVfsRemoteVolumeMonitor *object,
     {
       g_dbus_method_invocation_return_dbus_error (invocation,
                                                   "org.gtk.Private.RemoteVolumeMonitor.NotFound",
-                                                  "The given drive was not found");
+                                                  _("The given drive was not found"));
       goto out;
     }
 
@@ -1435,7 +1435,7 @@ handle_drive_stop (GVfsRemoteVolumeMonitor *object,
     {
       g_dbus_method_invocation_return_dbus_error (invocation,
                                                   "org.gtk.Private.RemoteVolumeMonitor.Failed",
-                                                  "An operation is already pending");
+                                                  _("An operation is already pending"));
       goto out;
     }
 
@@ -1534,7 +1534,7 @@ handle_drive_start (GVfsRemoteVolumeMonitor *object,
     {
       g_dbus_method_invocation_return_dbus_error (invocation,
                                                   "org.gtk.Private.RemoteVolumeMonitor.NotFound",
-                                                  "The given drive was not found");
+                                                  _("The given drive was not found"));
       goto out;
     }
 
@@ -1542,7 +1542,7 @@ handle_drive_start (GVfsRemoteVolumeMonitor *object,
     {
       g_dbus_method_invocation_return_dbus_error (invocation,
                                                   "org.gtk.Private.RemoteVolumeMonitor.Failed",
-                                                  "An operation is already pending");
+                                                  _("An operation is already pending"));
       goto out;
     }
 
@@ -1637,7 +1637,7 @@ handle_drive_poll_for_media (GVfsRemoteVolumeMonitor *object,
     {
       g_dbus_method_invocation_return_dbus_error (invocation,
                                                   "org.gtk.Private.RemoteVolumeMonitor.NotFound",
-                                                  "The given drive was not found");
+                                                  _("The given drive was not found"));
       goto out;
     }
 
@@ -1645,7 +1645,7 @@ handle_drive_poll_for_media (GVfsRemoteVolumeMonitor *object,
     {
       g_dbus_method_invocation_return_dbus_error (invocation,
                                                   "org.gtk.Private.RemoteVolumeMonitor.Failed",
-                                                  "An operation is already pending");
+                                                  _("An operation is already pending"));
       goto out;
     }
 
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 71591a8..da37920 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -100,6 +100,7 @@ monitor/gphoto2/ggphoto2volumemonitor.c
 monitor/proxy/gproxydrive.c
 monitor/proxy/gproxymount.c
 monitor/proxy/gproxyvolume.c
+monitor/proxy/gvfsproxyvolumemonitordaemon.c
 monitor/udisks2/gvfsudisks2drive.c
 monitor/udisks2/gvfsudisks2mount.c
 monitor/udisks2/gvfsudisks2utils.c


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]