Bug 5444 Fix misc/translate script for 'standard' Koha install
authorFrédéric Demians <f.demians@tamil.fr>
Thu, 25 Nov 2010 07:55:05 +0000 (08:55 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 1 Dec 2010 19:58:28 +0000 (08:58 +1300)
[3.2] Should apply

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
misc/translator/LangInstaller.pm

index 6d78237..a1fef0f 100644 (file)
@@ -23,6 +23,7 @@ use warnings;
 use C4::Context;
 use YAML::Syck qw( Dump LoadFile );
 use Locale::PO;
+use FindBin qw( $Bin );
 
 $YAML::Syck::ImplicitTyping = 1;
 
@@ -46,7 +47,7 @@ sub new {
                                '/prog/en/modules/admin/preferences';
     set_lang( $self, $lang ) if $lang;
     $self->{pref_only}       = $pref_only;
-    $self->{translator_path} = $context->config('intranetdir') . "/misc/translator";
+    $self->{translator_path} = $Bin;
     $self->{path_po}         = $self->{translator_path} . "/po";
     $self->{po}              = {};