diff options
Diffstat (limited to 'i18n-diff-auditor')
-rwxr-xr-x | i18n-diff-auditor | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/i18n-diff-auditor b/i18n-diff-auditor index 8084091..853dcce 100755 --- a/i18n-diff-auditor +++ b/i18n-diff-auditor @@ -108,7 +108,7 @@ our ($ichunkstart, $ichunkend); our ($before, $after); sub is_string ($) { $_[0]{T} =~ m/heredoc|string/; } -sub is_trans ($) { grep { $_[0]{E} eq $_ } qw(__ f_); } +sub is_trans ($) { grep { $_[0]{E} eq $_ } qw(__ f_ i_); } sub semiparse ($) { ($_) = @_; @@ -238,6 +238,10 @@ sub analyse_chunk_core () { die $string_changed if length $string_changed; next; } + if ($ye eq 'i_') { + die $string_changed if length $string_changed; + next; + } if ($ye eq 'f_') { my $fmt = $y->{V}; die "no percent in _f string\n" unless $fmt =~ m{\%}; |