解决合并代码后的编译问题,更新翻译文件。

This commit is contained in:
iaom 2022-03-08 14:50:48 +08:00
parent 577d4f6050
commit 565f490035
11 changed files with 140 additions and 124 deletions

View File

@ -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)));

View File

@ -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"));

View File

@ -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 \

View File

@ -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>

View File

@ -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>

View File

@ -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&apos;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>

View File

@ -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&apos;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>

View File

@ -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&apos;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>

View File

@ -16,7 +16,6 @@ UkuiSearchService::UkuiSearchService(int &argc, char *argv[], const QString &app
});
DirWatcher::getDirWatcher();
FileUtils::loadHanziTable("://index/pinyinWithoutTone.txt");
initGsettings();
}

View File

@ -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

View File

@ -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 \