[sound-juicer] Use unicode quotes



commit c7a57154c3f5a715ecf48fb647e3d414e45b26b4
Author: Phillip Wood <phillip wood dunelm org uk>
Date:   Tue Jun 21 18:49:56 2016 +0100

    Use unicode quotes
    
    xgettext has an option to enforce unicode quotes in translated strings
    so lets use it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769623

 libjuicer/sj-metadata.c |    4 ++--
 po/Makevars             |    3 ++-
 src/sj-extracting.c     |    2 +-
 src/sj-main.c           |    4 ++--
 4 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/libjuicer/sj-metadata.c b/libjuicer/sj-metadata.c
index d356b22..e1da027 100644
--- a/libjuicer/sj-metadata.c
+++ b/libjuicer/sj-metadata.c
@@ -225,10 +225,10 @@ sj_metadata_helper_check_media (const char *cdrom, GError **error)
     SjError err;
 
     if (access (cdrom, W_OK) == 0) {
-      msg = g_strdup_printf (_("Device '%s' does not contain any media"), cdrom);
+      msg = g_strdup_printf (_("Device ‘%s’ does not contain any media"), cdrom);
       err = SJ_ERROR_CD_NO_MEDIA;
     } else {
-      msg = g_strdup_printf (_("Device '%s' could not be opened. Check the access permissions on the 
device."), cdrom);
+      msg = g_strdup_printf (_("Device ‘%s’ could not be opened. Check the access permissions on the 
device."), cdrom);
       err = SJ_ERROR_CD_PERMISSION_ERROR;
     }
     g_set_error (error, SJ_ERROR, err, _("Cannot read CD: %s"), msg);
diff --git a/po/Makevars b/po/Makevars
index 8342d46..f0a2fd4 100644
--- a/po/Makevars
+++ b/po/Makevars
@@ -55,7 +55,8 @@ XGETTEXT_OPTIONS = --from-code=UTF-8                                  \
                --flag=g_vprintf:1:c-format                           \
                --flag=g_vsnprintf:3:c-format                         \
                --flag=g_vsprintf:2:c-format                          \
-               --add-comments=Translators:
+               --add-comments=Translators:                           \
+               --check=quote-unicode
 
 # This is the copyright holder that gets inserted into the header of the
 # $(DOMAIN).pot file.  Set this to the copyright holder of the surrounding
diff --git a/src/sj-extracting.c b/src/sj-extracting.c
index 2fe992c..f61a3bd 100644
--- a/src/sj-extracting.c
+++ b/src/sj-extracting.c
@@ -308,7 +308,7 @@ confirm_overwrite_existing_file (GFile *uri, int *overwrite_mode, goffset info_s
                                    GTK_BUTTONS_NONE,
                                    _("A file with the same name exists"));
   gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
-                                            _("A file called '%s' exists, size %s.\nDo you want to skip this 
track or overwrite it?"),
+                                            _("A file called ‘%s’ exists, size %s.\nDo you want to skip this 
track or overwrite it?"),
                                             display_name, size);
   g_free (display_name);
   g_free (size);
diff --git a/src/sj-main.c b/src/sj-main.c
index 0a3c9c0..14bf881 100644
--- a/src/sj-main.c
+++ b/src/sj-main.c
@@ -1409,7 +1409,7 @@ set_drive_from_device (const char *device)
   if (! drive) {
     GtkWidget *dialog;
     char *message;
-    message = g_strdup_printf (_("Sound Juicer could not use the CD-ROM device '%s'"), device);
+    message = g_strdup_printf (_("Sound Juicer could not use the CD-ROM device ‘%s’"), device);
     dialog = gtk_message_dialog_new_with_markup (GTK_WINDOW (main_window),
                                                  GTK_DIALOG_DESTROY_WITH_PARENT,
                                                  GTK_MESSAGE_ERROR,
@@ -1440,7 +1440,7 @@ set_device (const char* device)
     const char *error;
 
     error = g_strerror (errno);
-    message = g_strdup_printf (_("Sound Juicer could not access the CD-ROM device '%s'"), device);
+    message = g_strdup_printf (_("Sound Juicer could not access the CD-ROM device ‘%s’"), device);
 
     dialog = gtk_message_dialog_new_with_markup (GTK_WINDOW (main_window),
                                                  GTK_DIALOG_DESTROY_WITH_PARENT,


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