diff --git a/misc/translator/LangInstaller.pm b/misc/translator/LangInstaller.pm index deff3abf2d..b8a6ee64ae 100644 --- a/misc/translator/LangInstaller.pm +++ b/misc/translator/LangInstaller.pm @@ -527,6 +527,10 @@ sub extract_messages_from_templates { foreach my $file (@files) { say "Extract messages from $file" if $self->{verbose}; my $template = read_file("$intranetdir/$file"); + + # No need to process a file that doesn't use the i18n.inc file. + next unless $template =~ /i18n\.inc/; + my $data = $parser->parse($template); unless ($data) { warn "Error at $file : " . $parser->error();