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

(-)a/misc/translator/tmpl_process3.pl (-1 / +12 lines)
Lines 273-278 if (defined $href) { Link Here
273
#       $charset_in = $candidate;
273
#       $charset_in = $candidate;
274
#   }
274
#   }
275
#     }
275
#     }
276
277
    # BUG6464: check consistency of PO messages
278
    #  - count number of '%s' in msgid and msgstr
279
    for my $msgid (keys %$href) {
280
      my $msgstr = $href->{$msgid}->msgstr;
281
282
      my $id_count  = scalar(split(/%s/,$msgid)) - 1;
283
      my $str_count = scalar(split(/%s/,$msgstr)) - 1;
284
      
285
      warn_normal "unconsistent %s count: ($id_count/$str_count): msgid=$msgid | msgstr=$msgstr\n", undef
286
	if ( $id_count ne $str_count );
287
    }
276
}
288
}
277
289
278
# set our charset in to UTF-8
290
# set our charset in to UTF-8
279
- 

Return to bug 6464