diff --git a/pym/format/xml_gconf.py b/pym/format/xml_gconf.py index 3099be9..1d13853 100644 --- a/pym/format/xml_gconf.py +++ b/pym/format/xml_gconf.py @@ -73,7 +73,7 @@ class xml_gconf(xml_xfce): try: self.doc = xml.dom.minidom.parseString(self.text) except: - self.setError(_("Can not text template is XML")) + self.setError(_("Template text is not XML")) return False self.rootNode = self.doc.documentElement self.bodyNode = self.rootNode diff --git a/pym/format/xml_xfce.py b/pym/format/xml_xfce.py index 048b499..de15868 100644 --- a/pym/format/xml_xfce.py +++ b/pym/format/xml_xfce.py @@ -72,7 +72,7 @@ class xml_xfce(_error): try: self.doc = xml.dom.minidom.parseString(self.text) except: - self.setError(_("Can not text template is XML")) + self.setError(_("Template text is not XML")) return False self.rootNode = self.doc.documentElement self.bodyNode = self.rootNode @@ -245,10 +245,10 @@ the same nodes at one level") def joinDoc(self, doc): """Объединение документа шаблона и документа файла""" if not self.doc: - self.setError(_("Can not text file is XML")) + self.setError(_("Text file is not XML")) return False if not doc: - self.setError(_("Can not text template is XML")) + self.setError(_("Text file is not XML")) return False # Импортируем корневую ноду нового документа в текущий документ #newImportBodyNode = self.doc.importNode(doc.documentElement, True) diff --git a/pym/format/xml_xfcepanel.py b/pym/format/xml_xfcepanel.py index d0a6054..a2b28ac 100644 --- a/pym/format/xml_xfcepanel.py +++ b/pym/format/xml_xfcepanel.py @@ -43,7 +43,7 @@ class xml_xfcepanel(xml_xfce): try: self.doc = xml.dom.minidom.parseString(self.text) except: - self.setError(_("Can not text template is XML")) + self.setError(_("Template text is not XML")) return False self.rootNode = self.doc.documentElement self.bodyNode = self.rootNode