diff --git a/frontend/ukui-search-gui.cpp b/frontend/ukui-search-gui.cpp
index a1ef181..8cd6410 100644
--- a/frontend/ukui-search-gui.cpp
+++ b/frontend/ukui-search-gui.cpp
@@ -25,26 +25,26 @@ UkuiSearchGui::UkuiSearchGui(int &argc, char *argv[], const QString &application
//load translations.
- QTranslator translator;
+ QTranslator *translator = new QTranslator(this);
try {
- if(! translator.load("/usr/share/ukui-search/translations/" + QLocale::system().name())) throw - 1;
- this->installTranslator(&translator);
+ if(! translator->load("/usr/share/ukui-search/translations/" + QLocale::system().name())) throw - 1;
+ this->installTranslator(translator);
} catch(...) {
qDebug() << "Load translations file" << QLocale() << "failed!";
}
- QTranslator qt_translator;
+ QTranslator *qt_translator = new QTranslator(this);
try {
- if(! qt_translator.load(":/res/qt-translations/qt_zh_CN.qm")) throw - 1;
- this->installTranslator(&qt_translator);
+ if(! qt_translator->load(":/res/qt-translations/qt_zh_CN.qm")) throw - 1;
+ this->installTranslator(qt_translator);
} catch(...) {
qDebug() << "Load translations file" << QLocale() << "failed!";
}
- QTranslator lib_translator;
+ QTranslator *lib_translator = new QTranslator(this);
try {
- if(! lib_translator.load("/usr/share/ukui-search/translations/libukui-search_" + QLocale::system().name())) throw - 1;
- this->installTranslator(&lib_translator);
+ if(! lib_translator->load("/usr/share/ukui-search/translations/libukui-search_" + QLocale::system().name())) throw - 1;
+ this->installTranslator(lib_translator);
} catch(...) {
qDebug() << "Load translations file" << QLocale() << "failed!";
}
diff --git a/libsearch/index/file-search-plugin.cpp b/libsearch/index/file-search-plugin.cpp
index 7ab0784..945ec17 100644
--- a/libsearch/index/file-search-plugin.cpp
+++ b/libsearch/index/file-search-plugin.cpp
@@ -302,7 +302,7 @@ QWidget *DirSearchPlugin::detailPage(const ResultInfo &ri)
} else {
m_nameLabel->setToolTip("");
}
- m_pluginLabel->setText(tr("directory"));
+ m_pluginLabel->setText(tr("Directory"));
m_pathLabel2->setText(m_pathLabel2->fontMetrics().elidedText(m_currentActionKey, Qt::ElideRight, m_pathLabel2->width()));
m_pathLabel2->setToolTip(m_currentActionKey);
diff --git a/search-ukcc-plugin/translations/zh_CN.ts b/search-ukcc-plugin/translations/zh_CN.ts
index be2c47c..0d2e28d 100644
--- a/search-ukcc-plugin/translations/zh_CN.ts
+++ b/search-ukcc-plugin/translations/zh_CN.ts
@@ -5,123 +5,123 @@
Search
-
+
搜索
-
+
创建索引
/Search/Create index
-
+
开启之后可以快速获取搜索结果
-
+
默认互联网搜索引擎
/Search/Default web searching engine
-
+
百度
-
+
搜狗
-
+
360
-
+
排除的文件夹
/Search/Block Folders
-
+
搜索将不查看以下文件夹,通过添加和删除可以设置排除的文件夹位置
-
+
添加
-
+
删除
-
+
文件夹
-
+
选择排除的文件夹
-
+
选择
-
+
位置
-
+
文件名
-
+
类型
-
+
取消
-
-
-
-
+
+
+
+
警告
-
+
添加失败,选择的路径为空!
-
+
添加失败,添加的路径不在家目录下!
-
+
添加失败,父目录已被添加!
-
+
添加失败,这个文件夹已经被添加过了!
diff --git a/translations/libukui-search/libukui-search_zh_CN.ts b/translations/libukui-search/libukui-search_zh_CN.ts
index 9652531..e22ad30 100644
--- a/translations/libukui-search/libukui-search_zh_CN.ts
+++ b/translations/libukui-search/libukui-search_zh_CN.ts
@@ -82,15 +82,19 @@
目录搜索
+
+
+
+ 目录
+
目录搜索。
-
- 目录
+ 目录
@@ -313,12 +317,12 @@
UkuiSearch::SearchManager
-
+
路径:
-
+
修改时间:
diff --git a/translations/ukui-search/bo.ts b/translations/ukui-search/bo.ts
index 7be2c22..7714130 100644
--- a/translations/ukui-search/bo.ts
+++ b/translations/ukui-search/bo.ts
@@ -58,7 +58,7 @@
-
+
diff --git a/translations/ukui-search/tr.ts b/translations/ukui-search/tr.ts
index aae28b9..795a520 100644
--- a/translations/ukui-search/tr.ts
+++ b/translations/ukui-search/tr.ts
@@ -358,7 +358,7 @@
-
+
Genel Arama
diff --git a/translations/ukui-search/zh_CN.ts b/translations/ukui-search/zh_CN.ts
index 6181478..b6d558d 100644
--- a/translations/ukui-search/zh_CN.ts
+++ b/translations/ukui-search/zh_CN.ts
@@ -120,7 +120,7 @@
搜索
-
+
搜索