chiark / gitweb /
i18n: i18n-diff-auditor: understand i_
[dgit.git] / i18n-diff-auditor
index 80840913235bfe81230a885531651f0340e0a05b..853dccea8b4ab009d7584a9f33e5b573a4430d44 100755 (executable)
@@ -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{\%};