wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/utils wmlxgettext


From: Yann Dirson
Subject: [Wesnoth-cvs-commits] wesnoth/utils wmlxgettext
Date: Sun, 05 Sep 2004 12:28:18 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Yann Dirson <address@hidden>    04/09/05 16:23:22

Modified files:
        utils          : wmlxgettext 

Log message:
        allow wmlxgettext to extract several strings from a single input line

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/utils/wmlxgettext.diff?tr1=1.3&tr2=1.4&r1=text&r2=text

Patches:
Index: wesnoth/utils/wmlxgettext
diff -u wesnoth/utils/wmlxgettext:1.3 wesnoth/utils/wmlxgettext:1.4
--- wesnoth/utils/wmlxgettext:1.3       Sun Sep  5 16:13:06 2004
+++ wesnoth/utils/wmlxgettext   Sun Sep  5 16:23:22 2004
@@ -28,6 +28,10 @@
       push @{$messages{raw2postring($2)}}, "$file:$."
        if ($1 ne ''); # ie. translatable
 
+      # process remaining of the line
+      $_ = $3;
+      redo LINE;
+
     } elsif (!defined $str and m/^(?:[^\"]*?)((?:_\s*)?)\s*\"([^\"]*)/) {
       # start of multi-line
 
@@ -45,6 +49,10 @@
        if $translatable;
       $str = undef;
 
+      # process remaining of the line
+      $_ = $2;
+      redo LINE;
+
     } elsif (defined $str) {
       # part of multi-line
       $str .= $_;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]