diff options
Diffstat (limited to 'clock.pm')
-rwxr-xr-x | clock.pm | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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'); |