View | Details | Raw Unified | Return to bug 11631
Collapse All | Expand All

(-)a/misc/translator/xgettext.pl (-1 / +5 lines)
Lines 91-96 sub text_extract (*) { Link Here
91
        my $s = TmplTokenizer::next_token $h;
91
        my $s = TmplTokenizer::next_token $h;
92
        last unless defined $s;
92
        last unless defined $s;
93
        my($kind, $t, $attr) = ($s->type, $s->string, $s->attributes);
93
        my($kind, $t, $attr) = ($s->type, $s->string, $s->attributes);
94
        my $tmpt = $t;
95
        # If msgid contains only placeholders and/or spaces, ignore it
96
        $tmpt =~ s/(%s|\s)//g;
97
        next if ($tmpt eq "");
98
94
        if ($kind eq C4::TmplTokenType::TEXT) {
99
        if ($kind eq C4::TmplTokenType::TEXT) {
95
	    if ($t =~ /\S/s && $t !~ /<!/){
100
	    if ($t =~ /\S/s && $t !~ /<!/){
96
		remember( $s, $t );
101
		remember( $s, $t );
97
- 

Return to bug 11631