Add support for multilanguage

This commit is contained in:
wh201906
2020-04-25 18:15:00 +08:00
parent d793c41aa5
commit 767a651735
8 changed files with 409 additions and 235 deletions
+8 -3
View File
@@ -18,8 +18,6 @@ MainWindow::MainWindow(QWidget *parent)
mifare = new Mifare(ui, util, this);
uiInit();
signalInit();
}
MainWindow::~MainWindow()
@@ -32,6 +30,13 @@ MainWindow::~MainWindow()
delete pm3Thread;
}
void MainWindow::initUI()
{
ui->retranslateUi(this);
uiInit();
signalInit();
}
// ******************** basic functions ********************
void MainWindow::on_PM3_refreshPortButton_clicked()
@@ -162,7 +167,7 @@ void MainWindow::MF_onTypeChanged(int id, bool st)
qDebug() << id << typeBtnGroup->checkedId();
if(!st)
{
int result = QMessageBox::question(this, tr("info"), tr("When Changeing card type, the data and keys in this app will be cleard.\nContinue?"), QMessageBox::Yes | QMessageBox::No);
int result = QMessageBox::question(this, tr("Info"), tr("When Changeing card type, the data and keys in this app will be cleard.\nContinue?"), QMessageBox::Yes | QMessageBox::No);
if(result == QMessageBox::Yes)
{
qDebug() << "Yes";
+1
View File
@@ -30,6 +30,7 @@ public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
void initUI();
public slots:
void refreshOutput(const QString &output);
void refreshCMD(const QString &cmd);
+3 -3
View File
@@ -42,7 +42,7 @@
<item>
<widget class="QLineEdit" name="PM3_pathEdit">
<property name="text">
<string>E:\Documents\source\qt\pm3\win64\proxmark3</string>
<string notr="true">E:\Documents\source\qt\pm3\win64\proxmark3</string>
</property>
</widget>
</item>
@@ -394,7 +394,7 @@
<widget class="QPushButton" name="MF_Attack_nestedButton">
<property name="minimumSize">
<size>
<width>40</width>
<width>0</width>
<height>0</height>
</size>
</property>
@@ -485,7 +485,7 @@
</font>
</property>
<property name="text">
<string>FFFFFFFFFFFF</string>
<string notr="true">FFFFFFFFFFFF</string>
</property>
</widget>
</item>
+3 -3
View File
@@ -17,7 +17,7 @@
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Known Key:</string>
<string>Known Block:</string>
</property>
</widget>
</item>
@@ -83,7 +83,7 @@
</font>
</property>
<property name="text">
<string>FFFFFFFFFFFF</string>
<string notr="true">FFFFFFFFFFFF</string>
</property>
</widget>
</item>
@@ -92,7 +92,7 @@
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Target Key: </string>
<string>Target Block: </string>
</property>
</widget>
</item>