[epiphany] Use Unicode in translatable strings



commit 67fd64e3236c263b1cacabc96286398d15e1c05c
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Thu Nov 10 17:07:30 2016 +0100

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

 data/org.gnome.epiphany.gschema.xml      |   24 ++++++++++++------------
 data/org.gnome.epiphany.host.gschema.xml |   10 +++++-----
 lib/ephy-time-helpers.c                  |   16 ++++++++--------
 src/ephy-window.c                        |    2 +-
 src/prefs-dialog.c                       |    2 +-
 src/window-commands.c                    |    6 +++---
 6 files changed, 30 insertions(+), 30 deletions(-)
---
diff --git a/data/org.gnome.epiphany.gschema.xml b/data/org.gnome.epiphany.gschema.xml
index 22127eb..f62e862 100644
--- a/data/org.gnome.epiphany.gschema.xml
+++ b/data/org.gnome.epiphany.gschema.xml
@@ -12,7 +12,7 @@
                <key type="s" name="homepage-url">
                        <default>''</default>
                        <summary>Home page</summary>
-                       <description>Address of the user's home page.</description>
+                       <description>Address of the user’s home page.</description>
                </key>
                <key type="b" name="homepage-loads-in-new-tabs">
                        <default>false</default>
@@ -60,12 +60,12 @@
                </key>
                <key type="b" name="internal-view-source">
                        <default>true</default>
-                       <summary>Don't use an external application to view page source.</summary>
+                       <summary>Don’t use an external application to view page source.</summary>
                </key>
                 <key name="restore-session-policy" enum="org.gnome.Epiphany.EphyPrefsRestoreSessionPolicy">
                         <default>'always'</default>
                         <summary>Whether to automatically restore the last session</summary>
-                        <description>Defines how the session will be restored during startup. Allowed values 
are 'always' (the previous state of the application is always restored), 'crashed' (the session is only 
restored if the application crashes) and 'never' (the homepage is always shown).</description>
+                        <description>Defines how the session will be restored during startup. Allowed values 
are “always” (the previous state of the application is always restored), “crashed” (the session is only 
restored if the application crashes) and “never” (the homepage is always shown).</description>
                 </key>
                 <key type="b" name="restore-session-delaying-loads">
                         <default>true</default>
@@ -75,18 +75,18 @@
                 <key name="process-model" enum="org.gnome.Epiphany.EphyPrefsProcessModel">
                         <default>'one-secondary-process-per-web-view'</default>
                         <summary>Process model</summary>
-                        <description>This option allows to set the process model used. Use 
'shared-secondary-process' to use a single web process shared by all the tabs and 
'one-secondary-process-per-web-view' to use a different web process for each tab.</description>
+                        <description>This option allows to set the process model used. Use 
“shared-secondary-process” to use a single web process shared by all the tabs and 
“one-secondary-process-per-web-view” to use a different web process for each tab.</description>
                 </key>
                 <key type="u" name="max-processes">
                         <default>0</default>
-                        <summary>Maximum number of web processes created at the same time when using 
'one-secondary-process-per-web-view' model</summary>
-                        <description>This option sets a limit to the number of web processes that will be 
used at the same time for the 'one-secondary-process-per-web-view' model. The default value is '0' and means 
no limit.</description>
+                        <summary>Maximum number of web processes created at the same time when using 
“one-secondary-process-per-web-view” model</summary>
+                        <description>This option sets a limit to the number of web processes that will be 
used at the same time for the “one-secondary-process-per-web-view” model. The default value is “0” and means 
no limit.</description>
 
                 </key>
                <key type="s" name="sync-user">
                        <default>''</default>
                        <summary>The sync user currently logged in</summary>
-                       <description>The email linked to the Firefox Account used to sync data with Mozilla's 
servers.</description>
+                       <description>The email linked to the Firefox Account used to sync data with Mozilla’s 
servers.</description>
                </key>
                <key type="d" name="sync-time">
                        <default>0</default>
@@ -103,12 +103,12 @@
                <key name="tabs-bar-position" enum="org.gnome.Epiphany.EphyPrefsUITabsBarPosition">
                        <default>'top'</default>
                        <summary>The position of the tabs bar.</summary>
-                       <description>Controls where the tabs bar is shown. Possible values are 'top' (the 
default), 'bottom', 'left' (vertical tabs with bar on the left) and 'right' (vertical tabs with bar on the 
right).</description>
+                       <description>Controls where the tabs bar is shown. Possible values are “top” (the 
default), “bottom”, “left” (vertical tabs with bar on the left) and “right” (vertical tabs with bar on the 
right).</description>
                </key>
                <key name="tabs-bar-visibility-policy" 
enum="org.gnome.Epiphany.EphyPrefsUITabsBarVisibilityPolicy">
                        <default>'more-than-one'</default>
                        <summary>The visibility policy for the tabs  bar.</summary>
-                       <description>Controls when the tabs bar is shown. Possible values are 'always' (the 
tabs bar is always shown), 'more-than-one' (the tabs bar is only shown if there's two or more tabs) and 
'never' (the tabs bar is never shown).</description>
+                       <description>Controls when the tabs bar is shown. Possible values are “always” (the 
tabs bar is always shown), “more-than-one” (the tabs bar is only shown if there’s two or more tabs) and 
“never” (the tabs bar is never shown).</description>
                </key>
        </schema>
        <schema path="/org/gnome/epiphany/web/" id="org.gnome.Epiphany.web">
@@ -154,12 +154,12 @@
                <key type="as" name="language">
                        <default>['system']</default>
                        <summary>Languages</summary>
-                       <description>Preferred languages. Array of locale codes or 'system' to use current 
locale.</description>
+                       <description>Preferred languages. Array of locale codes or “system” to use current 
locale.</description>
                </key>
                <key name="cookies-policy" enum="org.gnome.Epiphany.EphyPrefsWebCookiesPolicy">
                        <default>'no-third-party'</default>
                        <summary>Cookie accept</summary>
-                       <description>Where to accept cookies from. Possible values are "always", 
"no-third-party" and "never".</description>
+                       <description>Where to accept cookies from. Possible values are “always”, 
“no-third-party” and “never”.</description>
                </key>
                <key type="b" name="enable-popups">
                        <default>true</default>
@@ -195,7 +195,7 @@
                <key type="s" name="download-dir">
                        <default>'Downloads'</default>
                        <summary>The downloads folder</summary>
-                       <description>The path of the folder where to download files to; or "Downloads" to use 
the default downloads folder, or "Desktop" to use the desktop folder.</description>
+                       <description>The path of the folder where to download files to; or “Downloads” to use 
the default downloads folder, or “Desktop” to use the desktop folder.</description>
                </key>
                <key type="as" name="recent-encodings">
                        <default>['' ]</default>
diff --git a/data/org.gnome.epiphany.host.gschema.xml b/data/org.gnome.epiphany.host.gschema.xml
index 6b53e59..2d5a153 100644
--- a/data/org.gnome.epiphany.host.gschema.xml
+++ b/data/org.gnome.epiphany.host.gschema.xml
@@ -9,27 +9,27 @@
     <key name="audio-device-permission" enum="org.gnome.Epiphany.host.permissions">
       <default>"undecided"</default>
       <summary>Decision to apply when microphone permission is requested for this host</summary>
-      <description>This option is used to save whether a given host has been given permission to access the 
user's microphone. The 'undecided' default means the browser needs to ask the user for permission, while 
'allow' and 'deny' tell it to automatically make the decision upon request.</description>
+      <description>This option is used to save whether a given host has been given permission to access the 
user’s microphone. The “undecided” default means the browser needs to ask the user for permission, while 
“allow” and “deny” tell it to automatically make the decision upon request.</description>
     </key>
     <key name="geolocation-permission" enum="org.gnome.Epiphany.host.permissions">
       <default>"undecided"</default>
       <summary>Decision to apply when geolocation permission is requested for this host</summary>
-      <description>This option is used to save whether a given host has been given permission to access the 
user's location. The 'undecided' default means the browser needs to ask the user for permission, while 
'allow' and 'deny' tell it to automatically make the decision upon request.</description>
+      <description>This option is used to save whether a given host has been given permission to access the 
user’s location. The “undecided” default means the browser needs to ask the user for permission, while 
“allow” and “deny” tell it to automatically make the decision upon request.</description>
     </key>
     <key name="notifications-permission" enum="org.gnome.Epiphany.host.permissions">
       <default>"undecided"</default>
       <summary>Decision to apply when notification permission is requested for this host</summary>
-      <description>This option is used to save whether a given host has been given permission to show 
notifications. The 'undecided' default means the browser needs to ask the user for permission, while 'allow' 
and 'deny' tell it to automatically make the decision upon request.</description>
+      <description>This option is used to save whether a given host has been given permission to show 
notifications. The “undecided” default means the browser needs to ask the user for permission, while “allow” 
and “deny” tell it to automatically make the decision upon request.</description>
     </key>
     <key name="save-password-permission" enum="org.gnome.Epiphany.host.permissions">
       <default>"undecided"</default>
       <summary>Decision to apply when save password permission is requested for this host</summary>
-      <description>This option is used to save whether a given host has been given permission to save 
passwords. The 'undecided' default means the browser needs to ask the user for permission, while 'allow' and 
'deny' tell it to automatically make the decision upon request.</description>
+      <description>This option is used to save whether a given host has been given permission to save 
passwords. The “undecided” default means the browser needs to ask the user for permission, while “allow” and 
“deny” tell it to automatically make the decision upon request.</description>
     </key>
     <key name="video-device-permission" enum="org.gnome.Epiphany.host.permissions">
       <default>"undecided"</default>
       <summary>Decision to apply when webcam permission is requested for this host</summary>
-      <description>This option is used to save whether a given host has been given permission to access the 
user's webcam. The 'undecided' default means the browser needs to ask the user for permission, while 'allow' 
and 'deny' tell it to automatically make the decision upon request.</description>
+      <description>This option is used to save whether a given host has been given permission to access the 
user’s webcam. The “undecided” default means the browser needs to ask the user for permission, while “allow” 
and “deny” tell it to automatically make the decision upon request.</description>
     </key>
   </schema>
 </schemalist>
diff --git a/lib/ephy-time-helpers.c b/lib/ephy-time-helpers.c
index 1ca9ecc..a162a37 100644
--- a/lib/ephy-time-helpers.c
+++ b/lib/ephy-time-helpers.c
@@ -222,8 +222,8 @@ ephy_time_helpers_utf_friendly_time (time_t date)
   if (then.tm_mday == now.tm_mday &&
       then.tm_mon == now.tm_mon &&
       then.tm_year == now.tm_year) {
-    /* Translators: "friendly time" string for the current day, strftime format. like "Today 12:34 am" */
-    format = _("Today %I:%M %p");
+    /* Translators: "friendly time" string for the current day, strftime format. like "Today 12∶34 am" */
+    format = _("Today %I∶%M %p");
     done = TRUE;
   }
 
@@ -234,9 +234,9 @@ ephy_time_helpers_utf_friendly_time (time_t date)
         then.tm_mon == yesterday.tm_mon &&
         then.tm_year == yesterday.tm_year) {
       /* Translators: "friendly time" string for the previous day,
-       * strftime format. e.g. "Yesterday 12:34 am"
+       * strftime format. e.g. "Yesterday 12∶34 am"
        */
-      format = _("Yesterday %I:%M %p");
+      format = _("Yesterday %I∶%M %p");
       done = TRUE;
     }
   }
@@ -250,9 +250,9 @@ ephy_time_helpers_utf_friendly_time (time_t date)
           then.tm_mon == yesterday.tm_mon &&
           then.tm_year == yesterday.tm_year) {
         /* Translators: "friendly time" string for a day in the current week,
-         * strftime format. e.g. "Wed 12:34 am"
+         * strftime format. e.g. "Wed 12∶34 am"
          */
-        format = _("%a %I:%M %p");
+        format = _("%a %I∶%M %p");
         done = TRUE;
         break;
       }
@@ -262,9 +262,9 @@ ephy_time_helpers_utf_friendly_time (time_t date)
   if (!done) {
     if (then.tm_year == now.tm_year) {
       /* Translators: "friendly time" string for a day in the current year,
-       * strftime format. e.g. "Feb 12 12:34 am"
+       * strftime format. e.g. "Feb 12 12∶34 am"
        */
-      format = _("%b %d %I:%M %p");
+      format = _("%b %d %I∶%M %p");
     } else {
       /* Translators: "friendly time" string for a day in a different year,
        * strftime format. e.g. "Feb 12 1997"
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 391a968..2ac6ab0 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1492,7 +1492,7 @@ populate_context_menu (WebKitWebView       *web_view,
       char *label;
       GVariant *value;
 
-      label = g_strdup_printf (_("Search the Web for '%s'"), ellipsized);
+      label = g_strdup_printf (_("Search the Web for “%s”"), ellipsized);
       value = g_variant_new_string (label);
       search_selection_action_name = g_action_print_detailed_name ("search-selection",
                                                                    value);
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 2d7e809..d6a2572 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -373,7 +373,7 @@ server_message_received_cb (WebKitUserContentManager *manager,
       FxACallbackData *cb_data;
 
       text = g_strdup_printf ("<span fgcolor='#e6780b'>%s</span>",
-                              _("Please don't leave this page until you have completed the verification."));
+                              _("Please don’t leave this page until you have completed the verification."));
       gtk_label_set_markup (GTK_LABEL (dialog->sync_sign_in_details), text);
       gtk_widget_set_visible (dialog->sync_sign_in_details, TRUE);
 
diff --git a/src/window-commands.c b/src/window-commands.c
index 6370375..030435d 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -865,7 +865,7 @@ confirm_web_application_overwrite (GtkWindow *parent, const char *title)
                                    GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
                                    GTK_MESSAGE_QUESTION,
                                    GTK_BUTTONS_NONE,
-                                   _("A web application named '%s' already exists. Do you want to replace 
it?"),
+                                   _("A web application named “%s” already exists. Do you want to replace 
it?"),
                                    title);
   gtk_dialog_add_buttons (GTK_DIALOG (dialog),
                           _("Cancel"),
@@ -909,10 +909,10 @@ dialog_save_as_application_response_cb (GtkDialog                 *dialog,
                                                 app_name,
                                                 gtk_image_get_pixbuf (GTK_IMAGE (data->image)));
     if (desktop_file)
-      message = g_strdup_printf (_("The application '%s' is ready to be used"),
+      message = g_strdup_printf (_("The application “%s” is ready to be used"),
                                  app_name);
     else
-      message = g_strdup_printf (_("The application '%s' could not be created"),
+      message = g_strdup_printf (_("The application “%s” could not be created"),
                                  app_name);
 
     notification = notify_notification_new (message,


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