mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
CFlashUpdate: use locales for install and error messages
This commit is contained in:
@@ -445,12 +445,15 @@ printf("[update] mode is %d\n", softupdate_mode);
|
|||||||
if (file_selected->getType() == CFile::FILE_PKG_PACKAGE){
|
if (file_selected->getType() == CFile::FILE_PKG_PACKAGE){
|
||||||
COPKGManager opkg;
|
COPKGManager opkg;
|
||||||
if (opkg.hasOpkgSupport()){
|
if (opkg.hasOpkgSupport()){
|
||||||
int msgres = ShowMsg(LOCALE_MESSAGEBOX_INFO, "Start installation?", CMessageBox::mbrYes, CMessageBox::mbYes | CMessageBox::mbNo, NEUTRINO_ICON_UPDATE, 700); // UTF-8
|
int msgres = ShowMsg(LOCALE_MESSAGEBOX_INFO, LOCALE_OPKG_WARNING_3RDPARTY_PACKAGES, CMessageBox::mbrNo, CMessageBox::mbYes | CMessageBox::mbNo, NEUTRINO_ICON_UPDATE, 700); // UTF-8
|
||||||
if (msgres == CMessageBox::mbrYes){
|
if (msgres == CMessageBox::mbrYes){
|
||||||
if (!opkg.installPackage(UpdatesBrowser.getSelectedFile()->Name))
|
if (!opkg.installPackage(UpdatesBrowser.getSelectedFile()->Name))
|
||||||
DisplayErrorMessage("Installation failed!");
|
DisplayErrorMessage(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
DisplayInfoMessage(g_Locale->getText(LOCALE_MESSAGEBOX_FEATURE_NOT_SUPPORTED));
|
||||||
|
//!always leave here!
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
//set internal filetype
|
//set internal filetype
|
||||||
|
Reference in New Issue
Block a user