#!/usr/bin/perl -w
# Control-center
# $Id$
#
# Copyright (C) 2001-2002 MandrakeSoft
# Yves Duret <yduret at mandrakesoft.com>
#
# 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
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
use POSIX;
use Gtk;
use lib qw(/usr/lib/libDrakX);
use standalone; #- warning, standalone must be loaded very first, for 'explanations'
use interactive;
use Config;
use any;
init Gtk;
Gtk->set_locale;
#-------------------------------------------------------------
# i18n routines
# IMPORTANT: next two routines have to be redefined here to
# get correct namespace (drakconf instead of libDrakX)
# (This version is now UTF8 compliant - Sg 2001-08-18)
#-------------------------------------------------------------
sub _ {
my $s = shift @_; my $t = translate($s);
sprintf $t, @_;
}
sub translate {
my ($s) = @_;
$s ? c::dgettext('drakfloppy', $s) : '';
}
|