fix(frontend): Window title is not translated.

Description: 修复任务栏窗口标题未汉化的Bug

Log: 修复任务栏窗口标题未汉化的Bug
Bug: http://172.17.66.192/biz/bug-view-36548.html
This commit is contained in:
zhangjiaping 2021-02-02 10:09:30 +08:00
parent 9d0fb57fa5
commit dbecee473d
11 changed files with 174 additions and 109 deletions

3
debian/control vendored
View File

@ -16,7 +16,8 @@ Build-Depends: debhelper (>=9.0.0),
libkf5windowsystem-dev, libkf5windowsystem-dev,
libgsettings-qt-dev, libgsettings-qt-dev,
libqt5x11extras5-dev, libqt5x11extras5-dev,
libuchardet-dev libuchardet-dev,
qtwebengine5-dev
Standards-Version: 4.5.0 Standards-Version: 4.5.0
Homepage: https://www.ukui.org/ Homepage: https://www.ukui.org/
Vcs-Git: https://github.com/ukui/ukui-search.git Vcs-Git: https://github.com/ukui/ukui-search.git

View File

@ -28,6 +28,7 @@ ContentWidget::ContentWidget(QWidget * parent):QStackedWidget(parent)
{ {
initUI(); initUI();
initListView(); initListView();
m_quicklyOpenList<<"/usr/share/applications/peony.desktop"<<"/usr/share/applications/ukui-control-center.desktop"<<"Background/背景/更改壁纸";
} }
ContentWidget::~ContentWidget() ContentWidget::~ContentWidget()
@ -236,6 +237,7 @@ void ContentWidget::setupConnect(SearchListView * listview) {
m_detailView->setContent(m_contentDetailList.at(listview->currentIndex().row()), m_keyword); m_detailView->setContent(m_contentDetailList.at(listview->currentIndex().row()), m_keyword);
} }
m_detailView->setupWidget(type, path); m_detailView->setupWidget(type, path);
// m_detailView->setWebWidget(this->m_keyword);
listview->is_current_list = true; listview->is_current_list = true;
Q_EMIT this->currentItemChanged(); Q_EMIT this->currentItemChanged();
listview->is_current_list = false; listview->is_current_list = false;
@ -308,11 +310,9 @@ void ContentWidget::initHomePage() {
commonlyList = map.value("Commonly"); commonlyList = map.value("Commonly");
QStringList recentlyList; QStringList recentlyList;
recentlyList = map.value("Recently"); recentlyList = map.value("Recently");
QStringList quicklyList;
quicklyList<<"/usr/share/applications/peony.desktop"<<"/usr/share/applications/ukui-control-center.desktop"<<"Background/背景/更改壁纸";
lists.append(commonlyList); lists.append(commonlyList);
lists.append(recentlyList); lists.append(recentlyList);
lists.append(quicklyList); lists.append(m_quicklyOpenList);
for (int i = 0; i < lists.count(); i++) { for (int i = 0; i < lists.count(); i++) {
if (lists.at(i).isEmpty()) if (lists.at(i).isEmpty())
@ -650,3 +650,12 @@ void ContentWidget::setKeyword(QString keyword)
m_appListView->setKeyword(keyword); m_appListView->setKeyword(keyword);
m_bestListView->setKeyword(keyword); m_bestListView->setKeyword(keyword);
} }
/**
* @brief ContentWidget::setQuicklyOpenList
* @param list
*/
void ContentWidget::setQuicklyOpenList(const QStringList & list)
{
m_quicklyOpenList = list;
}

View File

@ -44,6 +44,7 @@ public:
void initHomePage(); void initHomePage();
void setContentList(const QStringList&); void setContentList(const QStringList&);
void setKeyword(QString); void setKeyword(QString);
void setQuicklyOpenList(const QStringList &);
private: private:
void initUI(); void initUI();
void initListView(); void initListView();
@ -88,6 +89,7 @@ private:
QStringList m_dirList; QStringList m_dirList;
QStringList m_fileList; QStringList m_fileList;
QStringList m_contentList; QStringList m_contentList;
QStringList m_quicklyOpenList;
int m_currentType = 0; int m_currentType = 0;

View File

@ -43,7 +43,6 @@ SearchDetailView::SearchDetailView(QWidget *parent) : QWidget(parent)
SearchDetailView::~SearchDetailView() SearchDetailView::~SearchDetailView()
{ {
if (m_layout) { if (m_layout) {
clearLayout();
delete m_layout; delete m_layout;
m_layout = NULL; m_layout = NULL;
} }
@ -108,6 +107,23 @@ int SearchDetailView::getType()
return m_type; return m_type;
} }
/**
* @brief SearchDetailView::setWebWidget
* @param keyword
*/
//void SearchDetailView::setWebWidget(const QString& keyword)
//{
// QWebEngineView * m_webView = new QWebEngineView(this);
// m_webView->move(0, 0);
// m_webView->setFixedSize(360, 522);
// m_isEmpty = false;
// clearLayout();
// QString str = "http://m.baidu.com/s?word=" + keyword;
// m_webView->load(str);
// m_webView->show();
//}
QString SearchDetailView::getHtmlText(const QString & text, const QString & keyword) { QString SearchDetailView::getHtmlText(const QString & text, const QString & keyword) {
QString htmlString; QString htmlString;
bool boldOpenned = false; bool boldOpenned = false;
@ -404,6 +420,8 @@ void SearchDetailView::initUI()
m_layout->addStretch(); m_layout->addStretch();
this->clearLayout(); //初始化时隐藏所有控件 this->clearLayout(); //初始化时隐藏所有控件
} }

View File

@ -22,6 +22,7 @@
#define SEARCHDETAILVIEW_H #define SEARCHDETAILVIEW_H
#include <QWidget> #include <QWidget>
#include <QWebEngineView>
#include "option-view.h" #include "option-view.h"
class SearchDetailView : public QWidget class SearchDetailView : public QWidget
@ -36,6 +37,7 @@ public:
void setContent(const QString&, const QString&); void setContent(const QString&, const QString&);
bool isEmpty(); bool isEmpty();
int getType(); int getType();
// void setWebWidget(const QString&);
protected: protected:
void paintEvent(QPaintEvent *); void paintEvent(QPaintEvent *);

View File

@ -72,6 +72,7 @@ MainWindow::MainWindow(QWidget *parent) :
this->setAutoFillBackground(false); this->setAutoFillBackground(false);
this->setFocusPolicy(Qt::StrongFocus); this->setFocusPolicy(Qt::StrongFocus);
this->setSizePolicy(QSizePolicy::Minimum,QSizePolicy::Minimum); this->setSizePolicy(QSizePolicy::Minimum,QSizePolicy::Minimum);
this->setWindowTitle(tr("ukui-search"));
initUi(); initUi();
QPainterPath path; QPainterPath path;
@ -234,6 +235,7 @@ void MainWindow::initUi()
}); });
//初始化homepage //初始化homepage
// m_contentFrame->setQuicklyOpenList(list); //如需自定义快捷打开使用本函数
m_contentFrame->initHomePage(); m_contentFrame->initHomePage();
} }

View File

@ -34,6 +34,7 @@ extern void qt_blurImage(QImage &blurImage, qreal radius, bool quality, int tran
SettingsWidget::SettingsWidget(QWidget *parent) : QDialog(parent) SettingsWidget::SettingsWidget(QWidget *parent) : QDialog(parent)
{ {
this->setWindowIcon(QIcon::fromTheme("kylin-search")); this->setWindowIcon(QIcon::fromTheme("kylin-search"));
this->setWindowTitle(tr("ukui-search"));
this->setWindowFlags(Qt::CustomizeWindowHint | Qt::FramelessWindowHint); this->setWindowFlags(Qt::CustomizeWindowHint | Qt::FramelessWindowHint);
this->setAttribute(Qt::WA_TranslucentBackground); this->setAttribute(Qt::WA_TranslucentBackground);
initUi(); initUi();

View File

@ -1,4 +1,4 @@
QT += core gui dbus KWindowSystem xml x11extras QT += core gui dbus KWindowSystem xml x11extras webenginewidgets
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

View File

@ -65,12 +65,17 @@
<context> <context>
<name>MainWindow</name> <name>MainWindow</name>
<message> <message>
<location filename="../../src/mainwindow.cpp" line="110"/> <location filename="../../src/mainwindow.cpp" line="71"/>
<source>ukui-search</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mainwindow.cpp" line="111"/>
<source>Global Search</source> <source>Global Search</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/mainwindow.cpp" line="164"/> <location filename="../../src/mainwindow.cpp" line="165"/>
<source>Search</source> <source>Search</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -106,7 +111,7 @@
<context> <context>
<name>QObject</name> <name>QObject</name>
<message> <message>
<location filename="../../src/main.cpp" line="145"/> <location filename="../../src/main.cpp" line="144"/>
<source>ukui-search is already running!</source> <source>ukui-search is already running!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -122,22 +127,22 @@
<context> <context>
<name>SearchDetailView</name> <name>SearchDetailView</name>
<message> <message>
<location filename="../../src/control/search-detail-view.cpp" line="340"/> <location filename="../../src/control/search-detail-view.cpp" line="372"/>
<source>Path</source> <source>Path</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/control/search-detail-view.cpp" line="348"/> <location filename="../../src/control/search-detail-view.cpp" line="380"/>
<source>Last time modified</source> <source>Last time modified</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/control/search-detail-view.cpp" line="179"/> <location filename="../../src/control/search-detail-view.cpp" line="208"/>
<source>Application</source> <source>Application</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/control/search-detail-view.cpp" line="190"/> <location filename="../../src/control/search-detail-view.cpp" line="220"/>
<source>Document</source> <source>Document</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -145,121 +150,126 @@
<context> <context>
<name>SettingsWidget</name> <name>SettingsWidget</name>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="48"/> <location filename="../../src/settings-widget.cpp" line="49"/>
<location filename="../../src/settings-widget.cpp" line="242"/> <location filename="../../src/settings-widget.cpp" line="247"/>
<location filename="../../src/settings-widget.cpp" line="264"/> <location filename="../../src/settings-widget.cpp" line="269"/>
<location filename="../../src/settings-widget.cpp" line="353"/> <location filename="../../src/settings-widget.cpp" line="358"/>
<source>Search</source> <source>Search</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="78"/> <location filename="../../src/settings-widget.cpp" line="79"/>
<location filename="../../src/settings-widget.cpp" line="80"/> <location filename="../../src/settings-widget.cpp" line="81"/>
<source>...</source> <source>...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="90"/> <location filename="../../src/settings-widget.cpp" line="91"/>
<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 type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="99"/> <location filename="../../src/settings-widget.cpp" line="100"/>
<source>Add ignored folders</source> <source>Add ignored folders</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="122"/> <location filename="../../src/settings-widget.cpp" line="123"/>
<source>Please select search engine you preferred.</source> <source>Please select search engine you preferred.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="135"/> <location filename="../../src/settings-widget.cpp" line="136"/>
<source>baidu</source> <source>baidu</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="137"/> <location filename="../../src/settings-widget.cpp" line="138"/>
<source>sougou</source> <source>sougou</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="139"/> <location filename="../../src/settings-widget.cpp" line="140"/>
<source>360</source> <source>360</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="336"/> <location filename="../../src/settings-widget.cpp" line="341"/>
<source>Cancel</source> <source>Cancel</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="275"/> <location filename="../../src/settings-widget.cpp" line="280"/>
<source>Creating ...</source> <source>Creating ...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="71"/> <location filename="../../src/settings-widget.cpp" line="17"/>
<source>ukui-search</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="72"/>
<source>&lt;h2&gt;Settings&lt;/h2&gt;</source> <source>&lt;h2&gt;Settings&lt;/h2&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="76"/> <location filename="../../src/settings-widget.cpp" line="77"/>
<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 type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="88"/> <location filename="../../src/settings-widget.cpp" line="89"/>
<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 type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="120"/> <location filename="../../src/settings-widget.cpp" line="121"/>
<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 type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="242"/> <location filename="../../src/settings-widget.cpp" line="247"/>
<source>Whether to delete this directory?</source> <source>Whether to delete this directory?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="278"/> <location filename="../../src/settings-widget.cpp" line="283"/>
<source>Done</source> <source>Done</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="286"/> <location filename="../../src/settings-widget.cpp" line="291"/>
<source>Index Entry: %1</source> <source>Index Entry: %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="330"/> <location filename="../../src/settings-widget.cpp" line="335"/>
<source>Directories</source> <source>Directories</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="331"/> <location filename="../../src/settings-widget.cpp" line="336"/>
<source>select blocked folder</source> <source>select blocked folder</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="332"/> <location filename="../../src/settings-widget.cpp" line="337"/>
<source>Select</source> <source>Select</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="333"/> <location filename="../../src/settings-widget.cpp" line="338"/>
<source>Position: </source> <source>Position: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="334"/> <location filename="../../src/settings-widget.cpp" line="339"/>
<source>FileName: </source> <source>FileName: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="335"/> <location filename="../../src/settings-widget.cpp" line="340"/>
<source>FileType: </source> <source>FileType: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@ -65,12 +65,17 @@
<context> <context>
<name>MainWindow</name> <name>MainWindow</name>
<message> <message>
<location filename="../../src/mainwindow.cpp" line="110"/> <location filename="../../src/mainwindow.cpp" line="71"/>
<source>ukui-search</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mainwindow.cpp" line="111"/>
<source>Global Search</source> <source>Global Search</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/mainwindow.cpp" line="164"/> <location filename="../../src/mainwindow.cpp" line="165"/>
<source>Search</source> <source>Search</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -106,7 +111,7 @@
<context> <context>
<name>QObject</name> <name>QObject</name>
<message> <message>
<location filename="../../src/main.cpp" line="145"/> <location filename="../../src/main.cpp" line="144"/>
<source>ukui-search is already running!</source> <source>ukui-search is already running!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -122,22 +127,22 @@
<context> <context>
<name>SearchDetailView</name> <name>SearchDetailView</name>
<message> <message>
<location filename="../../src/control/search-detail-view.cpp" line="340"/> <location filename="../../src/control/search-detail-view.cpp" line="372"/>
<source>Path</source> <source>Path</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/control/search-detail-view.cpp" line="348"/> <location filename="../../src/control/search-detail-view.cpp" line="380"/>
<source>Last time modified</source> <source>Last time modified</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/control/search-detail-view.cpp" line="179"/> <location filename="../../src/control/search-detail-view.cpp" line="208"/>
<source>Application</source> <source>Application</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/control/search-detail-view.cpp" line="190"/> <location filename="../../src/control/search-detail-view.cpp" line="220"/>
<source>Document</source> <source>Document</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -145,121 +150,126 @@
<context> <context>
<name>SettingsWidget</name> <name>SettingsWidget</name>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="48"/> <location filename="../../src/settings-widget.cpp" line="49"/>
<location filename="../../src/settings-widget.cpp" line="242"/> <location filename="../../src/settings-widget.cpp" line="247"/>
<location filename="../../src/settings-widget.cpp" line="264"/> <location filename="../../src/settings-widget.cpp" line="269"/>
<location filename="../../src/settings-widget.cpp" line="353"/> <location filename="../../src/settings-widget.cpp" line="358"/>
<source>Search</source> <source>Search</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="78"/> <location filename="../../src/settings-widget.cpp" line="79"/>
<location filename="../../src/settings-widget.cpp" line="80"/> <location filename="../../src/settings-widget.cpp" line="81"/>
<source>...</source> <source>...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="90"/> <location filename="../../src/settings-widget.cpp" line="91"/>
<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 type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="99"/> <location filename="../../src/settings-widget.cpp" line="100"/>
<source>Add ignored folders</source> <source>Add ignored folders</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="122"/> <location filename="../../src/settings-widget.cpp" line="123"/>
<source>Please select search engine you preferred.</source> <source>Please select search engine you preferred.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="135"/> <location filename="../../src/settings-widget.cpp" line="136"/>
<source>baidu</source> <source>baidu</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="137"/> <location filename="../../src/settings-widget.cpp" line="138"/>
<source>sougou</source> <source>sougou</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="139"/> <location filename="../../src/settings-widget.cpp" line="140"/>
<source>360</source> <source>360</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="336"/> <location filename="../../src/settings-widget.cpp" line="341"/>
<source>Cancel</source> <source>Cancel</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="275"/> <location filename="../../src/settings-widget.cpp" line="280"/>
<source>Creating ...</source> <source>Creating ...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="71"/> <location filename="../../src/settings-widget.cpp" line="17"/>
<source>ukui-search</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="72"/>
<source>&lt;h2&gt;Settings&lt;/h2&gt;</source> <source>&lt;h2&gt;Settings&lt;/h2&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="76"/> <location filename="../../src/settings-widget.cpp" line="77"/>
<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 type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="88"/> <location filename="../../src/settings-widget.cpp" line="89"/>
<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 type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="120"/> <location filename="../../src/settings-widget.cpp" line="121"/>
<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 type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="242"/> <location filename="../../src/settings-widget.cpp" line="247"/>
<source>Whether to delete this directory?</source> <source>Whether to delete this directory?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="278"/> <location filename="../../src/settings-widget.cpp" line="283"/>
<source>Done</source> <source>Done</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="286"/> <location filename="../../src/settings-widget.cpp" line="291"/>
<source>Index Entry: %1</source> <source>Index Entry: %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="330"/> <location filename="../../src/settings-widget.cpp" line="335"/>
<source>Directories</source> <source>Directories</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="331"/> <location filename="../../src/settings-widget.cpp" line="336"/>
<source>select blocked folder</source> <source>select blocked folder</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="332"/> <location filename="../../src/settings-widget.cpp" line="337"/>
<source>Select</source> <source>Select</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="333"/> <location filename="../../src/settings-widget.cpp" line="338"/>
<source>Position: </source> <source>Position: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="334"/> <location filename="../../src/settings-widget.cpp" line="339"/>
<source>FileName: </source> <source>FileName: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="335"/> <location filename="../../src/settings-widget.cpp" line="340"/>
<source>FileType: </source> <source>FileType: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@ -65,12 +65,17 @@
<context> <context>
<name>MainWindow</name> <name>MainWindow</name>
<message> <message>
<location filename="../../src/mainwindow.cpp" line="110"/> <location filename="../../src/mainwindow.cpp" line="71"/>
<source>ukui-search</source>
<translation></translation>
</message>
<message>
<location filename="../../src/mainwindow.cpp" line="111"/>
<source>Global Search</source> <source>Global Search</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/mainwindow.cpp" line="164"/> <location filename="../../src/mainwindow.cpp" line="165"/>
<source>Search</source> <source>Search</source>
<translation></translation> <translation></translation>
</message> </message>
@ -106,7 +111,7 @@
<context> <context>
<name>QObject</name> <name>QObject</name>
<message> <message>
<location filename="../../src/main.cpp" line="145"/> <location filename="../../src/main.cpp" line="144"/>
<source>ukui-search is already running!</source> <source>ukui-search is already running!</source>
<translation></translation> <translation></translation>
</message> </message>
@ -122,22 +127,22 @@
<context> <context>
<name>SearchDetailView</name> <name>SearchDetailView</name>
<message> <message>
<location filename="../../src/control/search-detail-view.cpp" line="340"/> <location filename="../../src/control/search-detail-view.cpp" line="372"/>
<source>Path</source> <source>Path</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/control/search-detail-view.cpp" line="348"/> <location filename="../../src/control/search-detail-view.cpp" line="380"/>
<source>Last time modified</source> <source>Last time modified</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/control/search-detail-view.cpp" line="179"/> <location filename="../../src/control/search-detail-view.cpp" line="208"/>
<source>Application</source> <source>Application</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/control/search-detail-view.cpp" line="190"/> <location filename="../../src/control/search-detail-view.cpp" line="220"/>
<source>Document</source> <source>Document</source>
<translation></translation> <translation></translation>
</message> </message>
@ -145,121 +150,126 @@
<context> <context>
<name>SettingsWidget</name> <name>SettingsWidget</name>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="48"/> <location filename="../../src/settings-widget.cpp" line="49"/>
<location filename="../../src/settings-widget.cpp" line="242"/> <location filename="../../src/settings-widget.cpp" line="247"/>
<location filename="../../src/settings-widget.cpp" line="264"/> <location filename="../../src/settings-widget.cpp" line="269"/>
<location filename="../../src/settings-widget.cpp" line="353"/> <location filename="../../src/settings-widget.cpp" line="358"/>
<source>Search</source> <source>Search</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="71"/> <location filename="../../src/settings-widget.cpp" line="72"/>
<source>&lt;h2&gt;Settings&lt;/h2&gt;</source> <source>&lt;h2&gt;Settings&lt;/h2&gt;</source>
<translation>&lt;h2&gt;&lt;/h2&gt;</translation> <translation>&lt;h2&gt;&lt;/h2&gt;</translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="76"/> <location filename="../../src/settings-widget.cpp" line="77"/>
<source>&lt;h3&gt;Index State&lt;/h3&gt;</source> <source>&lt;h3&gt;Index State&lt;/h3&gt;</source>
<translation>&lt;h3&gt;&lt;/h3&gt;</translation> <translation>&lt;h3&gt;&lt;/h3&gt;</translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="78"/> <location filename="../../src/settings-widget.cpp" line="79"/>
<location filename="../../src/settings-widget.cpp" line="80"/> <location filename="../../src/settings-widget.cpp" line="81"/>
<source>...</source> <source>...</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="88"/> <location filename="../../src/settings-widget.cpp" line="89"/>
<source>&lt;h3&gt;File Index Settings&lt;/h3&gt;</source> <source>&lt;h3&gt;File Index Settings&lt;/h3&gt;</source>
<translation>&lt;h3&gt;&lt;/h3&gt;</translation> <translation>&lt;h3&gt;&lt;/h3&gt;</translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="90"/> <location filename="../../src/settings-widget.cpp" line="91"/>
<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></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="99"/> <location filename="../../src/settings-widget.cpp" line="100"/>
<source>Add ignored folders</source> <source>Add ignored folders</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="120"/> <location filename="../../src/settings-widget.cpp" line="121"/>
<source>&lt;h3&gt;Search Engine Settings&lt;/h3&gt;</source> <source>&lt;h3&gt;Search Engine Settings&lt;/h3&gt;</source>
<translation>&lt;h3&gt;&lt;/h3&gt;</translation> <translation>&lt;h3&gt;&lt;/h3&gt;</translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="122"/> <location filename="../../src/settings-widget.cpp" line="123"/>
<source>Please select search engine you preferred.</source> <source>Please select search engine you preferred.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="135"/> <location filename="../../src/settings-widget.cpp" line="136"/>
<source>baidu</source> <source>baidu</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="137"/> <location filename="../../src/settings-widget.cpp" line="138"/>
<source>sougou</source> <source>sougou</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="139"/> <location filename="../../src/settings-widget.cpp" line="140"/>
<source>360</source> <source>360</source>
<translation>360</translation> <translation>360</translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="242"/> <location filename="../../src/settings-widget.cpp" line="247"/>
<source>Whether to delete this directory?</source> <source>Whether to delete this directory?</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="336"/> <location filename="../../src/settings-widget.cpp" line="341"/>
<source>Cancel</source> <source>Cancel</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="275"/> <location filename="../../src/settings-widget.cpp" line="280"/>
<source>Creating ...</source> <source>Creating ...</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="278"/> <location filename="../../src/settings-widget.cpp" line="17"/>
<source>ukui-search</source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="283"/>
<source>Done</source> <source>Done</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="286"/> <location filename="../../src/settings-widget.cpp" line="291"/>
<source>Index Entry: %1</source> <source>Index Entry: %1</source>
<translation>: %1</translation> <translation>: %1</translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="330"/> <location filename="../../src/settings-widget.cpp" line="335"/>
<source>Directories</source> <source>Directories</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="331"/> <location filename="../../src/settings-widget.cpp" line="336"/>
<source>select blocked folder</source> <source>select blocked folder</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="332"/> <location filename="../../src/settings-widget.cpp" line="337"/>
<source>Select</source> <source>Select</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="333"/> <location filename="../../src/settings-widget.cpp" line="338"/>
<source>Position: </source> <source>Position: </source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="334"/> <location filename="../../src/settings-widget.cpp" line="339"/>
<source>FileName: </source> <source>FileName: </source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/settings-widget.cpp" line="335"/> <location filename="../../src/settings-widget.cpp" line="340"/>
<source>FileType: </source> <source>FileType: </source>
<translation></translation> <translation></translation>
</message> </message>
@ -276,7 +286,7 @@
<message> <message>
<location filename="../../src/control/show-more-label.cpp" line="56"/> <location filename="../../src/control/show-more-label.cpp" line="56"/>
<source>Retract</source> <source>Retract</source>
<translation>&lt;u&gt;&lt;</translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/control/show-more-label.cpp" line="67"/> <location filename="../../src/control/show-more-label.cpp" line="67"/>