forked from openkylin/ukui-search
解决合并代码后的编译问题,更新翻译文件。
This commit is contained in:
parent
577d4f6050
commit
565f490035
|
@ -171,7 +171,7 @@ void MainWindow::initConnections()
|
|||
connect(m_askDialog, &CreateIndexAskDialog::btnClicked, this, [ = ](const bool &is_create_index, const bool &is_ask_again) {
|
||||
setSearchMethodConfig(is_create_index, is_ask_again);
|
||||
});
|
||||
connect(m_settingsBtn, &QPushButton::clicked, this, &MainWindow::settingsBtnClickedSlot);
|
||||
// connect(m_settingsBtn, &QPushButton::clicked, this, &MainWindow::settingsBtnClickedSlot);
|
||||
//主题改变时,更新自定义标题栏的图标
|
||||
// connect(qApp, &QApplication::paletteChanged, this, [ = ]() {
|
||||
// m_iconLabel->setPixmap(QIcon::fromTheme("kylin-search").pixmap(QSize(WINDOW_ICON_SIZE, WINDOW_ICON_SIZE)));
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include "search-plugin-manager.h"
|
||||
#include "document.h"
|
||||
|
||||
#include "file-utils.h"
|
||||
using namespace UkuiSearch;
|
||||
UkuiSearchGui::UkuiSearchGui(int &argc, char *argv[], const QString &applicationName): QtSingleApplication (applicationName, argc, argv)
|
||||
{
|
||||
|
@ -54,10 +53,6 @@ UkuiSearchGui::UkuiSearchGui(int &argc, char *argv[], const QString &application
|
|||
SearchPluginManager::getInstance();
|
||||
PluginManager::getInstance();
|
||||
|
||||
// load chinese character and pinyin file to a Map
|
||||
FileUtils::loadHanziTable("://index/pinyinWithoutTone.txt");
|
||||
qDebug() << "Finish loading plugins and resources";
|
||||
|
||||
m_mainWindow = new UkuiSearch::MainWindow();
|
||||
m_dbusService = new UkuiSearch::UkuiSearchDbusServices(m_mainWindow);
|
||||
qApp->setWindowIcon(QIcon::fromTheme("kylin-search"));
|
||||
|
|
|
@ -7,7 +7,7 @@ TEMPLATE = lib
|
|||
DEFINES += LIBSEARCH_LIBRARY
|
||||
CONFIG += create_pc create_prl no_install_prl
|
||||
|
||||
PKGCONFIG += gio-2.0 glib-2.0 gio-unix-2.0 gsettings-qt poppler-qt5 quazip
|
||||
PKGCONFIG += gio-2.0 glib-2.0 gio-unix-2.0 gsettings-qt poppler-qt5
|
||||
|
||||
CONFIG += c++11 link_pkgconfig no_keywords lrelease
|
||||
QMAKE_CXXFLAGS += -Werror=return-type -Werror=return-local-addr -Werror=uninitialized
|
||||
|
@ -41,7 +41,7 @@ include(dirwatcher/dirwatcher.pri)
|
|||
include(mailsearch/mailsearch.pri)
|
||||
|
||||
LIBS += -L$$OUT_PWD/../libchinese-segmentation/ -lchinese-segmentation
|
||||
LIBS += -lxapian -luchardet -lQt5Xdg -ltesseract #-L/usr/local/lib/libjemalloc -ljemalloc
|
||||
LIBS += -lxapian -luchardet -lQt5Xdg -lquazip5 -ltesseract #-L/usr/local/lib/libjemalloc -ljemalloc
|
||||
|
||||
SOURCES += \
|
||||
file-utils.cpp \
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
<extra-contents_path>/Search/Block Folders</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../search.cpp" line="191"/>
|
||||
<location filename="../search.cpp" line="193"/>
|
||||
<source>Following folders will not be searched. You can set it by adding and removing folders.</source>
|
||||
<translation>搜索将不查看以下文件夹,通过添加和删除可以设置排除的文件夹位置</translation>
|
||||
</message>
|
||||
|
|
|
@ -20,25 +20,25 @@
|
|||
<name>UkuiSearch::AppSearchPlugin</name>
|
||||
<message>
|
||||
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="11"/>
|
||||
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="171"/>
|
||||
<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="172"/>
|
||||
<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="173"/>
|
||||
<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="174"/>
|
||||
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="177"/>
|
||||
<source>Install</source>
|
||||
<translation>安装</translation>
|
||||
</message>
|
||||
|
@ -49,7 +49,7 @@
|
|||
<translation>应用搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="106"/>
|
||||
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="115"/>
|
||||
<source>Application</source>
|
||||
<translation>应用</translation>
|
||||
</message>
|
||||
|
@ -61,49 +61,49 @@
|
|||
<context>
|
||||
<name>UkuiSearch::DirSearchPlugin</name>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="218"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="355"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="221"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="361"/>
|
||||
<source>Open</source>
|
||||
<translation>打开</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="219"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="356"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="222"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="362"/>
|
||||
<source>Open path</source>
|
||||
<translation>打开文件所在路径</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="220"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="223"/>
|
||||
<source>Copy Path</source>
|
||||
<translation>复制文件路径</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="239"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="242"/>
|
||||
<source>Dir Search</source>
|
||||
<translation>目录搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="234"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="237"/>
|
||||
<source>Dir search.</source>
|
||||
<translation>目录搜索。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="290"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="302"/>
|
||||
<source>directory</source>
|
||||
<translation>目录</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="330"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="339"/>
|
||||
<source>Path</source>
|
||||
<translation>路径</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="342"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="351"/>
|
||||
<source>Last time modified</source>
|
||||
<translation>上次修改时间</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="357"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="363"/>
|
||||
<source>Copy path</source>
|
||||
<translation>复制路径</translation>
|
||||
</message>
|
||||
|
@ -111,19 +111,19 @@
|
|||
<context>
|
||||
<name>UkuiSearch::FileContengSearchPlugin</name>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="398"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="596"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="404"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="605"/>
|
||||
<source>Open</source>
|
||||
<translation>打开</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="399"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="597"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="405"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="606"/>
|
||||
<source>Open path</source>
|
||||
<translation>打开文件所在路径</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="400"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="406"/>
|
||||
<source>Copy Path</source>
|
||||
<translation>复制文件路径</translation>
|
||||
</message>
|
||||
|
@ -132,32 +132,32 @@
|
|||
<translation type="vanished">文本内容搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="414"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="420"/>
|
||||
<source>File content search.</source>
|
||||
<translation>文本内容搜索。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="419"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="425"/>
|
||||
<source>File content search</source>
|
||||
<translation>文本内容搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="464"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="477"/>
|
||||
<source>File</source>
|
||||
<translation>文件</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="571"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="583"/>
|
||||
<source>Path</source>
|
||||
<translation>路径</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="583"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="595"/>
|
||||
<source>Last time modified</source>
|
||||
<translation>上次修改时间</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="598"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="607"/>
|
||||
<source>Copy path</source>
|
||||
<translation>复制路径</translation>
|
||||
</message>
|
||||
|
@ -166,13 +166,13 @@
|
|||
<name>UkuiSearch::FileSearchPlugin</name>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="11"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="158"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="161"/>
|
||||
<source>Open</source>
|
||||
<translation>打开</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="12"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="159"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="162"/>
|
||||
<source>Open path</source>
|
||||
<translation>打开文件所在路径</translation>
|
||||
</message>
|
||||
|
@ -192,34 +192,34 @@
|
|||
<translation>文件搜索。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="67"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="183"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="74"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="186"/>
|
||||
<source>Yes</source>
|
||||
<translation>确定</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="69"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="185"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="76"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="188"/>
|
||||
<source>Can not get a default application for opening %1.</source>
|
||||
<translation>没有找到默认打开%1的应用。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="93"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="102"/>
|
||||
<source>File</source>
|
||||
<translation>文件</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="133"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="139"/>
|
||||
<source>Path</source>
|
||||
<translation>路径</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="145"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="151"/>
|
||||
<source>Last time modified</source>
|
||||
<translation>上次修改时间</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="160"/>
|
||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="163"/>
|
||||
<source>Copy path</source>
|
||||
<translation>复制路径</translation>
|
||||
</message>
|
||||
|
@ -227,22 +227,22 @@
|
|||
<context>
|
||||
<name>UkuiSearch::MailSearch</name>
|
||||
<message>
|
||||
<location filename="../../libsearch/mailsearch/mail-search-plugin.cpp" line="335"/>
|
||||
<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="336"/>
|
||||
<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="337"/>
|
||||
<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="338"/>
|
||||
<location filename="../../libsearch/mailsearch/mail-search-plugin.cpp" line="340"/>
|
||||
<source>Cc</source>
|
||||
<translation>抄送人</translation>
|
||||
</message>
|
||||
|
@ -250,24 +250,24 @@
|
|||
<context>
|
||||
<name>UkuiSearch::MailSearchPlugin</name>
|
||||
<message>
|
||||
<location filename="../../libsearch/mailsearch/mail-search-plugin.cpp" line="29"/>
|
||||
<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="38"/>
|
||||
<location filename="../../libsearch/mailsearch/mail-search-plugin.cpp" line="43"/>
|
||||
<location filename="../../libsearch/mailsearch/mail-search-plugin.cpp" line="48"/>
|
||||
<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="88"/>
|
||||
<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="229"/>
|
||||
<location filename="../../libsearch/mailsearch/mail-search-plugin.cpp" line="231"/>
|
||||
<source>Open</source>
|
||||
<translation>打开</translation>
|
||||
</message>
|
||||
|
@ -292,7 +292,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="31"/>
|
||||
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="97"/>
|
||||
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="106"/>
|
||||
<source>Note Search</source>
|
||||
<translatorcomment>便签</translatorcomment>
|
||||
<translation>便签</translation>
|
||||
|
@ -304,7 +304,7 @@
|
|||
<translation>便签.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="71"/>
|
||||
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="80"/>
|
||||
<source>Application</source>
|
||||
<translatorcomment>应用</translatorcomment>
|
||||
<translation>应用</translation>
|
||||
|
@ -313,12 +313,12 @@
|
|||
<context>
|
||||
<name>UkuiSearch::SearchManager</name>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/search-manager.cpp" line="98"/>
|
||||
<location filename="../../libsearch/index/search-manager.cpp" line="67"/>
|
||||
<source>Path:</source>
|
||||
<translation>路径:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/index/search-manager.cpp" line="99"/>
|
||||
<location filename="../../libsearch/index/search-manager.cpp" line="68"/>
|
||||
<source>Modified time:</source>
|
||||
<translation>修改时间:</translation>
|
||||
</message>
|
||||
|
@ -326,23 +326,23 @@
|
|||
<context>
|
||||
<name>UkuiSearch::SettingsSearchPlugin</name>
|
||||
<message>
|
||||
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="11"/>
|
||||
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="405"/>
|
||||
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="15"/>
|
||||
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="128"/>
|
||||
<source>Open</source>
|
||||
<translation>打开</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="31"/>
|
||||
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="35"/>
|
||||
<source>Settings Search</source>
|
||||
<translation>设置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="26"/>
|
||||
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="30"/>
|
||||
<source>Settings search.</source>
|
||||
<translation>设置。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="391"/>
|
||||
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="117"/>
|
||||
<source>Settings</source>
|
||||
<translation>设置项</translation>
|
||||
</message>
|
||||
|
@ -350,14 +350,14 @@
|
|||
<context>
|
||||
<name>UkuiSearch::WebSearchPlugin</name>
|
||||
<message>
|
||||
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="7"/>
|
||||
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="94"/>
|
||||
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="10"/>
|
||||
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="114"/>
|
||||
<source>Start browser search</source>
|
||||
<translation>启动浏览器搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="19"/>
|
||||
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="24"/>
|
||||
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="22"/>
|
||||
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="27"/>
|
||||
<source>Web Page</source>
|
||||
<translation>网页</translation>
|
||||
</message>
|
||||
|
|
|
@ -1,18 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1">
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../../frontend/main.cpp" line="184"/>
|
||||
<source>ukui-search is already running!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UkuiSearch::BestListWidget</name>
|
||||
<message>
|
||||
<location filename="../../frontend/view/best-list-view.cpp" line="309"/>
|
||||
<location filename="../../frontend/view/best-list-view.cpp" line="312"/>
|
||||
<source>Best Matches</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -20,32 +12,32 @@
|
|||
<context>
|
||||
<name>UkuiSearch::CreateIndexAskDialog</name>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="40"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="41"/>
|
||||
<source>ukui-search</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="66"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="68"/>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="91"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="93"/>
|
||||
<source>Creating index can help you getting results quickly, whether to create or not?</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="102"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="104"/>
|
||||
<source>Don't remind</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="113"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="115"/>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="115"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="117"/>
|
||||
<source>Yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -61,12 +53,12 @@
|
|||
<context>
|
||||
<name>UkuiSearch::MainWindow</name>
|
||||
<message>
|
||||
<location filename="../../frontend/mainwindow.cpp" line="70"/>
|
||||
<location filename="../../frontend/mainwindow.cpp" line="69"/>
|
||||
<source>ukui-search</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/mainwindow.cpp" line="76"/>
|
||||
<location filename="../../frontend/mainwindow.cpp" line="75"/>
|
||||
<source>Global Search</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -74,7 +66,7 @@
|
|||
<context>
|
||||
<name>UkuiSearch::SearchLineEdit</name>
|
||||
<message>
|
||||
<location filename="../../frontend/control/search-line-edit.cpp" line="55"/>
|
||||
<location filename="../../frontend/control/search-line-edit.cpp" line="56"/>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -240,10 +232,23 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UkuiSearch::UkuiSearchGui</name>
|
||||
<message>
|
||||
<location filename="../../frontend/ukui-search-gui.cpp" line="88"/>
|
||||
<source>Quit ukui-search application</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/ukui-search-gui.cpp" line="91"/>
|
||||
<source>Show main window</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UkuiSearch::WebSearchWidget</name>
|
||||
<message>
|
||||
<location filename="../../frontend/view/web-search-view.cpp" line="150"/>
|
||||
<location filename="../../frontend/view/web-search-view.cpp" line="152"/>
|
||||
<source>Web Page</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
|
|
@ -99,9 +99,8 @@
|
|||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../../frontend/main.cpp" line="184"/>
|
||||
<source>ukui-search is already running!</source>
|
||||
<translation>ukui-bul zaten çalışıyor!</translation>
|
||||
<translation type="vanished">ukui-bul zaten çalışıyor!</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
@ -247,7 +246,7 @@
|
|||
<context>
|
||||
<name>UkuiSearch::BestListWidget</name>
|
||||
<message>
|
||||
<location filename="../../frontend/view/best-list-view.cpp" line="309"/>
|
||||
<location filename="../../frontend/view/best-list-view.cpp" line="312"/>
|
||||
<source>Best Matches</source>
|
||||
<translation type="unfinished">En İyi Eşleşen</translation>
|
||||
</message>
|
||||
|
@ -298,32 +297,32 @@
|
|||
<context>
|
||||
<name>UkuiSearch::CreateIndexAskDialog</name>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="40"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="41"/>
|
||||
<source>ukui-search</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="66"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="68"/>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished">Ara</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="91"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="93"/>
|
||||
<source>Creating index can help you getting results quickly, whether to create or not?</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="102"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="104"/>
|
||||
<source>Don't remind</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="113"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="115"/>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="115"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="117"/>
|
||||
<source>Yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -354,12 +353,12 @@
|
|||
<context>
|
||||
<name>UkuiSearch::MainWindow</name>
|
||||
<message>
|
||||
<location filename="../../frontend/mainwindow.cpp" line="70"/>
|
||||
<location filename="../../frontend/mainwindow.cpp" line="69"/>
|
||||
<source>ukui-search</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/mainwindow.cpp" line="76"/>
|
||||
<location filename="../../frontend/mainwindow.cpp" line="75"/>
|
||||
<source>Global Search</source>
|
||||
<translation type="unfinished">Genel Arama</translation>
|
||||
</message>
|
||||
|
@ -420,7 +419,7 @@
|
|||
<context>
|
||||
<name>UkuiSearch::SearchLineEdit</name>
|
||||
<message>
|
||||
<location filename="../../frontend/control/search-line-edit.cpp" line="55"/>
|
||||
<location filename="../../frontend/control/search-line-edit.cpp" line="56"/>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished">Ara</translation>
|
||||
</message>
|
||||
|
@ -613,10 +612,23 @@
|
|||
<translation type="obsolete">Yükleniyor...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UkuiSearch::UkuiSearchGui</name>
|
||||
<message>
|
||||
<location filename="../../frontend/ukui-search-gui.cpp" line="88"/>
|
||||
<source>Quit ukui-search application</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/ukui-search-gui.cpp" line="91"/>
|
||||
<source>Show main window</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UkuiSearch::WebSearchWidget</name>
|
||||
<message>
|
||||
<location filename="../../frontend/view/web-search-view.cpp" line="150"/>
|
||||
<location filename="../../frontend/view/web-search-view.cpp" line="152"/>
|
||||
<source>Web Page</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
|
|
@ -1,18 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="zh_CN">
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../../frontend/main.cpp" line="184"/>
|
||||
<source>ukui-search is already running!</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UkuiSearch::BestListWidget</name>
|
||||
<message>
|
||||
<location filename="../../frontend/view/best-list-view.cpp" line="309"/>
|
||||
<location filename="../../frontend/view/best-list-view.cpp" line="312"/>
|
||||
<source>Best Matches</source>
|
||||
<translation>最佳匹配</translation>
|
||||
</message>
|
||||
|
@ -67,32 +59,32 @@
|
|||
<context>
|
||||
<name>UkuiSearch::CreateIndexAskDialog</name>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="40"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="41"/>
|
||||
<source>ukui-search</source>
|
||||
<translation>搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="66"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="68"/>
|
||||
<source>Search</source>
|
||||
<translation>搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="91"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="93"/>
|
||||
<source>Creating index can help you getting results quickly, whether to create or not?</source>
|
||||
<translation>创建索引可以快速获取搜索结果,是否创建?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="102"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="104"/>
|
||||
<source>Don't remind</source>
|
||||
<translation>不再提醒</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="113"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="115"/>
|
||||
<source>No</source>
|
||||
<translation>否(N)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="115"/>
|
||||
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="117"/>
|
||||
<source>Yes</source>
|
||||
<translation>是(Y)</translation>
|
||||
</message>
|
||||
|
@ -123,12 +115,12 @@
|
|||
<context>
|
||||
<name>UkuiSearch::MainWindow</name>
|
||||
<message>
|
||||
<location filename="../../frontend/mainwindow.cpp" line="70"/>
|
||||
<location filename="../../frontend/mainwindow.cpp" line="69"/>
|
||||
<source>ukui-search</source>
|
||||
<translation>搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/mainwindow.cpp" line="76"/>
|
||||
<location filename="../../frontend/mainwindow.cpp" line="75"/>
|
||||
<source>Global Search</source>
|
||||
<translation>搜索</translation>
|
||||
</message>
|
||||
|
@ -201,7 +193,7 @@
|
|||
<context>
|
||||
<name>UkuiSearch::SearchLineEdit</name>
|
||||
<message>
|
||||
<location filename="../../frontend/control/search-line-edit.cpp" line="55"/>
|
||||
<location filename="../../frontend/control/search-line-edit.cpp" line="56"/>
|
||||
<source>Search</source>
|
||||
<translation>搜索</translation>
|
||||
</message>
|
||||
|
@ -394,12 +386,25 @@
|
|||
<translation type="vanished">加载中...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UkuiSearch::UkuiSearchGui</name>
|
||||
<message>
|
||||
<location filename="../../frontend/ukui-search-gui.cpp" line="88"/>
|
||||
<source>Quit ukui-search application</source>
|
||||
<translation>退出搜索应用</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../frontend/ukui-search-gui.cpp" line="91"/>
|
||||
<source>Show main window</source>
|
||||
<translation>显示主页面</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UkuiSearch::WebSearchWidget</name>
|
||||
<message>
|
||||
<location filename="../../frontend/view/web-search-view.cpp" line="150"/>
|
||||
<location filename="../../frontend/view/web-search-view.cpp" line="152"/>
|
||||
<source>Web Page</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>网页搜索</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
|
|
@ -16,7 +16,6 @@ UkuiSearchService::UkuiSearchService(int &argc, char *argv[], const QString &app
|
|||
});
|
||||
|
||||
DirWatcher::getDirWatcher();
|
||||
FileUtils::loadHanziTable("://index/pinyinWithoutTone.txt");
|
||||
initGsettings();
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include "qtsingleapplication.h"
|
||||
#include "search-method-manager.h"
|
||||
#include "common.h"
|
||||
#include "file-utils.h"
|
||||
namespace UkuiSearch {
|
||||
|
||||
class UkuiSearchService : public QtSingleApplication
|
||||
|
|
|
@ -23,7 +23,8 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
|||
include(../libsearch/libukui-search-headers.pri)
|
||||
include(../3rd-parties/qtsingleapplication/qtsingleapplication.pri)
|
||||
|
||||
LIBS += -L$$OUT_PWD/../libsearch -lukui-search
|
||||
LIBS += -L$$OUT_PWD/../libchinese-segmentation -lchinese-segmentation \
|
||||
-L$$OUT_PWD/../libsearch -lukui-search
|
||||
|
||||
SOURCES += \
|
||||
main.cpp \
|
||||
|
|
Loading…
Reference in New Issue