Bug 21895: Fix path to POT file
authorJulian Maurice <julian.maurice@biblibre.com>
Wed, 28 Nov 2018 09:05:19 +0000 (10:05 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 10 Dec 2018 09:30:44 +0000 (09:30 +0000)
Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit d8531b8fcbfc8fe09540ddb940149a7d7dbb4fb9)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

misc/translator/LangInstaller.pm

index 333a148..55003af 100644 (file)
@@ -484,7 +484,7 @@ sub locale_name {
 sub create_messages {
     my $self = shift;
 
-    my $pot = "$self->{domain}.pot";
+    my $pot = "$Bin/$self->{domain}.pot";
     my $po = "$self->{path_po}/$self->{lang}-messages.po";
 
     unless ( -f $pot ) {
@@ -503,7 +503,7 @@ sub create_messages {
 sub update_messages {
     my $self = shift;
 
-    my $pot = "$self->{domain}.pot";
+    my $pot = "$Bin/$self->{domain}.pot";
     my $po = "$self->{path_po}/$self->{lang}-messages.po";
 
     unless ( -f $pot ) {