[eog] Use Unicode in translatable strings



commit 7684b1157b23228bbd6e4f13436224837a680b0e
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Sun Nov 6 15:45:08 2016 +0100

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

 data/org.gnome.eog.gschema.xml.in   |   10 +++++-----
 src/eog-close-confirmation-dialog.c |    6 +++---
 src/eog-error-message-area.c        |    6 +++---
 src/eog-image-jpeg.c                |    4 ++--
 src/eog-window.c                    |   28 ++++++++++++++--------------
 src/main.c                          |    4 ++--
 6 files changed, 29 insertions(+), 29 deletions(-)
---
diff --git a/data/org.gnome.eog.gschema.xml.in b/data/org.gnome.eog.gschema.xml.in
index cf8af76..d8a44ef 100644
--- a/data/org.gnome.eog.gschema.xml.in
+++ b/data/org.gnome.eog.gschema.xml.in
@@ -101,24 +101,24 @@
     <key name="disable-trash-confirmation" type="b">
       <default>false</default>
       <summary>Trash images without asking</summary>
-      <description>If activated, Eye of GNOME won't ask for confirmation when moving images to the trash. It 
will still ask if any of the files cannot be moved to the trash and would be deleted instead.</description>
+      <description>If activated, Eye of GNOME won’t ask for confirmation when moving images to the trash. It 
will still ask if any of the files cannot be moved to the trash and would be deleted instead.</description>
     </key>
     <key name="filechooser-xdg-fallback" type="b">
       <default>true</default>
-      <summary>Whether the file chooser should show the user's pictures folder if no images are 
loaded.</summary>
-      <description>If activated and no image is loaded in the active window, the file chooser will display 
the user's pictures folder using the XDG special user directories. If deactivated or the pictures folder has 
not been set up, it will show the current working directory.</description>
+      <summary>Whether the file chooser should show the user’s pictures folder if no images are 
loaded.</summary>
+      <description>If activated and no image is loaded in the active window, the file chooser will display 
the user’s pictures folder using the XDG special user directories. If deactivated or the pictures folder has 
not been set up, it will show the current working directory.</description>
     </key>
     <key name="propsdialog-netbook-mode" type="b">
       <default>true</default>
       <summary>Whether the metadata list in the properties dialog should have its own page.</summary>
-      <description>If activated, the detailed metadata list in the properties dialog will be moved to its 
own page in the dialog. This should make the dialog more usable on smaller screens, e.g. as used by netbooks. 
If disabled, the widget will be embedded on the "Metadata" page.</description>
+      <description>If activated, the detailed metadata list in the properties dialog will be moved to its 
own page in the dialog. This should make the dialog more usable on smaller screens, e.g. as used by netbooks. 
If disabled, the widget will be embedded on the “Metadata” page.</description>
     </key>
   </schema>
   <schema id="org.gnome.eog.plugins" path="/org/gnome/eog/plugins/">
     <key name="active-plugins" type="as">
       <default>['fullscreen']</default>
       <summary>Active plugins</summary>
-      <description>List of active plugins. It doesn't contain the "Location" of the active plugins.  See the 
.eog-plugin file for obtaining the "Location" of a given plugin.</description>
+      <description>List of active plugins. It doesn’t contain the “Location” of the active plugins.  See the 
.eog-plugin file for obtaining the “Location” of a given plugin.</description>
     </key>
   </schema>
 </schemalist>
diff --git a/src/eog-close-confirmation-dialog.c b/src/eog-close-confirmation-dialog.c
index d206a15..f945358 100644
--- a/src/eog-close-confirmation-dialog.c
+++ b/src/eog-close-confirmation-dialog.c
@@ -388,7 +388,7 @@ get_text_secondary_label (EogImage *image)
 {
        gchar *secondary_msg;
 
-       secondary_msg = g_strdup (_("If you don't save, your changes will be lost."));
+       secondary_msg = g_strdup (_("If you don’t save, your changes will be lost."));
 
        return secondary_msg;
 }
@@ -434,7 +434,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
 
        image_name = eog_image_get_caption (img);
 
-       str = g_markup_printf_escaped (_("Save changes to image \"%s\" before closing?"),
+       str = g_markup_printf_escaped (_("Save changes to image “%s” before closing?"),
                                       image_name);
        markup_str = g_strconcat ("<span weight=\"bold\" size=\"larger\">", str, "</span>", NULL);
        g_free (str);
@@ -685,7 +685,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
        gtk_widget_set_size_request (scrolledwindow, 260, 120);
 
        /* Secondary label */
-       secondary_label = gtk_label_new (_("If you don't save, "
+       secondary_label = gtk_label_new (_("If you don’t save, "
                                           "all your changes will be lost."));
 
        gtk_box_pack_start (GTK_BOX (vbox2), secondary_label, FALSE, FALSE, 0);
diff --git a/src/eog-error-message-area.c b/src/eog-error-message-area.c
index 938ba96..70618d8 100644
--- a/src/eog-error-message-area.c
+++ b/src/eog-error-message-area.c
@@ -216,7 +216,7 @@ eog_image_load_error_message_area_new (const gchar  *caption,
           be interpreted as the beginning of a pango entity inside
           the message area GtkLabel. */
        pango_escaped_caption = g_markup_escape_text (caption, -1);
-       error_message = g_strdup_printf (_("Could not load image '%s'."),
+       error_message = g_strdup_printf (_("Could not load image “%s”."),
                                         pango_escaped_caption);
 
        message_details = eog_util_make_valid_utf8 (error->message);
@@ -258,7 +258,7 @@ eog_image_save_error_message_area_new (const gchar  *caption,
           be interpreted as the beginning of a pango entity inside
           the message area GtkLabel. */
        pango_escaped_caption = g_markup_escape_text (caption, -1);
-       error_message = g_strdup_printf (_("Could not save image '%s'."),
+       error_message = g_strdup_printf (_("Could not save image “%s”."),
                                         pango_escaped_caption);
 
        message_details = eog_util_make_valid_utf8 (error->message);
@@ -301,7 +301,7 @@ eog_no_images_error_message_area_new (GFile *file)
                   for example "&" which will otherwise be interpreted
                   as a pango markup entity when inserted into a GtkLabel. */
                pango_escaped_str = g_markup_escape_text (unescaped_str, -1);
-               error_message = g_strdup_printf (_("No images found in '%s'."),
+               error_message = g_strdup_printf (_("No images found in “%s”."),
                                                 pango_escaped_str);
 
                g_free (pango_escaped_str);
diff --git a/src/eog-image-jpeg.c b/src/eog-image-jpeg.c
index b4c8a2d..0eaf5f8 100644
--- a/src/eog-image-jpeg.c
+++ b/src/eog-image-jpeg.c
@@ -371,7 +371,7 @@ _save_any_as_jpeg (EogImage *image, const char *file, EogImageSaveInfo *source,
                g_set_error (error,             /* FIXME: Better error message */
                             GDK_PIXBUF_ERROR,
                             GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
-                            _("Couldn't create temporary file for saving: %s"),
+                            _("Couldn’t create temporary file for saving: %s"),
                             file);
                return FALSE;
        }
@@ -390,7 +390,7 @@ _save_any_as_jpeg (EogImage *image, const char *file, EogImageSaveInfo *source,
                g_set_error (error,
                             GDK_PIXBUF_ERROR,
                             GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
-                            _("Couldn't allocate memory for loading JPEG file"));
+                            _("Couldn’t allocate memory for loading JPEG file"));
                fclose (outfile);
                return FALSE;
        }
diff --git a/src/eog-window.c b/src/eog-window.c
index 7f5e5c9..cc84890 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -915,7 +915,7 @@ image_file_changed_cb (EogImage *img, EogWindow *window)
 
        /* The newline character is currently necessary due to a problem
         * with the automatic line break. */
-       text = g_strdup_printf (_("The image \"%s\" has been modified by an external application."
+       text = g_strdup_printf (_("The image “%s” has been modified by an external application."
                                  "\nWould you like to reload it?"), eog_image_get_caption (img));
        markup = g_markup_printf_escaped ("<b>%s</b>", text);
        gtk_label_set_markup (GTK_LABEL (label), markup);
@@ -1178,7 +1178,7 @@ eog_job_save_progress_cb (EogJobSave *job, float progress, gpointer user_data)
                 * - the original filename
                 * - the current image's position in the queue
                 * - the total number of images queued for saving */
-               status_message = g_strdup_printf (_("Saving image \"%s\" (%u/%u)"),
+               status_message = g_strdup_printf (_("Saving image “%s” (%u/%u)"),
                                                  str_image,
                                                  job->current_position + 1,
                                                  n_images);
@@ -1603,7 +1603,7 @@ handle_image_selection_changed_cb (EogThumbView *thumbview, EogWindow *window)
 
        str_image = eog_image_get_uri_for_display (image);
 
-       status_message = g_strdup_printf (_("Opening image \"%s\""),
+       status_message = g_strdup_printf (_("Opening image “%s”"),
                                          str_image);
 
        g_free (str_image);
@@ -2666,7 +2666,7 @@ eog_window_set_wallpaper (EogWindow *window, const gchar *filename, const gchar
 
        /* The newline character is currently necessary due to a problem
         * with the automatic line break. */
-       text = g_strdup_printf (_("The image \"%s\" has been set as Desktop Background."
+       text = g_strdup_printf (_("The image “%s” has been set as Desktop Background."
                                  "\nWould you like to modify its appearance?"),
                                visible_filename ? visible_filename : basename);
        markup = g_markup_printf_escaped ("<b>%s</b>", text);
@@ -3234,7 +3234,7 @@ show_force_image_delete_confirm_dialog (EogWindow *window,
        if (n_images == 1) {
                image = EOG_IMAGE (images->data);
 
-               prompt = g_strdup_printf (_("Are you sure you want to remove\n\"%s\" permanently?"),
+               prompt = g_strdup_printf (_("Are you sure you want to remove\n“%s” permanently?"),
                                          eog_image_get_caption (image));
        } else {
                prompt = g_strdup_printf (ngettext ("Are you sure you want to remove\n"
@@ -3310,7 +3310,7 @@ force_image_delete_real (EogImage  *image,
                g_set_error (error,
                             EOG_WINDOW_ERROR,
                             EOG_WINDOW_ERROR_IO,
-                            _("Couldn't retrieve image file"));
+                            _("Couldn’t retrieve image file"));
 
                return FALSE;
        }
@@ -3326,7 +3326,7 @@ force_image_delete_real (EogImage  *image,
                g_set_error (error,
                             EOG_WINDOW_ERROR,
                             EOG_WINDOW_ERROR_IO,
-                            _("Couldn't retrieve image file information"));
+                            _("Couldn’t retrieve image file information"));
 
                /* free resources */
                g_object_unref (file);
@@ -3342,7 +3342,7 @@ force_image_delete_real (EogImage  *image,
                g_set_error (error,
                             EOG_WINDOW_ERROR,
                             EOG_WINDOW_ERROR_IO,
-                            _("Couldn't delete file"));
+                            _("Couldn’t delete file"));
 
                /* free resources */
                g_object_unref (file_info);
@@ -3487,10 +3487,10 @@ show_move_to_trash_confirm_dialog (EogWindow *window, GList *images, gboolean ca
        if (n_images == 1) {
                image = EOG_IMAGE (images->data);
                if (can_trash) {
-                       prompt = g_strdup_printf (_("Are you sure you want to move\n\"%s\" to the trash?"),
+                       prompt = g_strdup_printf (_("Are you sure you want to move\n“%s” to the trash?"),
                                                  eog_image_get_caption (image));
                } else {
-                       prompt = g_strdup_printf (_("A trash for \"%s\" couldn't be found. Do you want to 
remove "
+                       prompt = g_strdup_printf (_("A trash for “%s” couldn’t be found. Do you want to 
remove "
                                                    "this image permanently?"), eog_image_get_caption 
(image));
                }
        } else {
@@ -3500,7 +3500,7 @@ show_move_to_trash_confirm_dialog (EogWindow *window, GList *images, gboolean ca
                                                           "Are you sure you want to move\n"
                                                           "the %d selected images to the trash?", n_images), 
n_images);
                } else {
-                       prompt = g_strdup (_("Some of the selected images can't be moved to the trash "
+                       prompt = g_strdup (_("Some of the selected images can’t be moved to the trash "
                                             "and will be removed permanently. Are you sure you want "
                                             "to proceed?"));
                }
@@ -3564,7 +3564,7 @@ move_to_trash_real (EogImage *image, GError **error)
                g_set_error (error,
                             EOG_WINDOW_ERROR,
                             EOG_WINDOW_ERROR_TRASH_NOT_FOUND,
-                            _("Couldn't access trash."));
+                            _("Couldn’t access trash."));
                return FALSE;
        }
 
@@ -3578,7 +3578,7 @@ move_to_trash_real (EogImage *image, GError **error)
                        g_set_error (error,
                                     EOG_WINDOW_ERROR,
                                     EOG_WINDOW_ERROR_TRASH_NOT_FOUND,
-                                    _("Couldn't access trash."));
+                                    _("Couldn’t access trash."));
                }
        } else {
                result = g_file_delete (file, NULL, NULL);
@@ -3586,7 +3586,7 @@ move_to_trash_real (EogImage *image, GError **error)
                        g_set_error (error,
                                     EOG_WINDOW_ERROR,
                                     EOG_WINDOW_ERROR_IO,
-                                    _("Couldn't delete file"));
+                                    _("Couldn’t delete file"));
                }
        }
 
diff --git a/src/main.c b/src/main.c
index 9c9cbfc..59fa5b4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -66,7 +66,7 @@ static const GOptionEntry goption_options[] =
        { "new-instance", 'n', 0, G_OPTION_ARG_NONE, &force_new_instance, N_("Start a new instance instead of 
reusing an existing one"), NULL },
        { "single-window", 'w', 0, G_OPTION_ARG_NONE, &single_window, N_("Open in a single window, if 
multiple windows are open the first one is used"), NULL },
        { "version", 0, G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK,
-         _print_version_and_exit, N_("Show the application's version"), NULL},
+         _print_version_and_exit, N_("Show the application’s version"), NULL},
        { NULL }
 };
 
@@ -109,7 +109,7 @@ main (int argc, char **argv)
                gchar *help_msg;
 
                /* I18N: The '%s' is replaced with eog's command name. */
-               help_msg = g_strdup_printf (_("Run '%s --help' to see a full "
+               help_msg = g_strdup_printf (_("Run “%s --help” to see a full "
                                              "list of available command line "
                                              "options."), argv[0]);
                 g_printerr ("%s\n%s\n", error->message, help_msg);


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