新增藏文翻译;修复藏文结果列表高度计算问题;修改输入框右键翻译方案;

This commit is contained in:
jixiaoxu 2022-07-18 16:34:26 +08:00 committed by iaom
parent a62c77621b
commit ee5d5ae413
12 changed files with 512 additions and 109 deletions

View File

@ -59,7 +59,7 @@ RESOURCES += \
TRANSLATIONS += \ TRANSLATIONS += \
../translations/ukui-search/zh_CN.ts \ ../translations/ukui-search/zh_CN.ts \
../translations/ukui-search/tr.ts \ ../translations/ukui-search/tr.ts \
../translations/ukui-search/bo.ts ../translations/ukui-search/bo_CN.ts
qm_files.path = /usr/share/ukui-search/translations/ qm_files.path = /usr/share/ukui-search/translations/
qm_files.files = $$OUT_PWD/.qm/*.qm qm_files.files = $$OUT_PWD/.qm/*.qm

View File

@ -3,7 +3,6 @@
<file>res/icons/edit-find-symbolic.svg</file> <file>res/icons/edit-find-symbolic.svg</file>
<file>res/icons/desktop.png</file> <file>res/icons/desktop.png</file>
<file>res/icons/close.svg</file> <file>res/icons/close.svg</file>
<file>res/qt-translations/qt_zh_CN.qm</file>
<file>res/icons/net-disconnected.svg</file> <file>res/icons/net-disconnected.svg</file>
<file>res/icons/system-search.symbolic.png</file> <file>res/icons/system-search.symbolic.png</file>
<file>res/icons/ukui-up-symbolic.svg</file> <file>res/icons/ukui-up-symbolic.svg</file>

View File

@ -35,7 +35,7 @@ UkuiSearchGui::UkuiSearchGui(int &argc, char *argv[], const QString &application
QTranslator *qt_translator = new QTranslator(this); QTranslator *qt_translator = new QTranslator(this);
try { try {
if(! qt_translator->load(":/res/qt-translations/qt_zh_CN.qm")) throw - 1; if(! qt_translator->load("/usr/share/qt5/translations/qt_" + QLocale::system().name())) throw - 1;
this->installTranslator(qt_translator); this->installTranslator(qt_translator);
} catch(...) { } catch(...) {
qDebug() << "Load translations file" << QLocale() << "failed!"; qDebug() << "Load translations file" << QLocale() << "failed!";

View File

@ -31,13 +31,24 @@ bool BestListView::isSelected()
int BestListView::showHeight() int BestListView::showHeight()
{ {
int height; int height(0);
int rowheight = this->rowHeight(this->model()->index(0, 0, QModelIndex())); // int rowheight = this->rowHeight(this->model()->index(0, 0, QModelIndex()));
// if (this->isExpanded()) {
// height = m_count * rowheight;
// } else {
// int show_count = m_count > NUM_LIMIT_SHOWN_DEFAULT ? NUM_LIMIT_SHOWN_DEFAULT : m_count;
// height = show_count * rowheight;
// }
if (this->isExpanded()) { if (this->isExpanded()) {
height = m_count * rowheight; for (int i = 0; i<m_count; ++i) {
height += this->rowHeight(this->model()->index(i, 0, QModelIndex()));
}
} else { } else {
int show_count = m_count > NUM_LIMIT_SHOWN_DEFAULT ? NUM_LIMIT_SHOWN_DEFAULT : m_count; int show_count = m_count > NUM_LIMIT_SHOWN_DEFAULT ? NUM_LIMIT_SHOWN_DEFAULT : m_count;
height = show_count * rowheight; for (int i = 0; i<show_count; ++i) {
height += this->rowHeight(this->model()->index(i, 0, QModelIndex()));
}
} }
return height; return height;
} }

View File

@ -190,13 +190,23 @@ bool ResultView::isSelected()
int ResultView::showHeight() int ResultView::showHeight()
{ {
int height; int height(0);
int rowheight = this->rowHeight(this->model()->index(0, 0, QModelIndex())); // int rowheight = this->rowHeight(this->model()->index(0, 0, QModelIndex()));
// if (this->isExpanded()) {
// height = m_count * rowheight;
// } else {
// int show_count = m_count > NUM_LIMIT_SHOWN_DEFAULT ? NUM_LIMIT_SHOWN_DEFAULT : m_count;
// height = show_count * rowheight;
// }
if (this->isExpanded()) { if (this->isExpanded()) {
height = m_count * rowheight; for (int i = 0; i<m_count; ++i) {
height += this->rowHeight(this->model()->index(i, 0, QModelIndex()));
}
} else { } else {
int show_count = m_count > NUM_LIMIT_SHOWN_DEFAULT ? NUM_LIMIT_SHOWN_DEFAULT : m_count; int show_count = m_count > NUM_LIMIT_SHOWN_DEFAULT ? NUM_LIMIT_SHOWN_DEFAULT : m_count;
height = show_count * rowheight; for (int i = 0; i<show_count; ++i) {
height += this->rowHeight(this->model()->index(i, 0, QModelIndex()));
}
} }
return height; return height;
} }

View File

@ -64,7 +64,8 @@ RESOURCES += \
resource1.qrc \ resource1.qrc \
TRANSLATIONS += \ TRANSLATIONS += \
../translations/libukui-search/libukui-search_zh_CN.ts ../translations/libukui-search/libukui-search_zh_CN.ts \
../translations/libukui-search/libukui-search_bo_CN.ts
qm_files.path = /usr/share/ukui-search/translations/ qm_files.path = /usr/share/ukui-search/translations/
qm_files.files = $$OUT_PWD/.qm/*.qm qm_files.files = $$OUT_PWD/.qm/*.qm

View File

@ -0,0 +1,392 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="bo_CN">
<context>
<name>QObject</name>
<message>
<location filename="../../libsearch/searchinterface/searchtasks/file-content-search-task.cpp" line="112"/>
<source>Content index incomplete.</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/searchinterface/searchtasks/file-search-task.cpp" line="96"/>
<source>Warning, Can not find home path.</source>
<translation></translation>
</message>
</context>
<context>
<name>UkuiSearch::AppMatch</name>
<message>
<location filename="../../libsearch/appsearch/app-match.cpp" line="262"/>
<source>Application Description:</source>
<translation></translation>
</message>
</context>
<context>
<name>UkuiSearch::AppSearchPlugin</name>
<message>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="11"/>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="174"/>
<source>Open</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="12"/>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="175"/>
<source>Add Shortcut to Desktop</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="13"/>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="176"/>
<source>Add Shortcut to Panel</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="14"/>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="177"/>
<source>Install</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="30"/>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="35"/>
<source>Applications Search</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="115"/>
<source>Application</source>
<translation></translation>
</message>
</context>
<context>
<name>UkuiSearch::DirSearchPlugin</name>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="224"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="364"/>
<source>Open</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="225"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="365"/>
<source>Open path</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="226"/>
<source>Copy Path</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="240"/>
<source>Dir search.</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="245"/>
<source>Dir Search</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="305"/>
<source>Directory</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="342"/>
<source>Path</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="354"/>
<source>Last time modified</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="366"/>
<source>Copy path</source>
<translation></translation>
</message>
</context>
<context>
<name>UkuiSearch::FileContengSearchPlugin</name>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="407"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="624"/>
<source>Open</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="408"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="625"/>
<source>Open path</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="409"/>
<source>Copy Path</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="423"/>
<source>File content search.</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="428"/>
<source>File content search</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="486"/>
<source>OCR</source>
<translation>OCR</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="491"/>
<source>File</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="602"/>
<source>Path</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="614"/>
<source>Last time modified</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="626"/>
<source>Copy path</source>
<translation></translation>
</message>
</context>
<context>
<name>UkuiSearch::FileContentSearchTask</name>
<message>
<location filename="../../libsearch/searchinterface/searchtasks/file-content-search-task.cpp" line="40"/>
<location filename="../../libsearch/searchinterface/searchtasks/file-content-search-task.cpp" line="65"/>
<source>File Content</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/searchinterface/searchtasks/file-content-search-task.cpp" line="45"/>
<source>File Content Search</source>
<translation></translation>
</message>
</context>
<context>
<name>UkuiSearch::FileSearchPlugin</name>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="14"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="164"/>
<source>Open</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="15"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="165"/>
<source>Open path</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="16"/>
<source>Copy Path</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="30"/>
<source>File search.</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="35"/>
<source>File Search</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="77"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="189"/>
<source>Yes</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="79"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="191"/>
<source>Can not get a default application for opening %1.</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="105"/>
<source>File</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="142"/>
<source>Path</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="154"/>
<source>Last time modified</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="166"/>
<source>Copy path</source>
<translation></translation>
</message>
</context>
<context>
<name>UkuiSearch::MailSearch</name>
<message>
<location filename="../../libsearch/mailsearch/mail-search-plugin.cpp" line="337"/>
<source>From</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/mailsearch/mail-search-plugin.cpp" line="338"/>
<source>Time</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/mailsearch/mail-search-plugin.cpp" line="339"/>
<source>To</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/mailsearch/mail-search-plugin.cpp" line="340"/>
<source>Cc</source>
<translation>Cc</translation>
</message>
</context>
<context>
<name>UkuiSearch::MailSearchPlugin</name>
<message>
<location filename="../../libsearch/mailsearch/mail-search-plugin.cpp" line="28"/>
<source>open</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/mailsearch/mail-search-plugin.cpp" line="37"/>
<location filename="../../libsearch/mailsearch/mail-search-plugin.cpp" line="42"/>
<location filename="../../libsearch/mailsearch/mail-search-plugin.cpp" line="47"/>
<source>Mail Search</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/mailsearch/mail-search-plugin.cpp" line="94"/>
<source>Mail</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/mailsearch/mail-search-plugin.cpp" line="231"/>
<source>Open</source>
<translation></translation>
</message>
</context>
<context>
<name>UkuiSearch::NoteSearch</name>
<message>
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="216"/>
<source>Note Description:</source>
<translation></translation>
</message>
</context>
<context>
<name>UkuiSearch::NoteSearchPlugin</name>
<message>
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="12"/>
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="154"/>
<source>Open</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="26"/>
<source>Note Search.</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="31"/>
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="132"/>
<source>Note Search</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="106"/>
<source>Application</source>
<translation></translation>
</message>
</context>
<context>
<name>UkuiSearch::SearchManager</name>
<message>
<location filename="../../libsearch/index/search-manager.cpp" line="68"/>
<source>Path:</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/search-manager.cpp" line="69"/>
<source>Modified time:</source>
<translation></translation>
</message>
</context>
<context>
<name>UkuiSearch::SearchTaskPluginManager</name>
<message>
<location filename="../../libsearch/pluginmanage/search-task-plugin-manager.cpp" line="64"/>
<location filename="../../libsearch/pluginmanage/search-task-plugin-manager.cpp" line="78"/>
<source>plugin type: %1, is disabled!</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/pluginmanage/search-task-plugin-manager.cpp" line="70"/>
<location filename="../../libsearch/pluginmanage/search-task-plugin-manager.cpp" line="83"/>
<source>plugin type: %1, is not registered!</source>
<translation></translation>
</message>
</context>
<context>
<name>UkuiSearch::SettingsSearchPlugin</name>
<message>
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="17"/>
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="155"/>
<source>Open</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="32"/>
<source>Settings search.</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="37"/>
<source>Settings Search</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="144"/>
<source>Settings</source>
<translation></translation>
</message>
</context>
<context>
<name>UkuiSearch::WebSearchPlugin</name>
<message>
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="11"/>
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="139"/>
<source>Start browser search</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="23"/>
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="28"/>
<source>Web Page</source>
<translation></translation>
</message>
</context>
</TS>

View File

@ -17,52 +17,52 @@
<context> <context>
<name>UkuiSearch::AppMatch</name> <name>UkuiSearch::AppMatch</name>
<message> <message>
<location filename="../../libsearch/appsearch/app-match.cpp" line="262"/>
<source>Application Description:</source> <source>Application Description:</source>
<translation type="vanished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
<name>UkuiSearch::AppSearch</name> <name>UkuiSearch::AppSearch</name>
<message> <message>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="306"/>
<source>Application Description:</source> <source>Application Description:</source>
<translation></translation> <translation type="vanished"></translation>
</message> </message>
</context> </context>
<context> <context>
<name>UkuiSearch::AppSearchPlugin</name> <name>UkuiSearch::AppSearchPlugin</name>
<message> <message>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="11"/> <location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="11"/>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="182"/> <location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="174"/>
<source>Open</source> <source>Open</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="12"/> <location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="12"/>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="183"/> <location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="175"/>
<source>Add Shortcut to Desktop</source> <source>Add Shortcut to Desktop</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="13"/> <location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="13"/>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="184"/> <location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="176"/>
<source>Add Shortcut to Panel</source> <source>Add Shortcut to Panel</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="14"/> <location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="14"/>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="185"/> <location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="177"/>
<source>Install</source> <source>Install</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="38"/> <location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="30"/>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="43"/> <location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="35"/>
<source>Applications Search</source> <source>Applications Search</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="123"/> <location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="115"/>
<source>Application</source> <source>Application</source>
<translation></translation> <translation></translation>
</message> </message>
@ -74,14 +74,12 @@
<context> <context>
<name>UkuiSearch::AppSearchTask</name> <name>UkuiSearch::AppSearchTask</name>
<message> <message>
<location filename="../../libsearch/searchinterface/searchtasks/app-search-task.cpp" line="21"/>
<source>Application</source> <source>Application</source>
<translation></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../../libsearch/searchinterface/searchtasks/app-search-task.cpp" line="26"/>
<source>Application search.</source> <source>Application search.</source>
<translation></translation> <translation type="vanished"></translation>
</message> </message>
</context> </context>
<context> <context>
@ -324,7 +322,7 @@
<context> <context>
<name>UkuiSearch::NoteSearch</name> <name>UkuiSearch::NoteSearch</name>
<message> <message>
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="190"/> <location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="216"/>
<source>Note Description:</source> <source>Note Description:</source>
<translatorcomment>便</translatorcomment> <translatorcomment>便</translatorcomment>
<translation>便</translation> <translation>便</translation>
@ -334,14 +332,14 @@
<name>UkuiSearch::NoteSearchPlugin</name> <name>UkuiSearch::NoteSearchPlugin</name>
<message> <message>
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="12"/> <location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="12"/>
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="128"/> <location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="154"/>
<source>Open</source> <source>Open</source>
<translatorcomment></translatorcomment> <translatorcomment></translatorcomment>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="31"/> <location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="31"/>
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="106"/> <location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="132"/>
<source>Note Search</source> <source>Note Search</source>
<translatorcomment>便</translatorcomment> <translatorcomment>便</translatorcomment>
<translation>便</translation> <translation>便</translation>
@ -353,7 +351,7 @@
<translation>便.</translation> <translation>便.</translation>
</message> </message>
<message> <message>
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="80"/> <location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="106"/>
<source>Application</source> <source>Application</source>
<translatorcomment></translatorcomment> <translatorcomment></translatorcomment>
<translation></translation> <translation></translation>
@ -375,14 +373,14 @@
<context> <context>
<name>UkuiSearch::SearchTaskPluginManager</name> <name>UkuiSearch::SearchTaskPluginManager</name>
<message> <message>
<location filename="../../libsearch/pluginmanage/search-task-plugin-manager.cpp" line="68"/> <location filename="../../libsearch/pluginmanage/search-task-plugin-manager.cpp" line="64"/>
<location filename="../../libsearch/pluginmanage/search-task-plugin-manager.cpp" line="82"/> <location filename="../../libsearch/pluginmanage/search-task-plugin-manager.cpp" line="78"/>
<source>plugin type: %1, is disabled!</source> <source>plugin type: %1, is disabled!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../libsearch/pluginmanage/search-task-plugin-manager.cpp" line="74"/> <location filename="../../libsearch/pluginmanage/search-task-plugin-manager.cpp" line="70"/>
<location filename="../../libsearch/pluginmanage/search-task-plugin-manager.cpp" line="87"/> <location filename="../../libsearch/pluginmanage/search-task-plugin-manager.cpp" line="83"/>
<source>plugin type: %1, is not registered!</source> <source>plugin type: %1, is not registered!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -390,46 +388,38 @@
<context> <context>
<name>UkuiSearch::SettingsSearchPlugin</name> <name>UkuiSearch::SettingsSearchPlugin</name>
<message> <message>
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="15"/> <location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="17"/>
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="128"/> <location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="155"/>
<source>Open</source> <source>Open</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="35"/> <location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="37"/>
<source>Settings Search</source> <source>Settings Search</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="30"/> <location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="32"/>
<source>Settings search.</source> <source>Settings search.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="117"/> <location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="144"/>
<source>Settings</source> <source>Settings</source>
<translation></translation> <translation></translation>
</message> </message>
</context> </context>
<context>
<name>UkuiSearch::UkuiSearchTaskPrivate</name>
<message>
<location filename="../../libsearch/searchinterface/ukui-search-task.cpp" line="91"/>
<source>Current task uuid error or an unregistered plugin is used!</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>UkuiSearch::WebSearchPlugin</name> <name>UkuiSearch::WebSearchPlugin</name>
<message> <message>
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="10"/> <location filename="../../libsearch/websearch/web-search-plugin.cpp" line="11"/>
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="114"/> <location filename="../../libsearch/websearch/web-search-plugin.cpp" line="139"/>
<source>Start browser search</source> <source>Start browser search</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="22"/> <location filename="../../libsearch/websearch/web-search-plugin.cpp" line="23"/>
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="27"/> <location filename="../../libsearch/websearch/web-search-plugin.cpp" line="28"/>
<source>Web Page</source> <source>Web Page</source>
<translation></translation> <translation></translation>
</message> </message>

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS> <!DOCTYPE TS>
<TS version="2.1"> <TS version="2.1" language="zh_CN">
<context> <context>
<name>UkuiSearch::BestListWidget</name> <name>UkuiSearch::BestListWidget</name>
<message> <message>
<location filename="../../frontend/view/best-list-view.cpp" line="312"/> <location filename="../../frontend/view/best-list-view.cpp" line="323"/>
<source>Best Matches</source> <source>Best Matches</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@ -14,32 +14,32 @@
<message> <message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="41"/> <location filename="../../frontend/control/create-index-ask-dialog.cpp" line="41"/>
<source>ukui-search</source> <source>ukui-search</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="70"/> <location filename="../../frontend/control/create-index-ask-dialog.cpp" line="70"/>
<source>Search</source> <source>Search</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="94"/> <location filename="../../frontend/control/create-index-ask-dialog.cpp" line="94"/>
<source>Creating index can help you getting results quickly, whether to create or not?</source> <source>Creating index can help you getting results quickly, whether to create or not?</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="105"/> <location filename="../../frontend/control/create-index-ask-dialog.cpp" line="105"/>
<source>Don&apos;t remind</source> <source>Don&apos;t remind</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="116"/> <location filename="../../frontend/control/create-index-ask-dialog.cpp" line="116"/>
<source>No</source> <source>No</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="118"/> <location filename="../../frontend/control/create-index-ask-dialog.cpp" line="118"/>
<source>Yes</source> <source>Yes</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@ -47,20 +47,20 @@
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="538"/> <location filename="../../frontend/control/settings-widget.cpp" line="538"/>
<source>Delete the folder out of blacklist</source> <source>Delete the folder out of blacklist</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
<name>UkuiSearch::MainWindow</name> <name>UkuiSearch::MainWindow</name>
<message> <message>
<location filename="../../frontend/mainwindow.cpp" line="69"/> <location filename="../../frontend/mainwindow.cpp" line="71"/>
<source>ukui-search</source> <source>ukui-search</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/mainwindow.cpp" line="76"/> <location filename="../../frontend/mainwindow.cpp" line="78"/>
<source>Global Search</source> <source>Global Search</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@ -68,7 +68,7 @@
<message> <message>
<location filename="../../frontend/control/search-line-edit.cpp" line="56"/> <location filename="../../frontend/control/search-line-edit.cpp" line="56"/>
<source>Search</source> <source>Search</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@ -76,160 +76,160 @@
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="35"/> <location filename="../../frontend/control/settings-widget.cpp" line="35"/>
<source>ukui-search-settings</source> <source>ukui-search-settings</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="81"/> <location filename="../../frontend/control/settings-widget.cpp" line="81"/>
<location filename="../../frontend/control/settings-widget.cpp" line="299"/> <location filename="../../frontend/control/settings-widget.cpp" line="299"/>
<location filename="../../frontend/control/settings-widget.cpp" line="503"/> <location filename="../../frontend/control/settings-widget.cpp" line="503"/>
<source>Search</source> <source>Search</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="108"/> <location filename="../../frontend/control/settings-widget.cpp" line="108"/>
<source>&lt;h2&gt;Settings&lt;/h2&gt;</source> <source>&lt;h2&gt;Settings&lt;/h2&gt;</source>
<translation type="unfinished"></translation> <translation>&lt;h2&gt; &lt;/h2&gt;</translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="113"/> <location filename="../../frontend/control/settings-widget.cpp" line="113"/>
<source>&lt;h3&gt;Index State&lt;/h3&gt;</source> <source>&lt;h3&gt;Index State&lt;/h3&gt;</source>
<translation type="unfinished"></translation> <translation>&lt;h3&gt;&lt;/h3&gt;</translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="115"/> <location filename="../../frontend/control/settings-widget.cpp" line="115"/>
<location filename="../../frontend/control/settings-widget.cpp" line="117"/> <location filename="../../frontend/control/settings-widget.cpp" line="117"/>
<source>...</source> <source>...</source>
<translation type="unfinished"></translation> <translation>...</translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="125"/> <location filename="../../frontend/control/settings-widget.cpp" line="125"/>
<source>&lt;h3&gt;File Index Settings&lt;/h3&gt;</source> <source>&lt;h3&gt;File Index Settings&lt;/h3&gt;</source>
<translation type="unfinished"></translation> <translation>&lt;h3&gt; &lt;/h3&gt;</translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="127"/> <location filename="../../frontend/control/settings-widget.cpp" line="127"/>
<source>Following folders will not be searched. You can set it by adding and removing folders.</source> <source>Following folders will not be searched. You can set it by adding and removing folders.</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="136"/> <location filename="../../frontend/control/settings-widget.cpp" line="136"/>
<source>Add ignored folders</source> <source>Add ignored folders</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="157"/> <location filename="../../frontend/control/settings-widget.cpp" line="157"/>
<source>&lt;h3&gt;Search Engine Settings&lt;/h3&gt;</source> <source>&lt;h3&gt;Search Engine Settings&lt;/h3&gt;</source>
<translation type="unfinished"></translation> <translation>&lt;h3&gt;&lt;/h3&gt;</translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="159"/> <location filename="../../frontend/control/settings-widget.cpp" line="159"/>
<source>Please select search engine you preferred.</source> <source>Please select search engine you preferred.</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="172"/> <location filename="../../frontend/control/settings-widget.cpp" line="172"/>
<source>baidu</source> <source>baidu</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="174"/> <location filename="../../frontend/control/settings-widget.cpp" line="174"/>
<source>sougou</source> <source>sougou</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="176"/> <location filename="../../frontend/control/settings-widget.cpp" line="176"/>
<source>360</source> <source>360</source>
<translation type="unfinished"></translation> <translation>360</translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="299"/> <location filename="../../frontend/control/settings-widget.cpp" line="299"/>
<source>Whether to delete this directory?</source> <source>Whether to delete this directory?</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="300"/> <location filename="../../frontend/control/settings-widget.cpp" line="300"/>
<source>Yes</source> <source>Yes</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="301"/> <location filename="../../frontend/control/settings-widget.cpp" line="301"/>
<source>No</source> <source>No</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="359"/> <location filename="../../frontend/control/settings-widget.cpp" line="359"/>
<source>Creating ...</source> <source>Creating ...</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="362"/> <location filename="../../frontend/control/settings-widget.cpp" line="362"/>
<source>Done</source> <source>Done</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="370"/> <location filename="../../frontend/control/settings-widget.cpp" line="370"/>
<source>Index Entry: %1</source> <source>Index Entry: %1</source>
<translation type="unfinished"></translation> <translation>:</translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="416"/> <location filename="../../frontend/control/settings-widget.cpp" line="416"/>
<source>Directories</source> <source>Directories</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="417"/> <location filename="../../frontend/control/settings-widget.cpp" line="417"/>
<source>select blocked folder</source> <source>select blocked folder</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="418"/> <location filename="../../frontend/control/settings-widget.cpp" line="418"/>
<source>Select</source> <source>Select</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="419"/> <location filename="../../frontend/control/settings-widget.cpp" line="419"/>
<source>Position: </source> <source>Position: </source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="420"/> <location filename="../../frontend/control/settings-widget.cpp" line="420"/>
<source>FileName: </source> <source>FileName: </source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="421"/> <location filename="../../frontend/control/settings-widget.cpp" line="421"/>
<source>FileType: </source> <source>FileType: </source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="422"/> <location filename="../../frontend/control/settings-widget.cpp" line="422"/>
<source>Cancel</source> <source>Cancel</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="487"/> <location filename="../../frontend/control/settings-widget.cpp" line="487"/>
<source>Choosen path is Empty!</source> <source>Choosen path is Empty!</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="491"/> <location filename="../../frontend/control/settings-widget.cpp" line="491"/>
<source>Choosen path is not in &quot;home&quot;!</source> <source>Choosen path is not in &quot;home&quot;!</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="495"/> <location filename="../../frontend/control/settings-widget.cpp" line="495"/>
<source>Its&apos; parent folder has been blocked!</source> <source>Its&apos; parent folder has been blocked!</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="499"/> <location filename="../../frontend/control/settings-widget.cpp" line="499"/>
<source>Set blocked folder failed!</source> <source>Set blocked folder failed!</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="504"/> <location filename="../../frontend/control/settings-widget.cpp" line="504"/>
<source>OK</source> <source>OK</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@ -237,20 +237,20 @@
<message> <message>
<location filename="../../frontend/ukui-search-gui.cpp" line="88"/> <location filename="../../frontend/ukui-search-gui.cpp" line="88"/>
<source>Quit ukui-search application</source> <source>Quit ukui-search application</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/ukui-search-gui.cpp" line="91"/> <location filename="../../frontend/ukui-search-gui.cpp" line="91"/>
<source>Show main window</source> <source>Show main window</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
<name>UkuiSearch::WebSearchWidget</name> <name>UkuiSearch::WebSearchWidget</name>
<message> <message>
<location filename="../../frontend/view/web-search-view.cpp" line="152"/> <location filename="../../frontend/view/web-search-view.cpp" line="177"/>
<source>Web Page</source> <source>Web Page</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
</TS> </TS>

View File

@ -246,7 +246,7 @@
<context> <context>
<name>UkuiSearch::BestListWidget</name> <name>UkuiSearch::BestListWidget</name>
<message> <message>
<location filename="../../frontend/view/best-list-view.cpp" line="312"/> <location filename="../../frontend/view/best-list-view.cpp" line="323"/>
<source>Best Matches</source> <source>Best Matches</source>
<translation type="unfinished">En İyi Eşleşen</translation> <translation type="unfinished">En İyi Eşleşen</translation>
</message> </message>
@ -353,12 +353,12 @@
<context> <context>
<name>UkuiSearch::MainWindow</name> <name>UkuiSearch::MainWindow</name>
<message> <message>
<location filename="../../frontend/mainwindow.cpp" line="69"/> <location filename="../../frontend/mainwindow.cpp" line="71"/>
<source>ukui-search</source> <source>ukui-search</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/mainwindow.cpp" line="76"/> <location filename="../../frontend/mainwindow.cpp" line="78"/>
<source>Global Search</source> <source>Global Search</source>
<translation type="unfinished">Genel Arama</translation> <translation type="unfinished">Genel Arama</translation>
</message> </message>
@ -628,7 +628,7 @@
<context> <context>
<name>UkuiSearch::WebSearchWidget</name> <name>UkuiSearch::WebSearchWidget</name>
<message> <message>
<location filename="../../frontend/view/web-search-view.cpp" line="152"/> <location filename="../../frontend/view/web-search-view.cpp" line="177"/>
<source>Web Page</source> <source>Web Page</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@ -4,7 +4,7 @@
<context> <context>
<name>UkuiSearch::BestListWidget</name> <name>UkuiSearch::BestListWidget</name>
<message> <message>
<location filename="../../frontend/view/best-list-view.cpp" line="312"/> <location filename="../../frontend/view/best-list-view.cpp" line="323"/>
<source>Best Matches</source> <source>Best Matches</source>
<translation></translation> <translation></translation>
</message> </message>
@ -115,12 +115,12 @@
<context> <context>
<name>UkuiSearch::MainWindow</name> <name>UkuiSearch::MainWindow</name>
<message> <message>
<location filename="../../frontend/mainwindow.cpp" line="69"/> <location filename="../../frontend/mainwindow.cpp" line="71"/>
<source>ukui-search</source> <source>ukui-search</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../frontend/mainwindow.cpp" line="76"/> <location filename="../../frontend/mainwindow.cpp" line="78"/>
<source>Global Search</source> <source>Global Search</source>
<translation></translation> <translation></translation>
</message> </message>
@ -402,7 +402,7 @@
<context> <context>
<name>UkuiSearch::WebSearchWidget</name> <name>UkuiSearch::WebSearchWidget</name>
<message> <message>
<location filename="../../frontend/view/web-search-view.cpp" line="152"/> <location filename="../../frontend/view/web-search-view.cpp" line="177"/>
<source>Web Page</source> <source>Web Page</source>
<translation></translation> <translation></translation>
</message> </message>