mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
flashtool: add posibilty to get localized and non-localized type
Origin commit data
------------------
Commit: 40b84d1077
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-01-06 (Sat, 06 Jan 2018)
Origin message was:
------------------
- flashtool: add posibilty to get localized and non-localized type
This commit is contained in:
@@ -237,7 +237,7 @@ bool CFlashUpdate::selectHttpImage(void)
|
||||
g_Locale->getText(LOCALE_FLASHUPDATE_CURRENTVERSIONTIME), curInfo.getTime());
|
||||
#endif
|
||||
//NI
|
||||
snprintf(current, 200, "%s %s %s %s", curInfo.getReleaseCycle(), curInfo.getType(), curInfo.getDate(), curInfo.getTime());
|
||||
snprintf(current, 200, "%s %s %s %s", curInfo.getReleaseCycle(), curInfo.getType(true), curInfo.getDate(), curInfo.getTime());
|
||||
|
||||
CMenuWidget SelectionWidget(LOCALE_FLASHUPDATE_SELECTIMAGE, NEUTRINO_ICON_UPDATE, listWidth, MN_WIDGET_ID_IMAGESELECTOR);
|
||||
|
||||
@@ -298,7 +298,7 @@ bool CFlashUpdate::selectHttpImage(void)
|
||||
fileTypes[i] = versionInfo.snapshot;
|
||||
std::string description = versionInfo.getReleaseCycle();
|
||||
description += ' ';
|
||||
description += versionInfo.getType();
|
||||
description += versionInfo.getType(true);
|
||||
description += ' ';
|
||||
description += versionInfo.getDate();
|
||||
description += ' ';
|
||||
@@ -410,7 +410,7 @@ bool CFlashUpdate::checkVersion4Update()
|
||||
msg_body = LOCALE_FLASHUPDATE_MSGBOX;
|
||||
#ifdef SQUASHFS
|
||||
versionInfo = new CFlashVersionInfo(newVersion);//Memory leak: versionInfo
|
||||
sprintf(msg, g_Locale->getText(msg_body), versionInfo->getDate(), versionInfo->getTime(), versionInfo->getReleaseCycle(), versionInfo->getType());
|
||||
sprintf(msg, g_Locale->getText(msg_body), versionInfo->getDate(), versionInfo->getTime(), versionInfo->getReleaseCycle(), versionInfo->getType(true));
|
||||
|
||||
if (fileType <= '2')
|
||||
{
|
||||
|
Reference in New Issue
Block a user