2
0
forked from Ivasoft/DSView

Language resource file

This commit is contained in:
dreamsourcelabTAI
2023-05-16 19:29:03 +08:00
parent e7464a02d3
commit 04b36c9b2b
4 changed files with 30 additions and 34 deletions

View File

@@ -39,7 +39,7 @@
#include "../sigsession.h"
#include "../ui/langresource.h"
#include "../log.h"
#include <QDebug>
#include "../ui/msgbox.h"
using namespace boost;
using namespace std;
@@ -578,14 +578,9 @@ void DeviceOptions::channel_checkbox_clicked(QCheckBox *sc)
int vld_ch_num = g_variant_get_int16(gvar);
g_variant_unref(gvar);
if (cur_ch_num > vld_ch_num) {
dialogs::DSMessageBox msg(this);
msg.mBox()->setText(L_S(STR_PAGE_MSG, S_ID(IDS_MSG_INFORMATION), "Information"));
msg.mBox()->setInformativeText(L_S(STR_PAGE_MSG, S_ID(IDS_MSG_MAX_CHANNEL), "Current mode only suppport max ")
+ QString::number(vld_ch_num)
+ L_S(STR_PAGE_MSG, S_ID(IDS_MSG_CHANNEL), " channels!"));
msg.mBox()->addButton(L_S(STR_PAGE_MSG, S_ID(IDS_MSG_OK), "Ok"), QMessageBox::AcceptRole);
msg.mBox()->setIcon(QMessageBox::Information);
msg.exec();
QString msg_str(L_S(STR_PAGE_MSG, S_ID(IDS_MSG_MAX_CHANNEL_COUNT_WARNING), "max count of channels!"));
msg_str = msg_str.replace("{0}", QString::number(vld_ch_num) );
MsgBox::Show("", msg_str);
sc->setChecked(false);
}

View File

@@ -576,7 +576,8 @@ namespace pv
if (_device_agent.have_enabled_channel() == false)
{
_callback->show_error("No probes enabled.");
QString err_str(L_S(STR_PAGE_MSG, S_ID(IDS_MSG_NO_ENABLED_CHANNEL), "No channels enabled!"));
_callback->show_error(err_str);
return false;
}