[net] fix display of download filesize for RTL languages

* Closes #1279
This commit is contained in:
Pete Batard 2019-03-20 13:28:42 +00:00
parent eac0ea942a
commit 3aecbf371b
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
2 changed files with 9 additions and 6 deletions

View file

@ -415,7 +415,10 @@ uint64_t DownloadToFileOrBuffer(const char* url, const char* file, BYTE** buffer
if (hProgressDialog != NULL) {
char msg[128];
uprintf("File length: %s", SizeToHumanReadable(total_size, FALSE, FALSE));
static_sprintf(msg, "%s (%s)", GetShortName(url), SizeToHumanReadable(total_size, FALSE, FALSE));
if (right_to_left_mode)
static_sprintf(msg, "(%s) %s", SizeToHumanReadable(total_size, FALSE, FALSE), GetShortName(url));
else
static_sprintf(msg, "%s (%s)", GetShortName(url), SizeToHumanReadable(total_size, FALSE, FALSE));
PrintStatus(0, MSG_085, msg);
}