X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=misc%2Ftranslator%2Fxgettext.pl;h=abe315e5d7f1e3856ef342eeb1c37e9040a0ff7d;hb=f460afbad6566e68bdbaddb5577f13f77a86a877;hp=031f9ba4e6728078f4c1d5dc008860aee781add1;hpb=2814b535e6672e972d954e823f611378393f624b;p=koha.git 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;