From 3925c206668df079f1177e659878ce033219a6c8 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 18 Sep 2021 11:56:06 +0200 Subject: [PATCH] streaminfo1: fix and supplement to bf5bb70ae2bc1ab9d3ad1def3230f0a8b9cdaf85 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/5880af3d970127c641ad6d15db08b776ebc9f155 Author: vanhofen Date: 2021-09-18 (Sat, 18 Sep 2021) Origin message was: ------------------ - streaminfo1: fix and supplement to bf5bb70ae2bc1ab9d3ad1def3230f0a8b9cdaf85 ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/streaminfo1.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/streaminfo1.cpp b/src/gui/streaminfo1.cpp index e674e7a05..dda955c26 100644 --- a/src/gui/streaminfo1.cpp +++ b/src/gui/streaminfo1.cpp @@ -313,8 +313,10 @@ void CStreamInfo2::paint_signal_fe_box(int _x, int _y, int w, int h) tname += ": "; if (mp) { - if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio) - tname += "Web-Channel"; // TODO split into WebTV/WebRadio + if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv) + tname += g_Locale->getText(LOCALE_WEBTV_HEAD); + else if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio) + tname += g_Locale->getText(LOCALE_WEBRADIO_HEAD); else tname += g_Locale->getText(LOCALE_MAINMENU_MOVIEPLAYER); } @@ -781,7 +783,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos) g_Font[font_info]->RenderString(xpos, ypos, box_width, buf, COL_MENUCONTENT_TEXT); - if (IS_WEBCHAN(current_channel_id)) + if (is_webchan) { if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv) snprintf(buf, sizeof(buf), "%s", g_Locale->getText(LOCALE_WEBTV_HEAD));