[Po4a-commits] "po4a/lib/Locale/Po4a Sgml.pm,1.73,1.74"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Wed Sep 14 13:29:45 UTC 2005


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

Modified Files:
	Sgml.pm 
Log Message:
Also do not propose to translate entries compose of "<![...[" or "]]>".


Index: Sgml.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Sgml.pm,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -d -r1.73 -r1.74
--- Sgml.pm	14 Sep 2005 13:23:43 -0000	1.73
+++ Sgml.pm	14 Sep 2005 13:29:43 -0000	1.74
@@ -275,6 +275,16 @@
 	return $string;
     }
 
+    # don't translate entries composed of marked section tags only
+    if (   ($string =~ /^(?:<!\s*\[\s*[^\[]+\s*\[|\]\s*]\s*>|\s)*$/)
+        && !($self->{options}{'include-all'})) {
+        warn wrap_mod("po4a::sgml", dgettext("po4a", "msgid skipped to ".
+                      "help translators (contains only opening or closing ".
+                      "tags of marked sections)"), $string)
+               unless $self->verbose() <= 0;
+        return $string;
+    }
+
     return $self->SUPER::translate($string,$ref,$type,%options);
 }
 




More information about the Po4a-commits mailing list