diff --git a/LANDrop/locales/LANDrop.zh_CN.qm b/LANDrop/locales/LANDrop.zh_CN.qm
index 29244de..6e27557 100644
Binary files a/LANDrop/locales/LANDrop.zh_CN.qm and b/LANDrop/locales/LANDrop.zh_CN.qm differ
diff --git a/LANDrop/locales/LANDrop.zh_CN.ts b/LANDrop/locales/LANDrop.zh_CN.ts
index f3e6029..a6ae447 100644
--- a/LANDrop/locales/LANDrop.zh_CN.ts
+++ b/LANDrop/locales/LANDrop.zh_CN.ts
@@ -221,7 +221,7 @@ Would you like to receive it?
SelectFilesDialog
-
+
Select File(s) to be Sent
请选择想要发送的文件
@@ -241,17 +241,27 @@ Would you like to receive it?
移除
-
+
+ Send
+ 发送
+
+
+
+ Cancel
+ 取消
+
+
+
Unable to open file %1. Skipping.
无法打开文件 %1。已跳过该文件。
-
+
%1 is not a regular file. Skipping.
%1 不是一个普通文件。已跳过该文件。
-
+
No file to be sent.
无文件可发送。
@@ -279,12 +289,22 @@ Would you like to receive it?
端口
-
+
+ Send
+ 发送
+
+
+
+ Cancel
+ 取消
+
+
+
Invalid port. Please enter a number between 1 and 65535.
无效端口。请输入一个 1 到 65535 的数字。
-
+
Connection timed out
连接超时
@@ -317,7 +337,17 @@ Would you like to receive it?
可被发现
-
+
+ OK
+ 确认
+
+
+
+ Cancel
+ 取消
+
+
+
Select Download Path
选择下载路径
diff --git a/LANDrop/selectfilesdialog.cpp b/LANDrop/selectfilesdialog.cpp
index 582a8f4..43e5112 100644
--- a/LANDrop/selectfilesdialog.cpp
+++ b/LANDrop/selectfilesdialog.cpp
@@ -48,6 +48,9 @@ SelectFilesDialog::SelectFilesDialog(QWidget *parent, DiscoveryService &discover
connect(ui->addButton, &QPushButton::clicked, this, &SelectFilesDialog::addButtonClicked);
connect(ui->removeButton, &QPushButton::clicked, this, &SelectFilesDialog::removeButtonClicked);
ui->filesListView->setModel(&filesStringListModel);
+
+ ui->buttonBox->button(QDialogButtonBox::Ok)->setText(tr("Send"));
+ ui->buttonBox->button(QDialogButtonBox::Cancel)->setText(tr("Cancel"));
}
SelectFilesDialog::~SelectFilesDialog()
diff --git a/LANDrop/sendtodialog.cpp b/LANDrop/sendtodialog.cpp
index 6a1d648..dde4c65 100644
--- a/LANDrop/sendtodialog.cpp
+++ b/LANDrop/sendtodialog.cpp
@@ -48,6 +48,9 @@ SendToDialog::SendToDialog(QWidget *parent, const QList> &
connect(ui->hostsListView, &QListView::clicked, this, &SendToDialog::hostsListViewClicked);
connect(ui->hostsListView, &QListView::doubleClicked, ui->buttonBox, &QDialogButtonBox::accepted);
+ ui->buttonBox->button(QDialogButtonBox::Ok)->setText(tr("Send"));
+ ui->buttonBox->button(QDialogButtonBox::Cancel)->setText(tr("Cancel"));
+
connect(&discoveryService, &DiscoveryService::newHost, this, &SendToDialog::newHost);
connect(&discoveryTimer, &QTimer::timeout, &discoveryService, &DiscoveryService::refresh);
discoveryTimer.start(1000);
diff --git a/LANDrop/settingsdialog.cpp b/LANDrop/settingsdialog.cpp
index 24452e5..06fd6d6 100644
--- a/LANDrop/settingsdialog.cpp
+++ b/LANDrop/settingsdialog.cpp
@@ -31,6 +31,7 @@
*/
#include
+#include
#include "settings.h"
#include "settingsdialog.h"
@@ -41,6 +42,9 @@ SettingsDialog::SettingsDialog(QWidget *parent) : QDialog(parent), ui(new Ui::Se
ui->setupUi(this);
setWindowFlag(Qt::WindowStaysOnTopHint);
connect(ui->downloadPathSelectButton, &QToolButton::clicked, this, &SettingsDialog::downloadPathSelectButtonClicked);
+
+ ui->buttonBox->button(QDialogButtonBox::Ok)->setText(tr("OK"));
+ ui->buttonBox->button(QDialogButtonBox::Cancel)->setText(tr("Cancel"));
}
SettingsDialog::~SettingsDialog()