[gtksourceview] Use Unicode in translatable strings



commit 81ac8d1c7fe140b6cd10b4721322d742401e6e57
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Tue Oct 11 15:11:46 2016 +0200

    Use Unicode in translatable strings
    
    See https://developer.gnome.org/hig/stable/typography.html

 gtksourceview/gtksourcebufferoutputstream.c |    4 ++--
 gtksourceview/gtksourcecompletion.ui        |    2 +-
 gtksourceview/gtksourcecontextengine.c      |   16 ++++++++--------
 gtksourceview/gtksourcelanguage-parser-2.c  |    4 ++--
 4 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/gtksourceview/gtksourcebufferoutputstream.c b/gtksourceview/gtksourcebufferoutputstream.c
index 8bd8736..3853f42 100644
--- a/gtksourceview/gtksourcebufferoutputstream.c
+++ b/gtksourceview/gtksourcebufferoutputstream.c
@@ -927,13 +927,13 @@ gtk_source_buffer_output_stream_write (GOutputStream  *stream,
                                if (errno == EINVAL)
                                {
                                        g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
-                                                    _("Conversion from character set '%s' to 'UTF-8' is not 
supported"),
+                                                    _("Conversion from character set “%s” to “UTF-8” is not 
supported"),
                                                     from_charset);
                                }
                                else
                                {
                                        g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
-                                                    _("Could not open converter from '%s' to 'UTF-8'"),
+                                                    _("Could not open converter from “%s” to “UTF-8”"),
                                                     from_charset);
                                }
 
diff --git a/gtksourceview/gtksourcecompletion.ui b/gtksourceview/gtksourcecompletion.ui
index 8ba3237..fcfbc23 100644
--- a/gtksourceview/gtksourcecompletion.ui
+++ b/gtksourceview/gtksourcecompletion.ui
@@ -86,7 +86,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
                 <property name="can_focus">False</property>
                 <property name="tooltip_text" translatable="yes">Show detailed proposal 
information</property>
                 <property name="relief">GTK_RELIEF_NONE</property>
-                <property name="label" translatable="yes">_Details...</property>
+                <property name="label" translatable="yes">_Details…</property>
                 <property name="use_underline">True</property>
               </object>
             </child>
diff --git a/gtksourceview/gtksourcecontextengine.c b/gtksourceview/gtksourcecontextengine.c
index 804c314..01bb12f 100644
--- a/gtksourceview/gtksourcecontextengine.c
+++ b/gtksourceview/gtksourcecontextengine.c
@@ -5709,7 +5709,7 @@ context_definition_new (const gchar            *id,
                g_set_error (error,
                             GTK_SOURCE_CONTEXT_ENGINE_ERROR,
                             GTK_SOURCE_CONTEXT_ENGINE_ERROR_INVALID_START_REF,
-                            _("context '%s' cannot contain a \\%%{...@start} command"),
+                            _("context “%s” cannot contain a \\%%{...@start} command"),
                             id);
                regex_error = TRUE;
        }
@@ -5872,7 +5872,7 @@ _gtk_source_context_data_define_context (GtkSourceContextData   *ctx_data,
                g_set_error (error,
                             GTK_SOURCE_CONTEXT_ENGINE_ERROR,
                             GTK_SOURCE_CONTEXT_ENGINE_ERROR_DUPLICATED_ID,
-                            _("duplicated context id '%s'"), id);
+                            _("duplicated context id “%s”"), id);
                return FALSE;
        }
 
@@ -5963,7 +5963,7 @@ _gtk_source_context_data_add_sub_pattern (GtkSourceContextData  *ctx_data,
                g_set_error (error,
                             GTK_SOURCE_CONTEXT_ENGINE_ERROR,
                             GTK_SOURCE_CONTEXT_ENGINE_ERROR_DUPLICATED_ID,
-                            _("duplicated context id '%s'"), id);
+                            _("duplicated context id “%s”"), id);
                return FALSE;
        }
 
@@ -6078,7 +6078,7 @@ _gtk_source_context_data_add_ref (GtkSourceContextData        *ctx_data,
                g_set_error (error, GTK_SOURCE_CONTEXT_ENGINE_ERROR,
                             GTK_SOURCE_CONTEXT_ENGINE_ERROR_INVALID_STYLE,
                             _("style override used with wildcard context reference"
-                              " in language '%s' in ref '%s'"),
+                              " in language “%s” in ref “%s”"),
                             ctx_data->lang->priv->id, ref_id);
                return FALSE;
        }
@@ -6138,7 +6138,7 @@ resolve_reference (G_GNUC_UNUSED const gchar *id,
                                        g_set_error (&data->error, GTK_SOURCE_CONTEXT_ENGINE_ERROR,
                                                     GTK_SOURCE_CONTEXT_ENGINE_ERROR_INVALID_STYLE,
                                                     _("style override used with wildcard context reference"
-                                                      " in language '%s' in ref '%s'"),
+                                                      " in language “%s” in ref “%s”"),
                                                     data->ctx_data->lang->priv->id, ref->id);
                                }
                                else
@@ -6151,7 +6151,7 @@ resolve_reference (G_GNUC_UNUSED const gchar *id,
                {
                        g_set_error (&data->error, GTK_SOURCE_CONTEXT_ENGINE_ERROR,
                                     GTK_SOURCE_CONTEXT_ENGINE_ERROR_INVALID_REF,
-                                    _("invalid context reference '%s'"), child_def->u.id);
+                                    _("invalid context reference “%s”"), child_def->u.id);
                }
        }
 }
@@ -6170,7 +6170,7 @@ process_replace (GtkSourceContextData  *ctx_data,
        {
                g_set_error (error, GTK_SOURCE_CONTEXT_ENGINE_ERROR,
                             GTK_SOURCE_CONTEXT_ENGINE_ERROR_INVALID_REF,
-                            _("unknown context '%s'"), id);
+                            _("unknown context “%s”"), id);
                return FALSE;
        }
 
@@ -6180,7 +6180,7 @@ process_replace (GtkSourceContextData  *ctx_data,
        {
                g_set_error (error, GTK_SOURCE_CONTEXT_ENGINE_ERROR,
                             GTK_SOURCE_CONTEXT_ENGINE_ERROR_INVALID_REF,
-                            _("unknown context '%s'"), replace_with);
+                            _("unknown context “%s”"), replace_with);
                return FALSE;
        }
 
diff --git a/gtksourceview/gtksourcelanguage-parser-2.c b/gtksourceview/gtksourcelanguage-parser-2.c
index fc033e6..be299f4 100644
--- a/gtksourceview/gtksourcelanguage-parser-2.c
+++ b/gtksourceview/gtksourcelanguage-parser-2.c
@@ -947,7 +947,7 @@ replace_by_id (const GMatchInfo *match_info,
        if (subst == NULL)
                g_set_error (&tmp_error,
                             PARSER_ERROR, PARSER_ERROR_WRONG_ID,
-                            _("Unknown id '%s' in regex '%s'"), id,
+                            _("Unknown id “%s” in regex “%s”"), id,
                             g_match_info_get_string (match_info));
 
        if (tmp_error == NULL)
@@ -1177,7 +1177,7 @@ expand_regex (ParserState *parser_state,
                if (g_regex_get_max_backref (compiled) > 0)
                {
                        g_set_error (error, PARSER_ERROR, PARSER_ERROR_MALFORMED_REGEX,
-                                    _("in regex '%s': backreferences are not supported"),
+                                    _("in regex “%s”: backreferences are not supported"),
                                     regex);
                        g_regex_unref (compiled);
                        return NULL;


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