Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-11-26 10:05:22 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-11-26 10:05:22 +0300
commit56b30ab598ba76aa1a59041d67f743793ef877bb (patch)
tree700c32960b462927003d0766a3bb2f2b84ca961e /src/mod_http_upload.erl
parent3ac73f9607034693f07a4a6ce50344d54c41629c (diff)
Improve translation of some messages
Diffstat (limited to 'src/mod_http_upload.erl')
-rw-r--r--src/mod_http_upload.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mod_http_upload.erl b/src/mod_http_upload.erl
index 1abde4f5b..37eaad27a 100644
--- a/src/mod_http_upload.erl
+++ b/src/mod_http_upload.erl
@@ -579,8 +579,7 @@ process_iq(_From, #iq{}, _State) ->
create_slot(#state{service_url = undefined, max_size = MaxSize},
JID, File, Size, _ContentType, Lang) when MaxSize /= infinity,
Size > MaxSize ->
- Text = <<"File larger than ", (integer_to_binary(MaxSize))/binary,
- " Bytes.">>,
+ Text = {<<"File larger than ~w bytes">>, [MaxSize]},
?INFO_MSG("Rejecting file ~s from ~s (too large: ~B bytes)",
[File, jid:to_string(JID), Size]),
{error, xmpp:err_not_acceptable(Text, Lang)};