Bugzilla – Attachment 4366 Details for
Bug 6464
Add inconsistence check for '%s' count in tmpl_process3.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
inconsistence check for tmpl_process3.pl
check.patch (text/plain), 657 bytes, created by
Sébastien Marie
on 2011-06-05 17:09:42 UTC
(
hide
)
Description:
inconsistence check for tmpl_process3.pl
Filename:
MIME Type:
Creator:
Sébastien Marie
Created:
2011-06-05 17:09:42 UTC
Size:
657 bytes
patch
obsolete
>diff --git a/misc/translator/tmpl_process3.pl b/misc/translator/tmpl_process3.pl >index 46ceceb..ac0f0c4 100755 >--- a/misc/translator/tmpl_process3.pl >+++ b/misc/translator/tmpl_process3.pl >@@ -274,6 +277,16 @@ if (defined $href) { > # $charset_in = $candidate; > # } > # } >+ >+ for my $msgid (keys %$href) { >+ my $msgstr = $href->{$msgid}->msgstr; >+ >+ my $id_count = scalar(split(/%s/,$msgid)); >+ my $str_count = scalar(split(/%s/,$msgstr)); >+ >+ warn_normal "unconsistent '%s' count: msgid ($id_count)=$msgid / msgstr($str_count)=$msgstr\n", undef >+ if ( $id_count ne $str_count ); >+ } > } > > # set our charset in to UTF-8
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6464
:
4366
|
4373
|
4376
|
4378