[gxml] Fix non-English colons in translatable strings



commit d5eee0c5dae31d56aa03f312239eb6af2ec60c6c
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Fri Sep 29 18:30:30 2017 +0200

    Fix non-English colons in translatable strings

 gxml/CssSelectorParser.vala |    6 +++---
 gxml/GomSchema.vala         |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gxml/CssSelectorParser.vala b/gxml/CssSelectorParser.vala
index 12d78ca..7378c82 100644
--- a/gxml/CssSelectorParser.vala
+++ b/gxml/CssSelectorParser.vala
@@ -162,7 +162,7 @@ public class GXml.CssSelectorParser : GLib.Object {
                        while (css.get_next_char (ref position, out u) && (s != 0 ? u != s : u != ']'))
                                sb1.append_unichar (u);
                        if (s == 0 && !is_valid_identifier (sb1.str))
-                               throw new CssSelectorError.ATTRIBUTE (_("Invalid attribute selector value : 
%s").printf (sb1.str));
+                               throw new CssSelectorError.ATTRIBUTE (_("Invalid attribute selector value: 
%s").printf (sb1.str));
                        if (s != 0) {
                                if (u != s)
                                        throw new CssSelectorError.STRING (_("Invalid end of attribute 
value"));
@@ -194,7 +194,7 @@ public class GXml.CssSelectorParser : GLib.Object {
                        throw new CssSelectorError.ATTRIBUTE (_("Invalid attribute selector character"));
                css.get_next_char (ref position, out u);
                if (u != '=')
-                       throw new CssSelectorError.ATTRIBUTE (_("Invalid attribute selector character : can't 
find '=' character"));
+                       throw new CssSelectorError.ATTRIBUTE (_("Invalid attribute selector character: can't 
find '=' character"));
                css.get_next_char (ref position, out u);
                while (u.isspace())
                        css.get_next_char (ref position, out u);
@@ -208,7 +208,7 @@ public class GXml.CssSelectorParser : GLib.Object {
                while (css.get_next_char (ref position, out u) && (s != 0 ? u != s : u != ']'))
                        sb1.append_unichar (u);
                if (s == 0 && !is_valid_identifier (sb1.str))
-                       throw new CssSelectorError.ATTRIBUTE (_("Invalid attribute selector value : 
%s").printf (sb1.str));
+                       throw new CssSelectorError.ATTRIBUTE (_("Invalid attribute selector value: 
%s").printf (sb1.str));
                if (s != 0) {
                        if (u != s)
                                throw new CssSelectorError.STRING (_("Invalid end of attribute value"));
diff --git a/gxml/GomSchema.vala b/gxml/GomSchema.vala
index 387d145..21f7883 100644
--- a/gxml/GomSchema.vala
+++ b/gxml/GomSchema.vala
@@ -272,7 +272,7 @@ public class GXml.GomXsdList : GomArrayList {
       try {
         if (get_item (i) == element) return i;
       } catch (GLib.Error e) {
-        warning (_("Can't find element at position: %i : %s").printf (i,e.message));
+        warning (_("Can't find element at position: %i: %s").printf (i,e.message));
       }
     }
     return -1;


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