From 56b30ab598ba76aa1a59041d67f743793ef877bb Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Sat, 26 Nov 2016 10:05:22 +0300 Subject: Improve translation of some messages --- src/mod_http_upload.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mod_http_upload.erl') 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)}; -- cgit v1.2.3