[gnome-online-accounts] goabackend: Combine three strings



commit 69315e34eb0bfddbc59327f2349797bfa2fefce1
Author: Philip Withnall <philip tecnocode co uk>
Date:   Tue Sep 3 22:13:06 2013 -0600

    goabackend: Combine three strings
    
    The strings only different in an XML element name, which shouldn’t
    be translated anyway.
    
    Fixes: https://bugzilla.gnome.org/707435

 src/goabackend/goaewsclient.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/goabackend/goaewsclient.c b/src/goabackend/goaewsclient.c
index 9ef34d2..eae5d3c 100644
--- a/src/goabackend/goaewsclient.c
+++ b/src/goabackend/goaewsclient.c
@@ -257,7 +257,8 @@ ews_client_autodiscover_response_cb (SoupSession *session, SoupMessage *msg, gpo
       g_set_error (&error,
                    GOA_ERROR,
                    GOA_ERROR_FAILED, /* TODO: more specific */
-                   _("Failed to find Autodiscover element"));
+                   /* Translators: the parameter is an XML element name. */
+                   _("Failed to find ‘%s’ element"), "Autodiscover");
       goto out;
     }
 
@@ -271,7 +272,8 @@ ews_client_autodiscover_response_cb (SoupSession *session, SoupMessage *msg, gpo
       g_set_error (&error,
                    GOA_ERROR,
                    GOA_ERROR_FAILED, /* TODO: more specific */
-                   _("Failed to find Response element"));
+                   /* Translators: the parameter is an XML element name. */
+                   _("Failed to find ‘%s’ element"), "Response");
       goto out;
     }
 
@@ -285,7 +287,8 @@ ews_client_autodiscover_response_cb (SoupSession *session, SoupMessage *msg, gpo
       g_set_error (&error,
                    GOA_ERROR,
                    GOA_ERROR_FAILED, /* TODO: more specific */
-                   _("Failed to find Account element"));
+                   /* Translators: the parameter is an XML element name. */
+                   _("Failed to find ‘%s’ element"), "Account");
       goto out;
     }
 


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