]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtktextbufferserialize.c
fix recent files issues
[~andy/gtk] / gtk / gtktextbufferserialize.c
index 4a869d5c9957f1cbde8069087266ce3a6cf50aa0..66eb18d63ea959a53e0b67ef32f2a22893aad600 100644 (file)
@@ -798,8 +798,8 @@ check_id_or_name (GMarkupParseContext  *context,
              set_error (error, context,
                         G_MARKUP_ERROR,
                         G_MARKUP_ERROR_PARSE,
-                        _("The attribute \"name\" were found twice on the <%s> element"),
-                        element_name);
+                        _("The attribute \"%s\" was found twice on the <%s> element"),
+                        "name", element_name);
              return FALSE;
            }
 
@@ -824,8 +824,8 @@ check_id_or_name (GMarkupParseContext  *context,
              set_error (error, context,
                         G_MARKUP_ERROR,
                         G_MARKUP_ERROR_PARSE,
-                        _("The attribute \"id\" were found twice on the <%s> element"),
-                        element_name);
+                        _("The attribute \"%s\" was found twice on the <%s> element"),
+                        "id", element_name);
              return FALSE;
            }
 
@@ -848,7 +848,7 @@ check_id_or_name (GMarkupParseContext  *context,
     {
       set_error (error, context,
                 G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE,
-                _("<%s> element neither a \"name\" nor an \"id\" element"), element_name);
+                _("<%s> element has neither a \"name\" nor an \"id\" attribute"), element_name);
       return FALSE;
     }
 
@@ -1194,7 +1194,7 @@ parse_attr_element (GMarkupParseContext  *context,
        {
          set_error (error, context,
                     G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE,
-                    _("\"%s\" is not a valid value of for attribute \"%s\""),
+                    _("\"%s\" is not a valid value for attribute \"%s\""),
                     value, name);
          g_value_unset (&gvalue);
          return;
@@ -1350,7 +1350,7 @@ start_element_handler (GMarkupParseContext  *context,
          if (info->parsed_tags)
            {
              set_error (error, context, G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE,
-                        _("A <tags> element has already been specified"));
+                        _("A <%s> element has already been specified"), "tags");
              return;
            }
 
@@ -1366,7 +1366,7 @@ start_element_handler (GMarkupParseContext  *context,
          if (info->parsed_text)
            {
              set_error (error, context, G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE,
-                        _("A <text> element has already been specified"));
+                        _("A <%s> element has already been specified"), "text");
              return;
            }
          else if (!info->parsed_tags)
@@ -1798,8 +1798,7 @@ deserialize_text (GtkTextBuffer *buffer,
   ParseInfo info;
   gboolean retval = FALSE;
 
-
-  static GMarkupParser rich_text_parser = {
+  static const GMarkupParser rich_text_parser = {
     start_element_handler,
     end_element_handler,
     text_handler,