[Po4a-commits] "po4a/lib/Locale/Po4a Sgml.pm,1.78,1.79"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Sat Sep 24 21:10:22 UTC 2005


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv24387/lib/Locale/Po4a

Modified Files:
	Sgml.pm 
Log Message:
Some valid document are not recognized as such by nsgmls (this is the case
of the XML file of the testsuite). So if nsgmls fails, we only warn and
continue instead of dying.
The translator is warned and will have to check the work of po4a.


Index: Sgml.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Sgml.pm,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -d -r1.78 -r1.79
--- Sgml.pm	21 Sep 2005 21:13:42 -0000	1.78
+++ Sgml.pm	24 Sep 2005 21:10:20 -0000	1.79
@@ -1006,11 +1006,11 @@
     # What to do after parsing
     $self->pushline($buffer);
     close(IN);
-    die wrap_mod("po4a::sgml",
-                 dgettext("po4a","nsgmls is missing or non-functional. ".
-                 "Please make sure that nsgmls is present and does not ".
-                 "produce any error (with the -wno-valid option), ".
-                 "and report a bug otherwise.")) if ($? != 0);
+    warn wrap_mod("po4a::sgml",
+                  dgettext("po4a","Warning: nsgmls is missing or non-".
+                  "functional.  Please make sure that nsgmls is present and ".
+                  "does not produce any error (with the -wno-valid option), ".
+                  "and report a bug otherwise.  Continuing...")) if ($? != 0);
     unlink ($tmpfile) unless $debug{'refs'};
 }
 




More information about the Po4a-commits mailing list