projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added the hooks for internationalisation
[spider.git]
/
perl
/
DXChannel.pm
diff --git
a/perl/DXChannel.pm
b/perl/DXChannel.pm
index 9f0db819a9ee2da8244ac15bf97d1e4a810e5700..3eb387efaea99492f3038a555589d451e6ee74a7 100644
(file)
--- a/
perl/DXChannel.pm
+++ b/
perl/DXChannel.pm
@@
-76,6
+76,8
@@
sub alloc
$self->{startt} = $self->{t} = time;
$self->{state} = 0;
$self->{oldstate} = 0;
$self->{startt} = $self->{t} = time;
$self->{state} = 0;
$self->{oldstate} = 0;
+ $self->{lang} = $user->{lang} if defined $user;
+ $self->{lang} = $main::lang if !$self->{lang};
bless $self, $pkg;
return $channels{$call} = $self;
}
bless $self, $pkg;
return $channels{$call} = $self;
}
@@
-188,7
+190,7
@@
sub send_file
sub msg
{
my $self = shift;
sub msg
{
my $self = shift;
- return DXM::msg(@_);
+ return DXM::msg(
$self->{lang},
@_);
}
# change the state of the channel - lots of scope for debugging here :-)
}
# change the state of the channel - lots of scope for debugging here :-)