[gxml] Fix typos in translatable strings



commit a3dc8eae64618fe8f6e75bb42e0e93fc0c72d89d
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Sun Feb 5 16:44:33 2017 +0100

    Fix typos in translatable strings

 gxml/GXmlNode.vala    |    4 ++--
 gxml/GomDocument.vala |    4 ++--
 gxml/GomNode.vala     |    4 ++--
 gxml/GomObject.vala   |    2 +-
 gxml/GomSchema.vala   |    2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gxml/GXmlNode.vala b/gxml/GXmlNode.vala
index b5068c9..af1435e 100644
--- a/gxml/GXmlNode.vala
+++ b/gxml/GXmlNode.vala
@@ -320,7 +320,7 @@ public abstract class GXml.GNode : Object,
       throw new DomError.HIERARCHY_REQUEST_ERROR (_("Invalid attempt to insert an invalid node type"));
     if ((node is DomText && this is DomDocument)
           || (node is DomDocumentType && !(this is DomDocument)))
-      throw new DomError.HIERARCHY_REQUEST_ERROR (_("Invalid attempt to insert a document's type or text 
node to a invalid parent"));
+      throw new DomError.HIERARCHY_REQUEST_ERROR (_("Invalid attempt to insert a document's type or text 
node to an invalid parent"));
     //FIXME: We should follow steps for DOM4 observers in https://www.w3.org/TR/dom/#concept-node-pre-insert
     if (child != null) {
       int i = this.children_nodes.index_of (child as GXml.Node);
@@ -351,7 +351,7 @@ public abstract class GXml.GNode : Object,
       throw new DomError.HIERARCHY_REQUEST_ERROR (_("Invalid attempt to insert an invalid node type"));
     if ((node is DomText && this is DomDocument)
           || (node is DomDocumentType && !(this is DomDocument)))
-      throw new DomError.HIERARCHY_REQUEST_ERROR (_("Invalid attempt to insert a document's type or text 
node to a invalid parent"));
+      throw new DomError.HIERARCHY_REQUEST_ERROR (_("Invalid attempt to insert a document's type or text 
node to an invalid parent"));
     //FIXME: Checks for HierarchyRequestError for https://www.w3.org/TR/dom/#concept-node-replace
     int i = children_nodes.index_of ((child as GXml.Node));
     children_nodes.remove_at (i);
diff --git a/gxml/GomDocument.vala b/gxml/GomDocument.vala
index c6d5fd4..196655f 100644
--- a/gxml/GomDocument.vala
+++ b/gxml/GomDocument.vala
@@ -147,14 +147,14 @@ public class GXml.GomDocument : GomNode,
       var s = qualified_name.split (":");
       if (s.length != 2)
         throw new DomError.NAMESPACE_ERROR
-          (_("Creating an namespaced element with invalid node name"));
+          (_("Creating a namespaced element with invalid node name"));
       nsp = s[0];
       n = s[1];
     } else
       n = qualified_name;
     if (nsp == "" && namespace_uri == null)
       throw new DomError.NAMESPACE_ERROR
-        (_("Creating an namespaced element with invalid namespace"));
+        (_("Creating a namespaced element with invalid namespace"));
     if ((n == "xmlns" || nsp == "xmlns")
         && namespace_uri != "http://www.w3.org/2000/xmlns/";)
       throw new DomError.NAMESPACE_ERROR
diff --git a/gxml/GomNode.vala b/gxml/GomNode.vala
index 0570c57..442b2ed 100644
--- a/gxml/GomNode.vala
+++ b/gxml/GomNode.vala
@@ -285,7 +285,7 @@ public class GXml.GomNode : Object,
     if ((node is DomText && this is DomDocument)
           || (node is DomDocumentType && !(this is DomDocument)))
       throw new DomError.HIERARCHY_REQUEST_ERROR
-                  (_("Invalid attempt to insert a document or text type to a invalid parent node"));
+                  (_("Invalid attempt to insert a document or text type to an invalid parent node"));
     //FIXME: We should follow steps for DOM4 observers in https://www.w3.org/TR/dom/#concept-node-pre-insert
     if (child != null) {
       int i = this.child_nodes.index_of (child as GXml.DomNode);
@@ -323,7 +323,7 @@ public class GXml.GomNode : Object,
       throw new DomError.HIERARCHY_REQUEST_ERROR (_("Invalid attempt to insert an invalid node type"));
     if ((node is DomText && this is DomDocument)
           || (node is DomDocumentType && !(this is DomDocument)))
-      throw new DomError.HIERARCHY_REQUEST_ERROR (_("Invalid attempt to insert a document's type or text 
node to a invalid parent"));
+      throw new DomError.HIERARCHY_REQUEST_ERROR (_("Invalid attempt to insert a document's type or text 
node to an invalid parent"));
     //FIXME: Checks for HierarchyRequestError for https://www.w3.org/TR/dom/#concept-node-replace
     int i = child_nodes.index_of ((child as GXml.DomNode));
     child_nodes.remove_at (i);
diff --git a/gxml/GomObject.vala b/gxml/GomObject.vala
index aeea6ba..f2586fd 100644
--- a/gxml/GomObject.vala
+++ b/gxml/GomObject.vala
@@ -362,7 +362,7 @@ public interface GXml.GomObject : GLib.Object,
       obj = Object.new (prop.value_type,"owner_document", this.owner_document);
       try { this.append_child (obj as GomElement); }
       catch (GLib.Error e) {
-        warning (_("Error while atemting to instantiate property object: %s").printf (e.message));
+        warning (_("Error while attempting to instantiate property object: %s").printf (e.message));
         return false;
       }
       v.set_object (obj);
diff --git a/gxml/GomSchema.vala b/gxml/GomSchema.vala
index 0c21902..457cb94 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 possition: %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]