[gxml] More grammar errors fixed for Bug #761204 from Anders Jonsson
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] More grammar errors fixed for Bug #761204 from Anders Jonsson
- Date: Tue, 29 Mar 2016 00:40:05 +0000 (UTC)
commit 020151bf595aaf2e5923848c8ad7ad62e9bce330
Author: Daniel Espinosa <esodan gmail com>
Date: Mon Mar 28 18:38:37 2016 -0600
More grammar errors fixed for Bug #761204 from Anders Jonsson
gxml/Enumeration.vala | 2 +-
gxml/GXmlDocument.vala | 2 +-
gxml/SerializableObjectModel.vala | 2 +-
gxml/TDocument.vala | 2 +-
gxml/libxml-Node.vala | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gxml/Enumeration.vala b/gxml/Enumeration.vala
index e1ba0df..6c68d2b 100644
--- a/gxml/Enumeration.vala
+++ b/gxml/Enumeration.vala
@@ -126,7 +126,7 @@ namespace GXml {
enumv = ev;
}
if (enumv == null)
- throw new EnumerationError.INVALID_TEXT (_("text can not been parsed to
enumeration type:")+enumeration.name ());
+ throw new EnumerationError.INVALID_TEXT (_("text can not be parsed to
enumeration type:")+enumeration.name ());
return enumv;
}
/**
diff --git a/gxml/GXmlDocument.vala b/gxml/GXmlDocument.vala
index 5ebc6f9..10a99a0 100644
--- a/gxml/GXmlDocument.vala
+++ b/gxml/GXmlDocument.vala
@@ -46,7 +46,7 @@ public class GXml.GDocument : GXml.GNode, GXml.Document
public GDocument.from_file (GLib.File file, int options = 0, Cancellable? cancel = null) throws GLib.Error
{
if (!file.query_exists ())
- throw new DocumentError.INVALID_DOCUMENT_ERROR (_("File doesn't exists"));
+ throw new DocumentError.INVALID_DOCUMENT_ERROR (_("File doesn't exist"));
var b = new MemoryOutputStream.resizable ();
b.splice (file.read (), 0);
this.from_string ((string) b.data, options);
diff --git a/gxml/SerializableObjectModel.vala b/gxml/SerializableObjectModel.vala
index 465c295..563b8bb 100644
--- a/gxml/SerializableObjectModel.vala
+++ b/gxml/SerializableObjectModel.vala
@@ -319,7 +319,7 @@ public abstract class GXml.SerializableObjectModel : Object, Serializable
element = (Element) doc.root;
return_val_if_fail (element != null, false);
if (node_name () == null) {
- GLib.warning (_("WARNING: Object type '%s' have no Node Name defined").printf (get_type ().name ()));
+ GLib.warning (_("WARNING: Object type '%s' has no Node Name defined").printf (get_type ().name ()));
return false;
}
if (element.name.down () != node_name ().down ()) {
diff --git a/gxml/TDocument.vala b/gxml/TDocument.vala
index 9975ab7..4ea255d 100644
--- a/gxml/TDocument.vala
+++ b/gxml/TDocument.vala
@@ -472,7 +472,7 @@ public class GXml.TDocument : GXml.TNode, GXml.Document
*/
public static void read_doc (GXml.Document doc, GLib.File file, ReadTypeFunc? rtfunc = null) throws
GLib.Error {
if (!file.query_exists ())
- throw new GXml.DocumentError.INVALID_FILE (_("File doesn't exists"));
+ throw new GXml.DocumentError.INVALID_FILE (_("File doesn't exist"));
read_doc_stream (doc, file.read (), rtfunc);
}
/**
diff --git a/gxml/libxml-Node.vala b/gxml/libxml-Node.vala
index 820c6d0..a5df45b 100644
--- a/gxml/libxml-Node.vala
+++ b/gxml/libxml-Node.vala
@@ -64,7 +64,7 @@ namespace GXml {
}
if (this_doc != node.owner_document) {
- GXml.warning (DomException.WRONG_DOCUMENT, _("Node tried to interact with
different document it belongs to"));
+ GXml.warning (DomException.WRONG_DOCUMENT, _("Node tried to interact with a
different document than the one it belongs to"));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]