Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

FS13774 - Translate units in file operation splash messages

'MiB' and 'KiB' were hardcoded; use LANG_MEBIBYTE/KIBIBYTE instead.

Change-Id: I456521a222e213379f929e4d1113e084f87a3ac4

+8 -4
+8 -4
apps/fileop.c
··· 97 97 { 98 98 int total_shft = (int) (param->total_size >> 15); 99 99 int current_shft = (int) (param->processed_size >> 15); 100 + const char *unit_str = str(LANG_MEBIBYTE); 100 101 splash_progress(current_shft, total_shft, 101 - "%s %s (%d MiB)\n%d MiB", 102 + "%s %s (%d %s)\n%d %s", 102 103 op_str, param->toplevel_name, 103 - total_shft >> 5, current_shft >> 5); 104 + total_shft >> 5, unit_str, 105 + current_shft >> 5, unit_str); 104 106 } 105 107 else if (param->total_size >= 1024) 106 108 { 107 109 int total_kib = (int) (param->total_size >> 10); 108 110 int current_kib = (int) (param->processed_size >> 10); 111 + const char *unit_str = str(LANG_KIBIBYTE); 109 112 splash_progress(current_kib, total_kib, 110 - "%s %s (%d KiB)\n%d KiB", 113 + "%s %s (%d %s)\n%d %s", 111 114 op_str, param->toplevel_name, 112 - total_kib, current_kib); 115 + total_kib, unit_str, 116 + current_kib, unit_str); 113 117 } 114 118 } 115 119 return ACTION_STD_CANCEL == get_action(CONTEXT_STD, TIMEOUT_NOBLOCK);