comms i18n
This commit is contained in:
parent
56ff8faacb
commit
0d6988244b
1 changed files with 5 additions and 5 deletions
|
|
@ -119,17 +119,17 @@ class ChannelCommand(command.Command):
|
||||||
caller = caller if not hasattr(caller, "account") else caller.account
|
caller = caller if not hasattr(caller, "account") else caller.account
|
||||||
unmuted = channel.unmute(caller)
|
unmuted = channel.unmute(caller)
|
||||||
if unmuted:
|
if unmuted:
|
||||||
self.msg("You start listening to %s." % channel)
|
self.msg(_("You start listening to %s.") % channel)
|
||||||
return
|
return
|
||||||
self.msg("You were already listening to %s." % channel)
|
self.msg(_("You were already listening to %s.") % channel)
|
||||||
return
|
return
|
||||||
if msg == "off":
|
if msg == "off":
|
||||||
caller = caller if not hasattr(caller, "account") else caller.account
|
caller = caller if not hasattr(caller, "account") else caller.account
|
||||||
muted = channel.mute(caller)
|
muted = channel.mute(caller)
|
||||||
if muted:
|
if muted:
|
||||||
self.msg("You stop listening to %s." % channel)
|
self.msg(_("You stop listening to %s.") % channel)
|
||||||
return
|
return
|
||||||
self.msg("You were already not listening to %s." % channel)
|
self.msg(_("You were already not listening to %s.") % channel)
|
||||||
return
|
return
|
||||||
if self.history_start is not None:
|
if self.history_start is not None:
|
||||||
# Try to view history
|
# Try to view history
|
||||||
|
|
@ -144,7 +144,7 @@ class ChannelCommand(command.Command):
|
||||||
else:
|
else:
|
||||||
caller = caller if not hasattr(caller, "account") else caller.account
|
caller = caller if not hasattr(caller, "account") else caller.account
|
||||||
if caller in channel.mutelist:
|
if caller in channel.mutelist:
|
||||||
self.msg("You currently have %s muted." % channel)
|
self.msg(_("You currently have %s muted.") % channel)
|
||||||
return
|
return
|
||||||
channel.msg(msg, senders=self.caller, online=True)
|
channel.msg(msg, senders=self.caller, online=True)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue