[totem] main: Use Unicode in translatable strings



commit 6a7e240916b9d5f28c75e86561250b01f1414866
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Fri Nov 11 18:20:09 2016 +0100

    main: Use Unicode in translatable strings
    
    See https://developer.gnome.org/hig/stable/typography.html
    
    Also takes the opportunity to make the use of single vs. double quotation
    marks consistent within totem, as well as with other GNOME apps that use
    double quotation marks, as GNOME HIG recommends.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774286

 src/totem-interface.c       |    4 ++--
 src/totem-object.c          |    6 +++---
 src/totem-options.c         |    2 +-
 src/totem-playlist.c        |    2 +-
 src/totem-properties-view.c |    2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/totem-interface.c b/src/totem-interface.c
index 9fa0610..675bdec 100644
--- a/src/totem-interface.c
+++ b/src/totem-interface.c
@@ -176,7 +176,7 @@ totem_interface_load (const char *name, gboolean fatal, GtkWindow *parent, gpoin
        if (filename == NULL) {
                char *msg;
 
-               msg = g_strdup_printf (_("Couldn't load the '%s' interface. %s"), name, _("The file does not 
exist."));
+               msg = g_strdup_printf (_("Couldn’t load the “%s” interface. %s"), name, _("The file does not 
exist."));
                if (fatal == FALSE)
                        totem_interface_error (msg, _("Make sure that Totem is properly installed."), parent);
                else
@@ -219,7 +219,7 @@ totem_interface_load_with_full_path (const char *filename, gboolean fatal,
        if (builder == NULL || gtk_builder_add_from_file (builder, filename, &error) == FALSE) {
                char *msg;
 
-               msg = g_strdup_printf (_("Couldn't load the '%s' interface. %s"), filename, error->message);
+               msg = g_strdup_printf (_("Couldn’t load the “%s” interface. %s"), filename, error->message);
                if (fatal == FALSE)
                        totem_interface_error (msg, _("Make sure that Totem is properly installed."), parent);
                else
diff --git a/src/totem-object.c b/src/totem-object.c
index 502fe82..9c2f104 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1467,7 +1467,7 @@ totem_object_play (TotemObject *totem)
        }
 
        disp = totem_uri_escape_for_display (totem->mrl);
-       msg = g_strdup_printf(_("Totem could not play '%s'."), disp);
+       msg = g_strdup_printf(_("Totem could not play “%s”."), disp);
        g_free (disp);
 
        totem_object_show_error (totem, msg, err->message);
@@ -1494,7 +1494,7 @@ totem_object_seek (TotemObject *totem, double pos)
                char *msg, *disp;
 
                disp = totem_uri_escape_for_display (totem->mrl);
-               msg = g_strdup_printf(_("Totem could not play '%s'."), disp);
+               msg = g_strdup_printf(_("Totem could not play “%s”."), disp);
                g_free (disp);
 
                reset_seek_status (totem);
@@ -1986,7 +1986,7 @@ totem_seek_time_rel (TotemObject *totem, gint64 _time, gboolean relative, gboole
                char *msg, *disp;
 
                disp = totem_uri_escape_for_display (totem->mrl);
-               msg = g_strdup_printf(_("Totem could not play '%s'."), disp);
+               msg = g_strdup_printf(_("Totem could not play “%s”."), disp);
                g_free (disp);
 
                totem_object_stop (totem);
diff --git a/src/totem-options.c b/src/totem-options.c
index 06b4f7c..72059ab 100644
--- a/src/totem-options.c
+++ b/src/totem-options.c
@@ -97,7 +97,7 @@ totem_options_process_for_server (Totem               *totem,
 
        /* Then handle the things that modify the playlist */
        if (options->replace && options->enqueue) {
-               g_warning (_("Can't enqueue and replace at the same time"));
+               g_warning (_("Can’t enqueue and replace at the same time"));
        } else if (options->replace) {
                action = TOTEM_REMOTE_COMMAND_REPLACE;
        } else if (options->enqueue) {
diff --git a/src/totem-playlist.c b/src/totem-playlist.c
index 4cba0d6..01203e1 100644
--- a/src/totem-playlist.c
+++ b/src/totem-playlist.c
@@ -989,7 +989,7 @@ handle_parse_result (TotemPlParserResult res, TotemPlaylist *playlist, const gch
                return totem_playlist_add_one_mrl (playlist, mrl, display_name, NULL, NULL, FALSE);
        if (res == TOTEM_PL_PARSER_RESULT_ERROR) {
                g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
-                            _("The playlist '%s' could not be parsed. It might be damaged."), display_name ? 
display_name : mrl);
+                            _("The playlist “%s” could not be parsed. It might be damaged."), display_name ? 
display_name : mrl);
 
                return FALSE;
        }
diff --git a/src/totem-properties-view.c b/src/totem-properties-view.c
index 4ddf3e1..bf681c8 100644
--- a/src/totem-properties-view.c
+++ b/src/totem-properties-view.c
@@ -187,7 +187,7 @@ update_video (TotemPropertiesView    *props,
 
        width = gst_discoverer_video_info_get_width (info);
        height = gst_discoverer_video_info_get_height (info);
-       string = g_strdup_printf (N_("%d x %d"), width, height);
+       string = g_strdup_printf (N_("%d × %d"), width, height);
        bacon_video_widget_properties_set_label (props->priv->props,
                                                 "dimensions",
                                                 string);


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