Release ProZilla 2.2.0 with translated status output
This commit is contained in:
+5
-3
@@ -38,6 +38,7 @@
|
||||
#include <ctype.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include "interface.h"
|
||||
#include "misc.h"
|
||||
#include "main.h"
|
||||
@@ -313,12 +314,13 @@ void DisplayCursesInfo(download_t * download)
|
||||
|
||||
attrset(COLOR_PAIR(HIGHLIGHT_PAIR));
|
||||
if (download->main_file_size > 0)
|
||||
mvprintw(line++, 1, _("File Size = %lldK"), download->main_file_size / 1024);
|
||||
mvprintw(line++, 1, _("File Size = %jdK"),
|
||||
(intmax_t) (download->main_file_size / 1024));
|
||||
else
|
||||
mvprintw(line++, 1, _("File Size = UNKNOWN"));
|
||||
|
||||
snprintf(buf, sizeof(buf), _("Total Bytes received %lld Kb (%.2f%%)"),
|
||||
total_bytes_got,
|
||||
snprintf(buf, sizeof(buf), _("Total Bytes received %jd Kb (%.2f%%)"),
|
||||
(intmax_t) total_bytes_got,
|
||||
(((float)total_bytes_got * 100) / ((float)download->main_file_size / 1024)));
|
||||
line++;
|
||||
mvprintw(line++, 1, buf);
|
||||
|
||||
Reference in New Issue
Block a user