From 2e45a61245d60946c6864f4d8eaeccec5f363ef9 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sun, 18 Dec 2005 12:13:56 +0000 Subject: allow common.pm and standalone.pm to be used in drakxtools-backend without perl-Locale-gettext --- perl-install/standalone.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'perl-install/standalone.pm') diff --git a/perl-install/standalone.pm b/perl-install/standalone.pm index 320b336e1..2ffdc883e 100644 --- a/perl-install/standalone.pm +++ b/perl-install/standalone.pm @@ -15,8 +15,10 @@ $::isStandalone = 1; $ENV{SHARE_PATH} ||= "/usr/share"; -c::init_setlocale(); -Locale::gettext::bindtextdomain('libDrakX', "/usr/share/locale"); +eval { #- allow standalone.pm to be used in drakxtools-backend without perl-Locale-gettext + c::init_setlocale(); + Locale::gettext::bindtextdomain('libDrakX', "/usr/share/locale"); +}; $::license = N_("This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -- cgit v1.2.1