forked from openkylin/ukui-search
feat(frontend): Add tips when there is no network avaliable.
Description: 当无网络可用时添加提示框 Log: 当无网络可用时添加提示框
This commit is contained in:
parent
9b7bcf54c6
commit
3a8c0a1456
|
@ -34,6 +34,7 @@
|
|||
#include <QFileInfo>
|
||||
#include <QDateTime>
|
||||
#include <QDBusMetaType>
|
||||
#include <QWebEngineCookieStore>
|
||||
#include "config-file.h"
|
||||
|
||||
SearchDetailView::SearchDetailView(QWidget *parent) : QWidget(parent)
|
||||
|
@ -62,6 +63,7 @@ void SearchDetailView::clearLayout() {
|
|||
// delete child;
|
||||
// }
|
||||
// child = NULL;
|
||||
m_noNetFrame->hide();
|
||||
m_iconLabel->hide();
|
||||
m_nameFrame->hide();
|
||||
m_nameLabel->hide();
|
||||
|
@ -123,7 +125,7 @@ void SearchDetailView::setWebWidget(const QString& keyword)
|
|||
m_isEmpty = false;
|
||||
m_reload = false;
|
||||
if (m_webView) {
|
||||
if (QString::compare(keyword, m_currentKeyword) == 0) { //关键词没有发生变化,只把原来的网页show出来
|
||||
if (QString::compare(keyword, m_currentKeyword) == 0 && m_net_enable) { //关键词没有发生变化,只把原来的网页show出来
|
||||
m_webView->show();
|
||||
return;
|
||||
}
|
||||
|
@ -135,7 +137,7 @@ void SearchDetailView::setWebWidget(const QString& keyword)
|
|||
m_webView->move(0, 0);
|
||||
m_webView->setFixedSize(378, 522);
|
||||
|
||||
connect(m_webView,&QWebEngineView::loadFinished, this, [ = ](){
|
||||
connect(m_webView,&QWebEngineView::loadFinished, this, [ = ](bool is_successful){
|
||||
m_reload = true;
|
||||
if (m_engineProfile){
|
||||
m_engineProfile->clearHttpCache(); // 清理缓存
|
||||
|
@ -143,6 +145,13 @@ void SearchDetailView::setWebWidget(const QString& keyword)
|
|||
m_engineProfile->cookieStore()->deleteAllCookies(); // 清理cookie
|
||||
m_engineProfile->cookieStore()->deleteSessionCookies(); // 清理会话cookie
|
||||
}
|
||||
if (is_successful) {
|
||||
m_webView->show();
|
||||
m_net_enable = true;
|
||||
} else {
|
||||
m_noNetFrame->show();
|
||||
m_net_enable = false;
|
||||
}
|
||||
});
|
||||
connect(m_webView, &QWebEngineView::urlChanged, this, [ = ](const QUrl& url) {
|
||||
if (m_reload) {
|
||||
|
@ -178,7 +187,7 @@ void SearchDetailView::setWebWidget(const QString& keyword)
|
|||
// QString str = "https://wap.sogou.com/web/searchList.jsp?&keyword=" + keyword; //搜狗
|
||||
|
||||
m_webView->load(address);
|
||||
m_webView->show();
|
||||
// m_webView->show();
|
||||
}
|
||||
|
||||
void SearchDetailView::setAppWidget(const QString &appname, const QString &path, const QString &iconpath, const QString &description)
|
||||
|
@ -454,6 +463,23 @@ void SearchDetailView::initUI()
|
|||
this->setStyleSheet("QWidget#detailView{background:transparent;}");
|
||||
this->setFixedWidth(378);
|
||||
|
||||
//没有网络的时候的提示信息
|
||||
m_noNetFrame = new QFrame(this);
|
||||
m_noNetFrame->setFixedSize(378, 140);
|
||||
m_noNetLyt = new QVBoxLayout(m_noNetFrame);
|
||||
m_noNetIconLabel = new QLabel(m_noNetFrame);
|
||||
m_noNetIconLabel->setFixedHeight(98);
|
||||
m_noNetIconLabel->setPixmap(QIcon(":/res/icons/net-disconnected.svg").pixmap(QSize(98, 86)));
|
||||
m_noNetIconLabel->setAlignment(Qt::AlignCenter);
|
||||
m_noNetTipsLabel = new QLabel(m_noNetFrame);
|
||||
m_noNetTipsLabel->setText(tr("Preview is not avaliable"));
|
||||
m_noNetTipsLabel->setAlignment(Qt::AlignCenter);
|
||||
m_noNetFrame->setLayout(m_noNetLyt);
|
||||
m_noNetLyt->addWidget(m_noNetIconLabel);
|
||||
m_noNetLyt->addWidget(m_noNetTipsLabel);
|
||||
m_noNetLyt->setSpacing(12);
|
||||
m_noNetFrame->move((this->width() - m_noNetFrame->width()) / 2, 160);
|
||||
|
||||
//图标和名称、分割线区域
|
||||
m_iconLabel = new QLabel(this);
|
||||
m_iconLabel->setAlignment(Qt::AlignCenter);
|
||||
|
|
|
@ -89,10 +89,15 @@ private:
|
|||
QLabel * m_timeLabel_2 = nullptr;
|
||||
QFrame * m_hLine_2 = nullptr;
|
||||
OptionView * m_optionView = nullptr;
|
||||
QFrame * m_noNetFrame = nullptr;
|
||||
QVBoxLayout * m_noNetLyt = nullptr;
|
||||
QLabel * m_noNetIconLabel = nullptr;
|
||||
QLabel * m_noNetTipsLabel = nullptr;
|
||||
|
||||
QWebEngineView * m_webView = nullptr;
|
||||
QWebEngineProfile * m_engineProfile = nullptr;
|
||||
bool m_reload = false;
|
||||
bool m_net_enable = true;
|
||||
QString m_currentKeyword;
|
||||
|
||||
Q_SIGNALS:
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="98px" height="87px" viewBox="0 0 98 87" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- Generator: Sketch 59 (86127) - https://sketch.com -->
|
||||
<title>image-viewer-app-symbolic</title>
|
||||
<desc>Created with Sketch.</desc>
|
||||
<defs>
|
||||
<filter x="-2.4%" y="-2.7%" width="104.7%" height="105.3%" filterUnits="objectBoundingBox" id="filter-1">
|
||||
<feOffset dx="0" dy="0" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="4" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
|
||||
<feMerge>
|
||||
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
|
||||
<feMergeNode in="SourceGraphic"></feMergeNode>
|
||||
</feMerge>
|
||||
</filter>
|
||||
</defs>
|
||||
<g id="综合搜索" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.200000003">
|
||||
<g id="搜索结果——网页" transform="translate(-883.000000, -627.000000)">
|
||||
<g id="编组-2" filter="url(#filter-1)" transform="translate(447.000000, 427.000000)">
|
||||
<g id="image-viewer-app-symbolic" transform="translate(436.000000, 200.000000)">
|
||||
<g id="图层_2" transform="translate(4.000000, 5.000000)">
|
||||
<path d="M24,72 L12,72 C5.4,72 0,66.6 0,60 L0,12 C0,5.4 5.4,0 12,0 L78,0 C84.6,0 90,5.4 90,12 L90,60" id="路径" stroke="#1F2022" stroke-width="6" stroke-linecap="round"></path>
|
||||
<path d="M51,15 C34.2,15 21,28.2 21,45 C21,61.8 34.2,75 51,75 C67.8,75 81,61.8 81,45 C81,28.2 67.8,15 51,15 Z M51,21 C64.2,21 75,31.8 75,45 C75,58.2 64.2,69 51,69 C37.8,69 27,58.2 27,45 C27,31.8 37.8,21 51,21 Z" id="circle2567-9" fill="#1F2022" fill-rule="nonzero"></path>
|
||||
<path d="M71.4,60.6 L67.2,64.8 L80.1,77.7 C81.259798,78.859798 83.140202,78.859798 84.3,77.7 C85.459798,76.540202 85.459798,74.659798 84.3,73.5 L71.4,60.6 L71.4,60.6 Z" id="path2570-36" fill="#1F2022"></path>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
|
@ -4,5 +4,6 @@
|
|||
<file>res/icons/desktop.png</file>
|
||||
<file>res/icons/close.svg</file>
|
||||
<file>res/qt-translations/qt_zh_CN.qm</file>
|
||||
<file>res/icons/net-disconnected.svg</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
@ -75,12 +75,12 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/mainwindow.cpp" line="121"/>
|
||||
<location filename="../../src/mainwindow.cpp" line="126"/>
|
||||
<source>Global Search</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/mainwindow.cpp" line="176"/>
|
||||
<location filename="../../src/mainwindow.cpp" line="188"/>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -137,188 +137,193 @@
|
|||
<context>
|
||||
<name>SearchDetailView</name>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="494"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="525"/>
|
||||
<source>Path</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="502"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="533"/>
|
||||
<source>Last time modified</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="220"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="234"/>
|
||||
<source>Application</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="201"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="215"/>
|
||||
<source>Introduction: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="339"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="353"/>
|
||||
<source>Document</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="475"/>
|
||||
<source>Preview is not avaliable</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SettingsWidget</name>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="70"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="287"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="520"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="69"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="286"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="519"/>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="106"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="108"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="105"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="107"/>
|
||||
<source>...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="118"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="117"/>
|
||||
<source>Following folders will not be searched. You can set it by adding and removing folders.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="127"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="126"/>
|
||||
<source>Add ignored folders</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="150"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="149"/>
|
||||
<source>Please select search engine you preferred.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="163"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="162"/>
|
||||
<source>baidu</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="165"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="164"/>
|
||||
<source>sougou</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="167"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="166"/>
|
||||
<source>360</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="409"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="408"/>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="348"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="347"/>
|
||||
<source>Creating ...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="37"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="36"/>
|
||||
<source>ukui-search-settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="99"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="98"/>
|
||||
<source><h2>Settings</h2></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="104"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="103"/>
|
||||
<source><h3>Index State</h3></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="116"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="115"/>
|
||||
<source><h3>File Index Settings</h3></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="148"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="147"/>
|
||||
<source><h3>Search Engine Settings</h3></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="287"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="286"/>
|
||||
<source>Whether to delete this directory?</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="288"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="287"/>
|
||||
<source>Yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="289"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="288"/>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="351"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="350"/>
|
||||
<source>Done</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="359"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="358"/>
|
||||
<source>Index Entry: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="403"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="402"/>
|
||||
<source>Directories</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="404"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="403"/>
|
||||
<source>select blocked folder</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="405"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="404"/>
|
||||
<source>Select</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="406"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="405"/>
|
||||
<source>Position: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="407"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="406"/>
|
||||
<source>FileName: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="408"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="407"/>
|
||||
<source>FileType: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="504"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="503"/>
|
||||
<source>Choosen path is Empty!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="508"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="507"/>
|
||||
<source>Choosen path is not in "home"!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="512"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="511"/>
|
||||
<source>Its' parent folder has been blocked!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="516"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="515"/>
|
||||
<source>Set blocked folder failed!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="521"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="520"/>
|
||||
<source>OK</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
|
|
@ -75,12 +75,12 @@
|
|||
<translation>ukui-ara</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/mainwindow.cpp" line="121"/>
|
||||
<location filename="../../src/mainwindow.cpp" line="126"/>
|
||||
<source>Global Search</source>
|
||||
<translation>Genel Arama</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/mainwindow.cpp" line="176"/>
|
||||
<location filename="../../src/mainwindow.cpp" line="188"/>
|
||||
<source>Search</source>
|
||||
<translation>Ara</translation>
|
||||
</message>
|
||||
|
@ -137,83 +137,88 @@
|
|||
<context>
|
||||
<name>SearchDetailView</name>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="494"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="525"/>
|
||||
<source>Path</source>
|
||||
<translation>Yol</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="502"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="533"/>
|
||||
<source>Last time modified</source>
|
||||
<translation>Son değiştirilme zamanı</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="220"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="234"/>
|
||||
<source>Application</source>
|
||||
<translation>Uygulama</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="201"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="215"/>
|
||||
<source>Introduction: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="339"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="353"/>
|
||||
<source>Document</source>
|
||||
<translation>Belge</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="475"/>
|
||||
<source>Preview is not avaliable</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SettingsWidget</name>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="70"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="287"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="520"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="69"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="286"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="519"/>
|
||||
<source>Search</source>
|
||||
<translation>Ara</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="106"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="108"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="105"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="107"/>
|
||||
<source>...</source>
|
||||
<translation>...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="118"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="117"/>
|
||||
<source>Following folders will not be searched. You can set it by adding and removing folders.</source>
|
||||
<translation>Aşağıdaki klasörler aranmayacaktır. Klasör ekleyip kaldırarak ayarlayabilirsiniz.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="127"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="126"/>
|
||||
<source>Add ignored folders</source>
|
||||
<translation>Göz ardı edilen klasörleri ekleyin</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="150"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="149"/>
|
||||
<source>Please select search engine you preferred.</source>
|
||||
<translation>Lütfen tercih ettiğiniz arama motorunu seçin.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="163"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="162"/>
|
||||
<source>baidu</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="165"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="164"/>
|
||||
<source>sougou</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="167"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="166"/>
|
||||
<source>360</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="409"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="408"/>
|
||||
<source>Cancel</source>
|
||||
<translation>İptal</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="348"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="347"/>
|
||||
<source>Creating ...</source>
|
||||
<translation>Oluşturuluyor...</translation>
|
||||
</message>
|
||||
|
@ -222,107 +227,107 @@
|
|||
<translation type="vanished">ukui-bul</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="37"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="36"/>
|
||||
<source>ukui-search-settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="99"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="98"/>
|
||||
<source><h2>Settings</h2></source>
|
||||
<translation><h2>Ayarlar</h2></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="104"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="103"/>
|
||||
<source><h3>Index State</h3></source>
|
||||
<translation><h3>Dizin Durumu</h3></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="116"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="115"/>
|
||||
<source><h3>File Index Settings</h3></source>
|
||||
<translation><h3>Dosya Dizini Ayarları</h3></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="148"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="147"/>
|
||||
<source><h3>Search Engine Settings</h3></source>
|
||||
<translation><h3>SArama Motoru Ayarları</h3></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="287"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="286"/>
|
||||
<source>Whether to delete this directory?</source>
|
||||
<translation>Bu dizini silinsin mi?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="288"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="287"/>
|
||||
<source>Yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="289"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="288"/>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="351"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="350"/>
|
||||
<source>Done</source>
|
||||
<translation>Tamam</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="359"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="358"/>
|
||||
<source>Index Entry: %1</source>
|
||||
<translation>Dizin Girişi: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="403"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="402"/>
|
||||
<source>Directories</source>
|
||||
<translation>Dizinler</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="404"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="403"/>
|
||||
<source>select blocked folder</source>
|
||||
<translation>engellenen klasörü seç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="405"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="404"/>
|
||||
<source>Select</source>
|
||||
<translation>Seç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="406"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="405"/>
|
||||
<source>Position: </source>
|
||||
<translation>Pozisyon: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="407"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="406"/>
|
||||
<source>FileName: </source>
|
||||
<translation>Dosya Adı: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="408"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="407"/>
|
||||
<source>FileType: </source>
|
||||
<translation>Dosya Türü: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="504"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="503"/>
|
||||
<source>Choosen path is Empty!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="508"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="507"/>
|
||||
<source>Choosen path is not in "home"!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="512"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="511"/>
|
||||
<source>Its' parent folder has been blocked!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="516"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="515"/>
|
||||
<source>Set blocked folder failed!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="521"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="520"/>
|
||||
<source>OK</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
|
|
@ -75,12 +75,12 @@
|
|||
<translation>搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/mainwindow.cpp" line="121"/>
|
||||
<location filename="../../src/mainwindow.cpp" line="126"/>
|
||||
<source>Global Search</source>
|
||||
<translation>搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/mainwindow.cpp" line="176"/>
|
||||
<location filename="../../src/mainwindow.cpp" line="188"/>
|
||||
<source>Search</source>
|
||||
<translation>搜索</translation>
|
||||
</message>
|
||||
|
@ -137,148 +137,153 @@
|
|||
<context>
|
||||
<name>SearchDetailView</name>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="494"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="525"/>
|
||||
<source>Path</source>
|
||||
<translation>路径</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="502"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="533"/>
|
||||
<source>Last time modified</source>
|
||||
<translation>上次修改时间</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="220"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="234"/>
|
||||
<source>Application</source>
|
||||
<translation>应用</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="201"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="215"/>
|
||||
<source>Introduction: %1</source>
|
||||
<translation>软件介绍: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="339"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="353"/>
|
||||
<source>Document</source>
|
||||
<translation>文件</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="475"/>
|
||||
<source>Preview is not avaliable</source>
|
||||
<translation>当前预览不可用</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SettingsWidget</name>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="37"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="36"/>
|
||||
<source>ukui-search-settings</source>
|
||||
<translation>搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="70"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="287"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="520"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="69"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="286"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="519"/>
|
||||
<source>Search</source>
|
||||
<translation>搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="99"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="98"/>
|
||||
<source><h2>Settings</h2></source>
|
||||
<translation><h2>设置</h2></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="104"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="103"/>
|
||||
<source><h3>Index State</h3></source>
|
||||
<translation><h3>索引状态</h3></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="106"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="108"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="105"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="107"/>
|
||||
<source>...</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="116"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="115"/>
|
||||
<source><h3>File Index Settings</h3></source>
|
||||
<translation><h3>文件索引设置</h3></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="118"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="117"/>
|
||||
<source>Following folders will not be searched. You can set it by adding and removing folders.</source>
|
||||
<translation>搜索将不再查看以下文件夹。通过增加和删除文件夹可进行文件索引设置。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="127"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="126"/>
|
||||
<source>Add ignored folders</source>
|
||||
<translation>添加文件夹至黑名单</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="148"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="147"/>
|
||||
<source><h3>Search Engine Settings</h3></source>
|
||||
<translation><h3>搜索引擎设置</h3></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="150"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="149"/>
|
||||
<source>Please select search engine you preferred.</source>
|
||||
<translation>设置互联网搜索引擎</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="163"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="162"/>
|
||||
<source>baidu</source>
|
||||
<translation>百度</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="165"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="164"/>
|
||||
<source>sougou</source>
|
||||
<translation>搜狗</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="167"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="166"/>
|
||||
<source>360</source>
|
||||
<translation>360</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="287"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="286"/>
|
||||
<source>Whether to delete this directory?</source>
|
||||
<translation>是否要删除此目录</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="288"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="287"/>
|
||||
<source>Yes</source>
|
||||
<translation>是(Y)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="289"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="288"/>
|
||||
<source>No</source>
|
||||
<translation>否(N)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="409"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="408"/>
|
||||
<source>Cancel</source>
|
||||
<translation>取消</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="504"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="503"/>
|
||||
<source>Choosen path is Empty!</source>
|
||||
<translation>选择的路径不存在!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="508"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="507"/>
|
||||
<source>Choosen path is not in "home"!</source>
|
||||
<translation>请选择家目录下的文件夹!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="512"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="511"/>
|
||||
<source>Its' parent folder has been blocked!</source>
|
||||
<translation>父文件夹已被屏蔽!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="516"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="515"/>
|
||||
<source>Set blocked folder failed!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="521"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="520"/>
|
||||
<source>OK</source>
|
||||
<translation>好的</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="348"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="347"/>
|
||||
<source>Creating ...</source>
|
||||
<translation>正在索引</translation>
|
||||
</message>
|
||||
|
@ -287,42 +292,42 @@
|
|||
<translation type="vanished">搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="351"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="350"/>
|
||||
<source>Done</source>
|
||||
<translation>索引完成</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="359"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="358"/>
|
||||
<source>Index Entry: %1</source>
|
||||
<translation>索引项: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="403"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="402"/>
|
||||
<source>Directories</source>
|
||||
<translation>文件夹</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="404"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="403"/>
|
||||
<source>select blocked folder</source>
|
||||
<translation>选择屏蔽文件夹</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="405"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="404"/>
|
||||
<source>Select</source>
|
||||
<translation>选择</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="406"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="405"/>
|
||||
<source>Position: </source>
|
||||
<translation>位置:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="407"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="406"/>
|
||||
<source>FileName: </source>
|
||||
<translation>名称:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="408"/>
|
||||
<location filename="../../src/settings-widget.cpp" line="407"/>
|
||||
<source>FileType: </source>
|
||||
<translation>类型:</translation>
|
||||
</message>
|
||||
|
|
Loading…
Reference in New Issue