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

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


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

Modified Files:
	Sgml.pm 
Log Message:
When the string is really translated, an end of line is appended. Do the
same when the string is not proposed for translation for some reason.


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




More information about the Po4a-commits mailing list