Release ProZilla 2.2.0 with translated status output

This commit is contained in:
Mario Fetka
2026-07-14 17:13:57 +02:00
parent a922885174
commit da5195c6bf
14 changed files with 1402 additions and 725 deletions
+5 -3
View File
@@ -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);