diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-11-26 10:05:22 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-11-26 10:05:22 +0300 |
commit | 56b30ab598ba76aa1a59041d67f743793ef877bb (patch) | |
tree | 700c32960b462927003d0766a3bb2f2b84ca961e /src/mod_irc.erl | |
parent | Update dependencies (diff) |
Improve translation of some messages
Diffstat (limited to 'src/mod_irc.erl')
-rw-r--r-- | src/mod_irc.erl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mod_irc.erl b/src/mod_irc.erl index 77bf3480..f43a6653 100644 --- a/src/mod_irc.erl +++ b/src/mod_irc.erl @@ -655,12 +655,10 @@ adhoc_join(From, To, #adhoc_command{lang = Lang, xdata = X} = Request) -> RoomJID = jid:make(<<Channel/binary, "%", Server/binary>>, To#jid.server), Reason = translate:translate(Lang, <<"Join the IRC channel here.">>), - Body = str:format( - translate:translate( - Lang, <<"Join the IRC channel in this Jabber ID: ~s">>), - [jid:to_string(RoomJID)]), + BodyTxt = {<<"Join the IRC channel in this Jabber ID: ~s">>, + [jid:to_string(RoomJID)]}, Invite = #message{ - body = xmpp:mk_text(Body, Lang), + body = xmpp:mk_text(BodyTxt, Lang), sub_els = [#muc_user{ invites = [#muc_invite{from = From, reason = Reason}]}, |