diff --git a/src/settings-widget.cpp b/src/settings-widget.cpp
index e8f63cb..69624a3 100644
--- a/src/settings-widget.cpp
+++ b/src/settings-widget.cpp
@@ -264,9 +264,11 @@ void SettingsWidget::refreshIndexState()
* @param path 文件夹路径
*/
void SettingsWidget::onBtnDelClicked(const QString& path) {
- QMessageBox message(QMessageBox::Question, tr("Search"), tr("Whether to delete this directory?"), QMessageBox::No | QMessageBox::Yes, this);
+ QMessageBox message(QMessageBox::Question, tr("Search"), tr("Whether to delete this directory?"));
+ QPushButton * buttonYes = message.addButton(tr("Yes"), QMessageBox::YesRole);
+ QPushButton * buttonNo = message.addButton(tr("No"), QMessageBox::NoRole);
message.exec();
- if (message.clickedButton() != message.button(QMessageBox::Yes)) {
+ if (message.clickedButton() != buttonYes) {
return;
}
diff --git a/translations/ukui-search/bo.ts b/translations/ukui-search/bo.ts
index f1a08ef..0fc759c 100644
--- a/translations/ukui-search/bo.ts
+++ b/translations/ukui-search/bo.ts
@@ -152,7 +152,7 @@
-
+
Search
@@ -193,12 +193,12 @@
-
+
Cancel
-
+
Creating ...
@@ -233,62 +233,72 @@
-
+
+ Yes
+
+
+
+
+ No
+
+
+
+
Done
-
+
Index Entry: %1
-
+
Directories
-
+
select blocked folder
-
+
Select
-
+
Position:
-
+
FileName:
-
+
FileType:
-
+
Choosen path is Empty!
-
+
Choosen path is not in "home"!
-
+
Its' parent folder has been blocked!
-
+
Set blocked folder failed!
diff --git a/translations/ukui-search/tr.ts b/translations/ukui-search/tr.ts
index f1a08ef..0fc759c 100644
--- a/translations/ukui-search/tr.ts
+++ b/translations/ukui-search/tr.ts
@@ -152,7 +152,7 @@
-
+
Search
@@ -193,12 +193,12 @@
-
+
Cancel
-
+
Creating ...
@@ -233,62 +233,72 @@
-
+
+ Yes
+
+
+
+
+ No
+
+
+
+
Done
-
+
Index Entry: %1
-
+
Directories
-
+
select blocked folder
-
+
Select
-
+
Position:
-
+
FileName:
-
+
FileType:
-
+
Choosen path is Empty!
-
+
Choosen path is not in "home"!
-
+
Its' parent folder has been blocked!
-
+
Set blocked folder failed!
diff --git a/translations/ukui-search/zh_CN.ts b/translations/ukui-search/zh_CN.ts
index 38100d3..b8f85eb 100644
--- a/translations/ukui-search/zh_CN.ts
+++ b/translations/ukui-search/zh_CN.ts
@@ -152,7 +152,7 @@
-
+
Search
搜索
@@ -218,32 +218,42 @@
是否要删除此目录
-
+
+ Yes
+ 是(Y)
+
+
+
+ No
+ 否(N)
+
+
+
Cancel
取消
-
+
Choosen path is Empty!
选择的路径不存在!
-
+
Choosen path is not in "home"!
请选择家目录下的文件夹!
-
+
Its' parent folder has been blocked!
父文件夹已被屏蔽!
-
+
Set blocked folder failed!
-
+
Creating ...
正在索引
@@ -253,42 +263,42 @@
搜索
-
+
Done
索引完成
-
+
Index Entry: %1
索引项: %1
-
+
Directories
文件夹
-
+
select blocked folder
选择屏蔽文件夹
-
+
Select
选择
-
+
Position:
位置:
-
+
FileName:
名称:
-
+
FileType:
类型: