[gnome-online-accounts] Add some translator comments



commit f71758892957ba3a0364fa29ed3c5c1070598f09
Author: David Zeuthen <davidz redhat com>
Date:   Wed Aug 31 10:33:25 2011 -0400

    Add some translator comments
    
    https://bugzilla.gnome.org/show_bug.cgi?id=657750
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 src/goabackend/goaoauth2provider.c |    1 +
 src/goabackend/goaoauthprovider.c  |    5 ++++-
 src/goabackend/goaprovider.c       |    3 ++-
 src/goabackend/goayahooprovider.c  |    1 +
 4 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/goabackend/goaoauth2provider.c b/src/goabackend/goaoauth2provider.c
index f81d80e..976a4b7 100644
--- a/src/goabackend/goaoauth2provider.c
+++ b/src/goabackend/goaoauth2provider.c
@@ -648,6 +648,7 @@ get_tokens_and_identity (GoaOAuth2Provider  *provider,
       gchar *markup;
 
       escaped_url = g_markup_escape_text (url, -1);
+      /* Translators: The verb "Paste" is used when asking the user to paste a string from a web browser window */
       markup = g_strdup_printf (_("Paste authorization code obtained from the <a href=\"%s\">authorization page</a>:"),
                                 escaped_url);
       g_free (escaped_url);
diff --git a/src/goabackend/goaoauthprovider.c b/src/goabackend/goaoauthprovider.c
index 64e20fd..c17f46d 100644
--- a/src/goabackend/goaoauthprovider.c
+++ b/src/goabackend/goaoauthprovider.c
@@ -435,6 +435,7 @@ get_tokens_sync (GoaOAuthProvider  *provider,
       g_set_error (error,
                    GOA_ERROR,
                    GOA_ERROR_FAILED,
+                   /* Translators: the %d is a HTTP status code and the %s is a textual description of it */
                    _("Expected status 200 when requesting access token, instead got status %d (%s)"),
                    status_code,
                    rest_proxy_call_get_status_message (call));
@@ -639,7 +640,8 @@ get_tokens_and_identity (GoaOAuthProvider *provider,
       g_set_error (&data.error,
                    GOA_ERROR,
                    GOA_ERROR_FAILED,
-                   _("Expected 200 for getting a Request Token, got %d (%s)"),
+                   /* Translators: the %d is a HTTP status code and the %s is a textual description of it */
+                   _("Expected status 200 for getting a Request Token, instead got status %d (%s)"),
                    rest_proxy_call_get_status_code (call),
                    rest_proxy_call_get_status_message (call));
       goto out;
@@ -669,6 +671,7 @@ get_tokens_and_identity (GoaOAuthProvider *provider,
       gchar *markup;
 
       escaped_url = g_markup_escape_text (url, -1);
+      /* Translators: The verb "Paste" is used when asking the user to paste a string from a web browser window */
       markup = g_strdup_printf (_("Paste token obtained from the <a href=\"%s\">authorization page</a>:"),
                                 escaped_url);
       g_free (escaped_url);
diff --git a/src/goabackend/goaprovider.c b/src/goabackend/goaprovider.c
index ab1e216..678d6b5 100644
--- a/src/goabackend/goaprovider.c
+++ b/src/goabackend/goaprovider.c
@@ -519,7 +519,7 @@ goa_provider_ensure_credentials_sync_real (GoaProvider   *provider,
   g_set_error (error,
                GOA_ERROR,
                GOA_ERROR_NOT_SUPPORTED,
-               _("ensure_credentials_sync not been implemented on type %s"),
+               _("ensure_credentials_sync is not implemented on type %s"),
                g_type_name (G_TYPE_FROM_INSTANCE (provider)));
   return FALSE;
 }
@@ -733,6 +733,7 @@ goa_provider_store_credentials_sync (GoaProvider   *provider,
                                   goa_provider_get_provider_type (GOA_PROVIDER (provider)),
                                   goa_provider_get_credentials_generation (GOA_PROVIDER (provider)),
                                   identity);
+  /* Translators: The %s is the type of the provider, e.g. 'google' or 'yahoo' */
   password_description = g_strdup_printf (_("GOA %s credentials for identity %s"),
                                           goa_provider_get_provider_type (GOA_PROVIDER (provider)),
                                           identity);
diff --git a/src/goabackend/goayahooprovider.c b/src/goabackend/goayahooprovider.c
index ba7471f..f56ba48 100644
--- a/src/goabackend/goayahooprovider.c
+++ b/src/goabackend/goayahooprovider.c
@@ -159,6 +159,7 @@ get_identity_sync (GoaOAuthProvider  *provider,
       g_set_error (error,
                    GOA_ERROR,
                    GOA_ERROR_FAILED,
+                   /* Translators: the %d is a HTTP status code and the %s is a textual description of it */
                    _("Expected status 200 when requesting guid, instead got status %d (%s)"),
                    rest_proxy_call_get_status_code (call),
                    rest_proxy_call_get_status_message (call));



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