mirror of
https://github.com/wh201906/Proxmark3GUI.git
synced 2026-06-30 15:24:27 +08:00
Add support for multilanguage
This commit is contained in:
+8
-3
@@ -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";
|
||||
|
||||
@@ -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
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user