From be65390d0693dc13c5d58b71a13ade5e2689e6b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Thu, 25 Nov 2010 08:55:05 +0100 Subject: [PATCH] Bug 5444 Fix misc/translate script for 'standard' Koha install [3.2] Should apply Signed-off-by: Chris Cormack --- misc/translator/LangInstaller.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/translator/LangInstaller.pm b/misc/translator/LangInstaller.pm index 6d78237dfd..a1fef0f40d 100644 --- a/misc/translator/LangInstaller.pm +++ b/misc/translator/LangInstaller.pm @@ -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} = {}; -- 2.39.5