summaryrefslogtreecommitdiffstats
path: root/clock.pm
diff options
context:
space:
mode:
authorStefan Siegel <siegel@linux-mandrake.com>2001-04-10 10:04:55 +0000
committerStefan Siegel <siegel@linux-mandrake.com>2001-04-10 10:04:55 +0000
commitc4be57be8af9d437234a88f7c542647c03f3641c (patch)
tree754891ac7cf72163e366425bdab5463be2e820e6 /clock.pm
parent38348f81ef9582bcb1bfc5f5161ed04c5f1d519d (diff)
downloadcontrol-center-c4be57be8af9d437234a88f7c542647c03f3641c.tar
control-center-c4be57be8af9d437234a88f7c542647c03f3641c.tar.gz
control-center-c4be57be8af9d437234a88f7c542647c03f3641c.tar.bz2
control-center-c4be57be8af9d437234a88f7c542647c03f3641c.tar.xz
control-center-c4be57be8af9d437234a88f7c542647c03f3641c.zip
i18n fixes
Diffstat (limited to 'clock.pm')
-rwxr-xr-xclock.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/clock.pm b/clock.pm
index 58ec25d4..1f0481a8 100755
--- a/clock.pm
+++ b/clock.pm
@@ -10,6 +10,17 @@ use timezone;
use Data::Dumper;
init Gtk;
#use strict;
+use Locale::GetText;
+
+setlocale (LC_ALL, "");
+Locale::GetText::textdomain ("DrakConf");
+import Locale::GetText I_;
+sub _ {
+ my $s = shift @_; my $t = I_($s);
+ $t && ref $t or return sprintf $t, @_;
+ my ($T, @p) = @$t;
+ sprintf $T, @_[@p];
+}
$::isEmbedded = ($::XID, $::CCPID) = "@ARGV" =~ /--embedded (\w+) (\w+)/;
my $in = vnew interactive('su');