diff --git a/misc/translator/xgettext.pl b/misc/translator/xgettext.pl index 031f9ba4e6..abe315e5d7 100755 --- a/misc/translator/xgettext.pl +++ b/misc/translator/xgettext.pl @@ -212,6 +212,7 @@ EOF for my $token (@{$text{$t}}) { my $pathname = $token->pathname; $pathname =~ s/^$directory_re//os; + $pathname =~ s/^.*\/koha-tmpl\/(.*)$/$1/; printf OUTPUT "#: %s:%d\n", $pathname, $token->line_number if defined $pathname && defined $token->line_number; $cformat_p = 1 if $token->type == TmplTokenType::TEXT_PARAMETRIZED;