[libgdata] Use Unicode in translatable strings
- From: Piotr Drąg <piotrdrag src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] Use Unicode in translatable strings
- Date: Tue, 11 Oct 2016 15:48:16 +0000 (UTC)
commit 51d108683cdfa8fe5bb232228cfe6e7c335de160
Author: Piotr Drąg <piotrdrag gmail com>
Date: Tue Oct 11 15:31:53 2016 +0200
Use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html
https://bugzilla.gnome.org/show_bug.cgi?id=772756
gdata/gdata-client-login-authorizer.c | 8 +++---
gdata/gdata-parser.c | 24 ++++++++++----------
gdata/gdata-service.c | 2 +-
gdata/services/documents/gdata-documents-service.c | 2 +-
gdata/services/freebase/gdata-freebase-service.c | 2 +-
5 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/gdata/gdata-client-login-authorizer.c b/gdata/gdata-client-login-authorizer.c
index c84411b..a02ad89 100644
--- a/gdata/gdata-client-login-authorizer.c
+++ b/gdata/gdata-client-login-authorizer.c
@@ -646,7 +646,7 @@ parse_error_response (GDataClientLoginAuthorizer *self, guint status, const gcha
case SOUP_STATUS_SSL_FAILED:
case SOUP_STATUS_IO_ERROR:
g_set_error (error, GDATA_SERVICE_ERROR, GDATA_SERVICE_ERROR_NETWORK_ERROR,
- _("Cannot connect to the service's server."));
+ _("Cannot connect to the service’s server."));
return;
case SOUP_STATUS_CANT_RESOLVE_PROXY:
case SOUP_STATUS_CANT_CONNECT_PROXY:
@@ -851,12 +851,12 @@ authenticate (GDataClientLoginAuthorizer *self, GDataAuthorizationDomain *domain
if (strncmp (error_start, "NotVerified", error_end - error_start) == 0) {
g_set_error (error, GDATA_CLIENT_LOGIN_AUTHORIZER_ERROR,
GDATA_CLIENT_LOGIN_AUTHORIZER_ERROR_NOT_VERIFIED,
/* Translators: the parameter is a URI for further information. */
- _("Your account's e-mail address has not been verified. (%s)"), uri);
+ _("Your account’s e-mail address has not been verified. (%s)"), uri);
goto login_error;
} else if (strncmp (error_start, "TermsNotAgreed", error_end - error_start) == 0) {
g_set_error (error, GDATA_CLIENT_LOGIN_AUTHORIZER_ERROR,
GDATA_CLIENT_LOGIN_AUTHORIZER_ERROR_TERMS_NOT_AGREED,
/* Translators: the parameter is a URI for further information. */
- _("You have not agreed to the service's terms and conditions. (%s)"),
uri);
+ _("You have not agreed to the service’s terms and conditions. (%s)"),
uri);
goto login_error;
} else if (strncmp (error_start, "AccountMigrated", error_end - error_start) == 0) {
/* This is non-standard, and used by YouTube since it's got messed-up accounts */
@@ -877,7 +877,7 @@ authenticate (GDataClientLoginAuthorizer *self, GDataAuthorizationDomain *domain
} else if (strncmp (error_start, "ServiceDisabled", error_end - error_start) == 0) {
g_set_error (error, GDATA_CLIENT_LOGIN_AUTHORIZER_ERROR,
GDATA_CLIENT_LOGIN_AUTHORIZER_ERROR_SERVICE_DISABLED,
/* Translators: the parameter is a URI for further information. */
- _("This account's access to this service has been disabled. (%s)"), uri);
+ _("This account’s access to this service has been disabled. (%s)"), uri);
goto login_error;
} else if (strncmp (error_start, "ServiceUnavailable", error_end - error_start) == 0) {
g_set_error (error, GDATA_SERVICE_ERROR, GDATA_SERVICE_ERROR_UNAVAILABLE,
diff --git a/gdata/gdata-parser.c b/gdata/gdata-parser.c
index 1096921..a43c2ec 100644
--- a/gdata/gdata-parser.c
+++ b/gdata/gdata-parser.c
@@ -81,8 +81,8 @@ gdata_parser_error_not_iso8601_format (xmlNode *element, const gchar *actual_val
* and the second parameter is the erroneous value (which was not in ISO 8601 format).
*
* For example:
- * The content of a <media:group/media:uploaded> element ("2009-05-06 26:30Z") was not
in ISO 8601 format. */
- _("The content of a %s element (\"%s\") was not in ISO 8601 format."), element_string,
actual_value);
+ * The content of a <media:group/media:uploaded> element (‘2009-05-06 26:30Z’) was not
in ISO 8601 format. */
+ _("The content of a %s element (‘%s’) was not in ISO 8601 format."), element_string,
actual_value);
g_free (element_string);
return FALSE;
@@ -101,8 +101,8 @@ gdata_parser_error_unknown_property_value (xmlNode *element, const gchar *proper
* (including the angle brackets ("<" and ">")) to which the property belongs, and the
third is the unknown value.
*
* For example:
- * The value of the @time property of a <media:group/media:thumbnail> element
("00:01:42.500") was unknown. */
- _("The value of the %s property of a %s element (\"%s\") was unknown."),
property_string, element_string, actual_value);
+ * The value of the @time property of a <media:group/media:thumbnail> element
(‘00:01:42.500’) was unknown. */
+ _("The value of the %s property of a %s element (‘%s’) was unknown."), property_string,
element_string, actual_value);
g_free (property_string);
g_free (element_string);
@@ -119,8 +119,8 @@ gdata_parser_error_unknown_content (xmlNode *element, const gchar *actual_conten
* and the second parameter is the unknown content of that element.
*
* For example:
- * The content of a <gphoto:access> element ("protected") was unknown. */
- _("The content of a %s element (\"%s\") was unknown."), element_string, actual_content);
+ * The content of a <gphoto:access> element (‘protected’) was unknown. */
+ _("The content of a %s element (‘%s’) was unknown."), element_string, actual_content);
g_free (element_string);
return FALSE;
@@ -269,8 +269,8 @@ gdata_parser_error_required_json_content_missing (JsonReader *reader, GError **e
/* Translators: the parameter is the name of an JSON element.
*
* For example:
- * A 'title' element was missing required content. */
- g_set_error (error, GDATA_SERVICE_ERROR, GDATA_SERVICE_ERROR_PROTOCOL_ERROR, _("A \'%s\' element was
missing required content."), element_string);
+ * A ‘title’ element was missing required content. */
+ g_set_error (error, GDATA_SERVICE_ERROR, GDATA_SERVICE_ERROR_PROTOCOL_ERROR, _("A ‘%s’ element was
missing required content."), element_string);
return FALSE;
}
@@ -299,8 +299,8 @@ gdata_parser_error_not_iso8601_format_json (JsonReader *reader, const gchar *act
* and the second parameter is the erroneous value (which was not in ISO 8601 format).
*
* For example:
- * The content of a 'uploaded' element ("2009-05-06 26:30Z") was not in ISO 8601
format. */
- _("The content of a \'%s\' element (\"%s\") was not in ISO 8601 format."),
element_string, actual_value);
+ * The content of a ‘uploaded’ element (‘2009-05-06 26:30Z’) was not in ISO 8601
format. */
+ _("The content of a ‘%s’ element (‘%s’) was not in ISO 8601 format."), element_string,
actual_value);
return FALSE;
}
@@ -1175,8 +1175,8 @@ gdata_parser_color_from_json_member (JsonReader *reader,
* RGB format).
*
* For example:
- * The content of a <entry/gCal:color> element ("00FG56") was not in
hexadecimal RGB format. */
- _("The content of a %s element (\"%s\") was not in hexadecimal RGB format."),
+ * The content of a <entry/gCal:color> element (‘00FG56’) was not in
hexadecimal RGB format. */
+ _("The content of a %s element (‘%s’) was not in hexadecimal RGB format."),
member_name, text);
*success = FALSE;
diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c
index 9db75ba..64943a5 100644
--- a/gdata/gdata-service.c
+++ b/gdata/gdata-service.c
@@ -358,7 +358,7 @@ real_parse_error_response (GDataService *self, GDataOperationType operation_type
case SOUP_STATUS_SSL_FAILED:
case SOUP_STATUS_IO_ERROR:
g_set_error (error, GDATA_SERVICE_ERROR, GDATA_SERVICE_ERROR_NETWORK_ERROR,
- _("Cannot connect to the service's server."));
+ _("Cannot connect to the service’s server."));
return;
case SOUP_STATUS_CANT_RESOLVE_PROXY:
case SOUP_STATUS_CANT_CONNECT_PROXY:
diff --git a/gdata/services/documents/gdata-documents-service.c
b/gdata/services/documents/gdata-documents-service.c
index 2e7b146..e350c8d 100644
--- a/gdata/services/documents/gdata-documents-service.c
+++ b/gdata/services/documents/gdata-documents-service.c
@@ -943,7 +943,7 @@ gdata_documents_service_finish_upload (GDataDocumentsService *self, GDataUploadS
if (g_type_is_a (new_document_type, GDATA_TYPE_DOCUMENTS_DOCUMENT) == FALSE) {
g_set_error (error, GDATA_DOCUMENTS_SERVICE_ERROR,
GDATA_DOCUMENTS_SERVICE_ERROR_INVALID_CONTENT_TYPE,
- _("The content type of the supplied document ('%s') could not be recognized."),
+ _("The content type of the supplied document (‘%s’) could not be recognized."),
content_type);
return NULL;
}
diff --git a/gdata/services/freebase/gdata-freebase-service.c
b/gdata/services/freebase/gdata-freebase-service.c
index 386f031..68a33d5 100644
--- a/gdata/services/freebase/gdata-freebase-service.c
+++ b/gdata/services/freebase/gdata-freebase-service.c
@@ -476,7 +476,7 @@ gdata_freebase_service_get_image (GDataFreebaseService *self, GDataFreebaseTopic
g_set_error (error,
GDATA_SERVICE_ERROR,
GDATA_SERVICE_ERROR_BAD_QUERY_PARAMETER,
- _("Property '%s' does not hold an image"),
+ _("Property ‘%s’ does not hold an image"),
gdata_freebase_topic_value_get_property (value));
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]