[libsoup] Use Unicode in translatable strings



commit f7ac303235bececdf0fda2b7e1a02daa29c77ae0
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Fri Sep 30 00:49:32 2016 +0200

    Use Unicode in translatable strings
    
    See https://developer.gnome.org/hig/stable/typography.html
    
    https://bugzilla.gnome.org/show_bug.cgi?id=772217

 libsoup/soup-request.c   |    2 +-
 libsoup/soup-server.c    |    2 +-
 libsoup/soup-session.c   |    4 ++--
 libsoup/soup-socket.c    |    4 ++--
 libsoup/soup-websocket.c |    4 ++--
 5 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/libsoup/soup-request.c b/libsoup/soup-request.c
index 0144cf6..e65f507 100644
--- a/libsoup/soup-request.c
+++ b/libsoup/soup-request.c
@@ -147,7 +147,7 @@ soup_request_initable_init (GInitable     *initable,
        if (!ok && error && !*error) {
                char *uri_string = soup_uri_to_string (request->priv->uri, FALSE);
                g_set_error (error, SOUP_REQUEST_ERROR, SOUP_REQUEST_ERROR_BAD_URI,
-                            _("Invalid '%s' URI: %s"),
+                            _("Invalid “%s” URI: %s"),
                             request->priv->uri->scheme,
                             uri_string);
                g_free (uri_string);
diff --git a/libsoup/soup-server.c b/libsoup/soup-server.c
index 65f72a4..15026cd 100644
--- a/libsoup/soup-server.c
+++ b/libsoup/soup-server.c
@@ -1724,7 +1724,7 @@ soup_server_listen_internal (SoupServer *server, SoupSocket *listener,
                        g_set_error_literal (error,
                                             G_IO_ERROR,
                                             G_IO_ERROR_INVALID_ARGUMENT,
-                                            _("Can't create a TLS server without a TLS certificate"));
+                                            _("Can’t create a TLS server without a TLS certificate"));
                        return FALSE;
                }
 
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index 0513f7d..9a7b457 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -4522,7 +4522,7 @@ soup_session_request (SoupSession *session, const char *uri_string,
        if (!uri) {
                g_set_error (error, SOUP_REQUEST_ERROR,
                             SOUP_REQUEST_ERROR_BAD_URI,
-                            _("Could not parse URI '%s'"), uri_string);
+                            _("Could not parse URI “%s”"), uri_string);
                return NULL;
        }
 
@@ -4559,7 +4559,7 @@ soup_session_request_uri (SoupSession *session, SoupURI *uri,
        if (!request_type) {
                g_set_error (error, SOUP_REQUEST_ERROR,
                             SOUP_REQUEST_ERROR_UNSUPPORTED_URI_SCHEME,
-                            _("Unsupported URI scheme '%s'"), uri->scheme);
+                            _("Unsupported URI scheme “%s”"), uri->scheme);
                return NULL;
        }
 
diff --git a/libsoup/soup-socket.c b/libsoup/soup-socket.c
index 1658471..e737812 100644
--- a/libsoup/soup-socket.c
+++ b/libsoup/soup-socket.c
@@ -145,7 +145,7 @@ soup_socket_initable_init (GInitable     *initable,
                if (getsockopt (priv->fd, SOL_SOCKET, SO_TYPE,
                                (gpointer)&type, (gpointer)&len) == -1) {
                        g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED,
-                                            _("Can't import non-socket as SoupSocket"));
+                                            _("Can’t import non-socket as SoupSocket"));
                        return FALSE;
                }
 
@@ -172,7 +172,7 @@ soup_socket_initable_init (GInitable     *initable,
                        finish_listener_setup (sock);
                else if (!g_socket_is_connected (priv->gsock)) {
                        g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED,
-                                            _("Can't import unconnected socket"));
+                                            _("Can’t import unconnected socket"));
                        return FALSE;
                }
        }
diff --git a/libsoup/soup-websocket.c b/libsoup/soup-websocket.c
index 7c19efd..5038041 100644
--- a/libsoup/soup-websocket.c
+++ b/libsoup/soup-websocket.c
@@ -371,7 +371,7 @@ soup_websocket_server_check_handshake (SoupMessage  *msg,
                        g_set_error (error,
                                     SOUP_WEBSOCKET_ERROR,
                                     SOUP_WEBSOCKET_ERROR_BAD_ORIGIN,
-                                    _("Incorrect WebSocket \"%s\" header"), "Origin");
+                                    _("Incorrect WebSocket “%s” header"), "Origin");
                        return FALSE;
                }
        }
@@ -559,7 +559,7 @@ soup_websocket_client_verify_handshake (SoupMessage  *msg,
                g_set_error (error,
                             SOUP_WEBSOCKET_ERROR,
                             SOUP_WEBSOCKET_ERROR_BAD_HANDSHAKE,
-                            _("Server returned incorrect \"%s\" key"),
+                            _("Server returned incorrect “%s” key"),
                             "Sec-WebSocket-Accept");
                return FALSE;
        }


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