[gxml] Fix typos in translatable strings
- From: Piotr Drąg <piotrdrag src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] Fix typos in translatable strings
- Date: Thu, 15 Sep 2016 14:25:16 +0000 (UTC)
commit 53996bfe1ff8df507b4b57e850203679527b58d1
Author: Piotr Drąg <piotrdrag gmail com>
Date: Thu Sep 15 16:24:04 2016 +0200
Fix typos in translatable strings
gxml/GXmlDomCollections.vala | 4 ++--
gxml/GXmlHashMapAttr.vala | 2 +-
gxml/GXmlNode.vala | 16 ++++++++--------
3 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/gxml/GXmlDomCollections.vala b/gxml/GXmlDomCollections.vala
index 7291646..9db4299 100644
--- a/gxml/GXmlDomCollections.vala
+++ b/gxml/GXmlDomCollections.vala
@@ -58,9 +58,9 @@ public class GXml.GDomTokenList : Gee.ArrayList<string>, GXml.DomTokenList {
public new void add (string[] tokens) throws GLib.Error {
foreach (string s in tokens) {
if (s == "")
- throw new GXml.DomError.SYNTAX_ERROR (_("DOM: Invalid token. Empty string can't be as token"));
+ throw new GXml.DomError.SYNTAX_ERROR (_("DOM: Invalid token. Empty string can't be used as
token"));
if (" " in s)
- throw new GXml.DomError.INVALID_CHARACTER_ERROR (_("DOM: Invalid token. White spaces can't be
used as token"));
+ throw new GXml.DomError.INVALID_CHARACTER_ERROR (_("DOM: Invalid token. White spaces can't be used
as token"));
base.add (s);
}
update ();
diff --git a/gxml/GXmlHashMapAttr.vala b/gxml/GXmlHashMapAttr.vala
index b6be800..0ae9502 100644
--- a/gxml/GXmlHashMapAttr.vala
+++ b/gxml/GXmlHashMapAttr.vala
@@ -237,7 +237,7 @@ public class GXml.GHashMapAttr : Gee.AbstractMap<string,GXml.Node>,
iterator ().next ();
var _parent = iterator ().get ().value.parent_node as DomElement;
if (size > 0 && node.owner_document != _parent.owner_document)
- throw new GXml.DomError.WRONG_DOCUMENT_ERROR (_("Invalid document when addin item to collection"));
+ throw new GXml.DomError.WRONG_DOCUMENT_ERROR (_("Invalid document when adding item to collection"));
if (read_only)
throw new GXml.DomError.NO_MODIFICATION_ALLOWED_ERROR (_("This node collection is read only"));
if (node is GXml.DomAttr && _parent != node.parent_node)
diff --git a/gxml/GXmlNode.vala b/gxml/GXmlNode.vala
index 4a820ff..2772f8f 100644
--- a/gxml/GXmlNode.vala
+++ b/gxml/GXmlNode.vala
@@ -287,23 +287,23 @@ public abstract class GXml.GNode : Object,
public DomNode insert_before (DomNode node, DomNode? child) throws GLib.Error {
if (!(node is GXml.GNode))
- throw new DomError.INVALID_NODE_TYPE_ERROR (_("Invalid attemp to add invalid node type"));
+ throw new DomError.INVALID_NODE_TYPE_ERROR (_("Invalid attempt to add invalid node type"));
if (child != null && !this.contains (child))
throw new DomError.NOT_FOUND_ERROR (_("Can't find child to insert node before"));
if (!(this is DomDocument
|| this is DomElement
|| this is DomDocumentFragment))
- throw new DomError.HIERARCHY_REQUEST_ERROR (_("Invalid attemp to insert a node"));
+ throw new DomError.HIERARCHY_REQUEST_ERROR (_("Invalid attempt to insert a node"));
if (!(node is DomDocumentFragment
|| node is DomDocumentType
|| node is DomElement
|| node is DomText
|| node is DomProcessingInstruction
|| node is DomComment))
- throw new DomError.HIERARCHY_REQUEST_ERROR (_("Invalid attemp to insert an invalid node type"));
+ 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 attemp 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 a 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);
@@ -318,23 +318,23 @@ public abstract class GXml.GNode : Object,
}
public DomNode replace_child (DomNode node, DomNode child) throws GLib.Error {
if (!(node is GXml.GNode))
- throw new DomError.INVALID_NODE_TYPE_ERROR (_("Invalid atemp to add invalid node type"));
+ throw new DomError.INVALID_NODE_TYPE_ERROR (_("Invalid attempt to add invalid node type"));
if (child == null || !this.contains (child))
throw new DomError.NOT_FOUND_ERROR (_("Can't find child node to replace or child have a different
parent"));
if (!(this is DomDocument
|| this is DomElement
|| this is DomDocumentFragment))
- throw new DomError.HIERARCHY_REQUEST_ERROR (_("Invalid atemp to insert a node"));
+ throw new DomError.HIERARCHY_REQUEST_ERROR (_("Invalid attempt to insert a node"));
if (!(node is DomDocumentFragment
|| node is DomDocumentType
|| node is DomElement
|| node is DomText
|| node is DomProcessingInstruction
|| node is DomComment))
- throw new DomError.HIERARCHY_REQUEST_ERROR (_("Invalid atemp to insert an invalid node type"));
+ 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 atemp 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 a 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]