summaryrefslogtreecommitdiff
path: root/src/ui/mediaui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/mediaui.c')
-rw-r--r--src/ui/mediaui.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ui/mediaui.c b/src/ui/mediaui.c
index 2fad0cec..24b29cb0 100644
--- a/src/ui/mediaui.c
+++ b/src/ui/mediaui.c
@@ -27,6 +27,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
27#include "audio/player.h" 27#include "audio/player.h"
28#include "paint.h" 28#include "paint.h"
29#include "util.h" 29#include "util.h"
30#include "lang.h"
30 31
31#include <the_Foundation/path.h> 32#include <the_Foundation/path.h>
32 33
@@ -258,16 +259,17 @@ void draw_DownloadUI(const iDownloadUI *d, iPaint *p) {
258 draw_Text(uiLabel_FontId, 259 draw_Text(uiLabel_FontId,
259 init_I2(x, y2), 260 init_I2(x, y2),
260 isFinished ? uiTextAction_ColorId : uiTextDim_ColorId, 261 isFinished ? uiTextAction_ColorId : uiTextDim_ColorId,
261 isFinished ? "Download completed." 262 cstr_Lang(isFinished ? "media.download.complete" : "media.download.warnclose"));
262 : "Download will be cancelled if this tab is closed.");
263 const int x2 = right_Rect(rect); 263 const int x2 = right_Rect(rect);
264 drawSevenSegmentBytes_(init_I2(x2, y1), uiTextDim_ColorId, info.numBytes); 264 drawSevenSegmentBytes_(init_I2(x2, y1), uiTextDim_ColorId, info.numBytes);
265 const iInt2 pos = init_I2(x2, y2); 265 const iInt2 pos = init_I2(x2, y2);
266 if (bytesPerSecond > 0) { 266 if (bytesPerSecond > 0) {
267 drawAlign_Text(uiLabel_FontId, pos, uiTextDim_ColorId, right_Alignment, "%.3f MB/s", 267 drawAlign_Text(uiLabel_FontId, pos, uiTextDim_ColorId, right_Alignment,
268 translateCStr_Lang("%.3f ${mb.per.sec}"),
268 bytesPerSecond / 1.0e6); 269 bytesPerSecond / 1.0e6);
269 } 270 }
270 else { 271 else {
271 drawAlign_Text(uiLabel_FontId, pos, uiTextDim_ColorId, right_Alignment, "\u2014 MB/s"); 272 drawAlign_Text(uiLabel_FontId, pos, uiTextDim_ColorId, right_Alignment,
273 translateCStr_Lang("\u2014 ${mb.per.sec}"));
272 } 274 }
273} 275}