[gnome-builder] Use Unicode in translatable strings



commit 53ea951fdef6ec3c906906dd49a93b4f3739ab11
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Wed Feb 15 18:35:21 2017 +0100

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

 libide/application/ide-application-command-line.c  |    2 +-
 libide/util/ide-file-manager.c                     |    2 +-
 libide/util/ide-uri.c                              |   18 +++++++++---------
 libide/workbench/ide-workbench.c                   |    2 +-
 plugins/color-picker/gtk/color-picker-prefs.ui     |    2 +-
 plugins/command-bar/gb-vim.c                       |    4 ++--
 .../create-project/gbp-create-project-widget.ui    |    2 +-
 plugins/git/ide-git-clone-widget.ui                |    2 +-
 plugins/hello-cpp/hellocppapplicationaddin.cc      |    4 ++--
 plugins/support/ide-support-application-addin.c    |    2 +-
 10 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/libide/application/ide-application-command-line.c 
b/libide/application/ide-application-command-line.c
index c722e32..f321481 100644
--- a/libide/application/ide-application-command-line.c
+++ b/libide/application/ide-application-command-line.c
@@ -198,7 +198,7 @@ ide_application_local_command_line (GApplication   *application,
       G_OPTION_FLAG_NONE,
       G_OPTION_ARG_NONE,
       &version,
-      N_("Show the application's version") },
+      N_("Show the application’s version") },
 
     { "type",
       0,
diff --git a/libide/util/ide-file-manager.c b/libide/util/ide-file-manager.c
index f782857..3d4670e 100644
--- a/libide/util/ide-file-manager.c
+++ b/libide/util/ide-file-manager.c
@@ -126,7 +126,7 @@ ide_file_manager_show (GFile   *file,
     else
       {
         g_set_error (error, G_FILE_ERROR, 0,
-                     _("Cannot convert '%s' into a valid NSURL."), uri);
+                     _("Cannot convert “%s” into a valid NSURL."), uri);
         retval = FALSE;
       }
 
diff --git a/libide/util/ide-uri.c b/libide/util/ide-uri.c
index 3bb3f15..8b5ecaa 100644
--- a/libide/util/ide-uri.c
+++ b/libide/util/ide-uri.c
@@ -363,7 +363,7 @@ parse_host (const gchar       *raw_host,
       if (raw_host[len - 1] != ']')
         {
           g_set_error (error, IDE_URI_ERROR, IDE_URI_ERROR_BAD_HOST,
-                       _("Invalid IP literal '%s' in URI"),
+                       _("Invalid IP literal “%s” in URI"),
                        raw_host);
           return FALSE;
         }
@@ -374,7 +374,7 @@ parse_host (const gchar       *raw_host,
         {
           g_free (addr);
           g_set_error (error, IDE_URI_ERROR, IDE_URI_ERROR_BAD_HOST,
-                       _("Invalid IP literal '%s' in URI"),
+                       _("Invalid IP literal “%s” in URI"),
                        raw_host);
           return FALSE;
         }
@@ -408,7 +408,7 @@ parse_host (const gchar       *raw_host,
     {
       g_free (decoded);
       g_set_error (error, IDE_URI_ERROR, IDE_URI_ERROR_BAD_HOST,
-                   _("Invalid encoded IP literal '%s' in URI"),
+                   _("Invalid encoded IP literal “%s” in URI"),
                    raw_host);
       return FALSE;
     }
@@ -417,7 +417,7 @@ parse_host (const gchar       *raw_host,
     {
       g_free (decoded);
       g_set_error (error, IDE_URI_ERROR, IDE_URI_ERROR_BAD_HOST,
-                   _("Invalid non-ASCII hostname '%s' in URI"),
+                   _("Invalid non-ASCII hostname “%s” in URI"),
                    raw_host);
       return FALSE;
     }
@@ -431,7 +431,7 @@ parse_host (const gchar       *raw_host,
   if (flags & IDE_URI_PARSE_NO_IRI)
     {
       g_set_error (error, IDE_URI_ERROR, IDE_URI_ERROR_BAD_HOST,
-                   _("Non-ASCII hostname '%s' forbidden in this URI"),
+                   _("Non-ASCII hostname “%s” forbidden in this URI"),
                    decoded);
       g_free (decoded);
       return FALSE;
@@ -454,14 +454,14 @@ parse_port (const gchar  *raw_port,
   if (*end)
     {
       g_set_error (error, IDE_URI_ERROR, IDE_URI_ERROR_BAD_PORT,
-                   _("Could not parse port '%s' in URI"),
+                   _("Could not parse port “%s” in URI"),
                    raw_port);
       return FALSE;
     }
   else if (parsed_port > 65535)
     {
       g_set_error (error, IDE_URI_ERROR, IDE_URI_ERROR_BAD_PORT,
-                   _("Port '%s' in URI is out of range"),
+                   _("Port “%s” in URI is out of range"),
                    raw_port);
       return FALSE;
     }
@@ -657,7 +657,7 @@ ide_uri_new_relative (IdeUri            *base_uri,
   if (!uri->scheme && !base_uri)
     {
       g_set_error (error, IDE_URI_ERROR, IDE_URI_ERROR_MISC,
-                   _("Could not parse '%s' as absolute URI"),
+                   _("Could not parse “%s” as absolute URI"),
                    uri_string);
       GOTO (fail);
     }
@@ -1200,7 +1200,7 @@ ide_uri_parse_host (const gchar       *uri_string,
   if (!raw_host)
     {
       g_set_error (error, IDE_URI_ERROR, IDE_URI_ERROR_BAD_HOST,
-                   _("URI '%s' has no host component"),
+                   _("URI “%s” has no host component"),
                    uri_string);
       GOTO (fail);
     }
diff --git a/libide/workbench/ide-workbench.c b/libide/workbench/ide-workbench.c
index b22379f..3f49f4b 100644
--- a/libide/workbench/ide-workbench.c
+++ b/libide/workbench/ide-workbench.c
@@ -560,7 +560,7 @@ transform_title (GBinding     *binding,
   const gchar *name = g_value_get_string (from_value);
 
   if (name != NULL)
-    g_value_take_string (to_value, g_strdup_printf (_("%s - Builder"), name));
+    g_value_take_string (to_value, g_strdup_printf (_("%s — Builder"), name));
   else
     g_value_set_static_string (to_value, _("Builder"));
 
diff --git a/plugins/color-picker/gtk/color-picker-prefs.ui b/plugins/color-picker/gtk/color-picker-prefs.ui
index dae5fd2..1e495a5 100644
--- a/plugins/color-picker/gtk/color-picker-prefs.ui
+++ b/plugins/color-picker/gtk/color-picker-prefs.ui
@@ -226,7 +226,7 @@
                     <property name="can_focus">False</property>
                     <property name="margin_top">6</property>
                     <property name="margin_bottom">6</property>
-                    <property name="label" translatable="yes">Select a filter that act on the colors or 
'None'.</property>
+                    <property name="label" translatable="yes">Select a filter that act on the colors or 
“None”.</property>
                     <property name="justify">fill</property>
                     <property name="wrap">True</property>
                     <style>
diff --git a/plugins/command-bar/gb-vim.c b/plugins/command-bar/gb-vim.c
index 3ab1865..4f5fdd7 100644
--- a/plugins/command-bar/gb-vim.c
+++ b/plugins/command-bar/gb-vim.c
@@ -155,7 +155,7 @@ gb_vim_set_filetype (GtkSourceView  *source_view,
       g_set_error (error,
                    GB_VIM_ERROR,
                    GB_VIM_ERROR_UNKNOWN_OPTION,
-                   _("Cannot find language '%s'"),
+                   _("Cannot find language “%s”"),
                    value);
       return FALSE;
     }
@@ -423,7 +423,7 @@ gb_vim_command_colorscheme (GtkWidget      *active_widget,
           g_set_error (error,
                        GB_VIM_ERROR,
                        GB_VIM_ERROR_UNKNOWN_OPTION,
-                       _("Cannot find colorscheme '%s'"),
+                       _("Cannot find colorscheme “%s”"),
                        options);
           return FALSE;
         }
diff --git a/plugins/create-project/gbp-create-project-widget.ui 
b/plugins/create-project/gbp-create-project-widget.ui
index b8958f1..e5bb1dc 100644
--- a/plugins/create-project/gbp-create-project-widget.ui
+++ b/plugins/create-project/gbp-create-project-widget.ui
@@ -52,7 +52,7 @@
                         <property name="wrap">true</property>
                         <property name="visible">true</property>
                         <property name="max-width-chars">60</property>
-                        <property name="label" translatable="yes">Unique name that is used for your 
project's folder and other technical resources. Should be in lower case without spaces and may not start with 
a number.</property>
+                        <property name="label" translatable="yes">Unique name that is used for your 
project’s folder and other technical resources. Should be in lower case without spaces and may not start with 
a number.</property>
                         <style>
                           <class name="dim-label"/>
                         </style>
diff --git a/plugins/git/ide-git-clone-widget.ui b/plugins/git/ide-git-clone-widget.ui
index 9953e9f..fd4c8bb 100644
--- a/plugins/git/ide-git-clone-widget.ui
+++ b/plugins/git/ide-git-clone-widget.ui
@@ -64,7 +64,7 @@
                         <property name="width-chars">35</property>
                         <property name="max-width-chars">50</property>
                         <property name="placeholder-text" 
translatable="yes">user@host:repository.git</property>
-                        <property name="tooltip-text" translatable="yes">Enter the URL of your project's 
source code repository</property>
+                        <property name="tooltip-text" translatable="yes">Enter the URL of your project’s 
source code repository</property>
                         <property name="valign">baseline</property>
                         <property name="visible">true</property>
                       </object>
diff --git a/plugins/hello-cpp/hellocppapplicationaddin.cc b/plugins/hello-cpp/hellocppapplicationaddin.cc
index 62a4216..7016e67 100644
--- a/plugins/hello-cpp/hellocppapplicationaddin.cc
+++ b/plugins/hello-cpp/hellocppapplicationaddin.cc
@@ -45,8 +45,8 @@ HelloCppApplicationAddin::HelloCppApplicationAddin(GObject *gobj)
   con = application->signal_shutdown().connect([this] {
       auto stop = steady_clock::now();
       auto elapsed_seconds = duration_cast<seconds>(stop - start).count();
-      g_print (ngettext("Wow! You've spent with Builder %d second!\n", 
-                        "Wow! You've spent with Builder %d seconds!\n", 
+      g_print (ngettext("Wow! You’ve spent with Builder %d second!\n", 
+                        "Wow! You’ve spent with Builder %d seconds!\n", 
                         elapsed_seconds), 
                elapsed_seconds);
     });
diff --git a/plugins/support/ide-support-application-addin.c b/plugins/support/ide-support-application-addin.c
index ddd814a..aa9f3e7 100644
--- a/plugins/support/ide-support-application-addin.c
+++ b/plugins/support/ide-support-application-addin.c
@@ -76,7 +76,7 @@ generate_support_activate (GSimpleAction              *action,
       goto cleanup;
     }
 
-  text = g_strdup_printf (_("The support log file has been written to '%s'. "
+  text = g_strdup_printf (_("The support log file has been written to “%s”. "
                             "Please provide this file as an attachment on "
                             "your bug report or support request."),
                             log_path);


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