diff --git a/search-ukcc-plugin/search.cpp b/search-ukcc-plugin/search.cpp index c9e4bdb..4ad3a6a 100644 --- a/search-ukcc-plugin/search.cpp +++ b/search-ukcc-plugin/search.cpp @@ -20,6 +20,13 @@ #include "search.h" #include #include +#include + +static const QByteArray UKUI_SEARCH_SCHEMAS = QByteArrayLiteral("org.ukui.search.settings"); +static const QString SEARCH_METHOD_KEY = QStringLiteral("fileIndexEnable"); +static const QString WEB_ENGINE_KEY = QStringLiteral("webEngine"); +static const QString CONTENT_FUZZY_SEARCH_KEY = QStringLiteral("contentFuzzySearch"); +static const QString CONTENT_INDEX_ENABLE_KEY = QStringLiteral("contentIndexEnable"); Search::Search() { @@ -78,14 +85,21 @@ QWidget *Search::pluginUi() if (m_gsettings) { //按钮状态初始化 if (m_gsettings->keys().contains(SEARCH_METHOD_KEY)) { - //当前是否使用索引搜索/暴力搜索 - bool is_index_search_on = m_gsettings->get(SEARCH_METHOD_KEY).toBool(); - m_searchMethodBtn->setChecked(is_index_search_on); - if (is_index_search_on) { + bool fileIndexOn = m_gsettings->get(SEARCH_METHOD_KEY).toBool(); + m_fileIndexBtn->setChecked(fileIndexOn); + } else { + m_fileIndexBtn->setEnabled(false); + } + + if (m_gsettings->keys().contains(CONTENT_INDEX_ENABLE_KEY)) { + //当前是否开启内容索引 + bool isContentIndexOn= m_gsettings->get(CONTENT_INDEX_ENABLE_KEY).toBool(); + m_contentIndexBtn->setChecked(isContentIndexOn); + if (isContentIndexOn) { m_indexSetFrame->show(); } } else { - m_searchMethodBtn->setEnabled(false); + m_contentIndexBtn->setEnabled(false); } if (m_gsettings->keys().contains(WEB_ENGINE_KEY)) { @@ -96,9 +110,9 @@ QWidget *Search::pluginUi() m_webEngineFrame->mCombox->setEnabled(false); } - if (m_gsettings->keys().contains(CONTENT_SEARCH_KEY)) { + if (m_gsettings->keys().contains(CONTENT_FUZZY_SEARCH_KEY)) { //是否为模糊搜索 - bool isFuzzy = m_gsettings->get(CONTENT_SEARCH_KEY).toBool(); + bool isFuzzy = m_gsettings->get(CONTENT_FUZZY_SEARCH_KEY).toBool(); if (isFuzzy) { m_fuzzyBtn->setChecked(true); } else { @@ -111,11 +125,16 @@ QWidget *Search::pluginUi() //监听gsettings值改变,更新控制面板UI connect(m_gsettings, &QGSettings::changed, this, [ = ](const QString &key) { if (key == SEARCH_METHOD_KEY) { - bool isIndexSearchOn = m_gsettings->get(SEARCH_METHOD_KEY).toBool(); - m_searchMethodBtn->blockSignals(true); - m_searchMethodBtn->setChecked(isIndexSearchOn); - m_searchMethodBtn->blockSignals(false); - if (isIndexSearchOn) { + bool isFileIndexOn = m_gsettings->get(SEARCH_METHOD_KEY).toBool(); + m_fileIndexBtn->blockSignals(true); + m_fileIndexBtn->setChecked(isFileIndexOn); + m_fileIndexBtn->blockSignals(false); + } else if (key == CONTENT_INDEX_ENABLE_KEY) { + bool isContentIndexOn = m_gsettings->get(CONTENT_INDEX_ENABLE_KEY).toBool(); + m_contentIndexBtn->blockSignals(true); + m_contentIndexBtn->setChecked(isContentIndexOn); + m_contentIndexBtn->blockSignals(false); + if (isContentIndexOn) { m_indexSetFrame->show(); } else { m_indexSetFrame->hide(); @@ -125,8 +144,8 @@ QWidget *Search::pluginUi() m_webEngineFrame->mCombox->blockSignals(true); m_webEngineFrame->mCombox->setCurrentIndex(m_webEngineFrame->mCombox->findData(engine)); m_webEngineFrame->mCombox->blockSignals(false); - } else if (key == CONTENT_SEARCH_KEY) { - bool isFuzzy = m_gsettings->get(CONTENT_SEARCH_KEY).toBool(); + } else if (key == CONTENT_FUZZY_SEARCH_KEY) { + bool isFuzzy = m_gsettings->get(CONTENT_FUZZY_SEARCH_KEY).toBool(); if (isFuzzy) { m_fuzzyBtn->setChecked(true); } else { @@ -134,15 +153,21 @@ QWidget *Search::pluginUi() } } }); - connect(m_searchMethodBtn, &kdk::KSwitchButton::stateChanged, this, [ = ](bool checked) { + + connect(m_fileIndexBtn, &kdk::KSwitchButton::stateChanged, this, [ = ](bool checked) { if (m_gsettings && m_gsettings->keys().contains(SEARCH_METHOD_KEY)) { m_gsettings->set(SEARCH_METHOD_KEY, checked); } }); + connect(m_contentIndexBtn, &kdk::KSwitchButton::stateChanged, this, [ = ](bool checked) { + if (m_gsettings && m_gsettings->keys().contains(CONTENT_INDEX_ENABLE_KEY)) { + m_gsettings->set(CONTENT_INDEX_ENABLE_KEY, checked); + } + }); connect(m_indexMethodBtnGroup, QOverload::of(&QButtonGroup::buttonToggled),[ = ](int id, bool checked) { if (id == -3) {//fuzzyBtn's id - if (m_gsettings && m_gsettings->keys().contains(CONTENT_SEARCH_KEY)) { - m_gsettings->set(CONTENT_SEARCH_KEY, checked); + if (m_gsettings && m_gsettings->keys().contains(CONTENT_FUZZY_SEARCH_KEY)) { + m_gsettings->set(CONTENT_FUZZY_SEARCH_KEY, checked); } } }); @@ -153,7 +178,7 @@ QWidget *Search::pluginUi() }); } else { qCritical() << "Gsettings of the search plugin for ukcc is not initialized!"; - m_searchMethodBtn->setEnabled(false); + m_contentIndexBtn->setEnabled(false); m_webEngineFrame->mCombox->setEnabled(false); } @@ -211,7 +236,31 @@ void Search::initUi() m_webEngineFrame->mCombox->insertItem(2, QIcon("/usr/share/ukui-search/search-ukcc-plugin/image/360.svg"), tr("360"), "360"); m_mainLyt->addWidget(m_webEngineFrame); - //设置索引部分的ui + //设置索引开关 + m_indexTitleLabel = new TitleLabel(m_pluginWidget); + //~ contents_path /Search/Create index + m_indexTitleLabel->setText(tr("Create index")); + m_mainLyt->addSpacing(32); + m_mainLyt->addWidget(m_indexTitleLabel); + + m_fileIndexFrame = new QFrame(m_pluginWidget); + m_fileIndexFrame->setFrameShape(QFrame::Shape::Box); + m_fileIndexFrame->setFixedHeight(64); + m_fileIndexLyt = new QHBoxLayout(m_fileIndexFrame); + m_fileIndexLyt->setContentsMargins(16, 20, 16, 20); + m_fileIndexFrame->setLayout(m_fileIndexLyt); + + m_fileIndexLabel = new QLabel(m_fileIndexFrame); + //~ contents_path /Search/Create file index + m_fileIndexLabel->setText(tr("Create file index")); + m_fileIndexLabel->setContentsMargins(0, 0, 0, 0); + m_fileIndexBtn = new kdk::KSwitchButton(m_fileIndexFrame); + m_fileIndexLyt->addWidget(m_fileIndexLabel); + m_fileIndexLyt->addStretch(); + m_fileIndexLyt->addWidget(m_fileIndexBtn); + m_mainLyt->addWidget(m_fileIndexFrame); + + //设置内容索引部分的ui m_setFrame = new QFrame(m_pluginWidget); m_setFrame->setFrameShape(QFrame::Shape::Box); m_setFrameLyt = new QVBoxLayout(m_setFrame); @@ -219,58 +268,50 @@ void Search::initUi() m_setFrameLyt->setSpacing(0); //索引开关UI - m_searchMethodFrame = new QFrame(m_setFrame); - m_searchMethodFrame->setMinimumWidth(550); - m_searchMethodLyt = new QHBoxLayout(m_searchMethodFrame); - m_searchMethodLyt->setContentsMargins(16, 18, 16, 21); - m_searchMethodFrame->setLayout(m_searchMethodLyt); + m_contentIndexFrame = new QFrame(m_setFrame); + m_contentIndexFrame->setMinimumWidth(550); + m_contentIndexFrame->setFixedHeight(64); + m_contentIndexLyt = new QHBoxLayout(m_contentIndexFrame); + m_contentIndexLyt->setContentsMargins(16, 20, 16, 20); + m_contentIndexFrame->setLayout(m_contentIndexLyt); - m_descFrame = new QFrame(m_searchMethodFrame); - m_descFrameLyt = new QVBoxLayout(m_descFrame); - m_descFrameLyt->setContentsMargins(0, 0, 0, 0); - m_descFrame->setLayout(m_descFrameLyt); - m_descLabel1 = new QLabel(m_descFrame); - m_descLabel2 = new QLabel(m_descFrame); - - //~ contents_path /Search/Create index - m_descLabel1->setText(tr("Create index")); - m_descLabel2->setText(tr("Creating index can help you getting results quickly.")); - m_descLabel2->setEnabled(false); - m_descFrameLyt->addWidget(m_descLabel1); - m_descFrameLyt->addWidget(m_descLabel2); - m_searchMethodBtn = new kdk::KSwitchButton(m_searchMethodFrame); - m_searchMethodLyt->addWidget(m_descFrame); - m_searchMethodLyt->addStretch(); - m_searchMethodLyt->addWidget(m_searchMethodBtn); + m_contentIndexLabel = new QLabel(m_contentIndexFrame); + //~ contents_path /Search/Create file content index + m_contentIndexLabel->setText(tr("Create file content index")); + m_contentIndexLabel->setContentsMargins(0, 0, 0, 0); + m_contentIndexBtn = new kdk::KSwitchButton(m_contentIndexFrame); + m_contentIndexLyt->addWidget(m_contentIndexLabel); + m_contentIndexLyt->addStretch(); + m_contentIndexLyt->addWidget(m_contentIndexBtn); m_indexSetFrame = new QFrame(m_setFrame); + m_indexSetFrame->setFixedHeight(104); m_indexSetLyt = new QVBoxLayout(m_indexSetFrame); - m_indexSetLyt->setContentsMargins(0, 0, 0, 0); + m_indexSetLyt->setContentsMargins(8, 0, 16, 0);//radiobutton本身左边有8间距 m_indexSetLyt->setSpacing(0); //分隔线 QFrame *line = new QFrame(m_indexSetFrame); line->setFixedHeight(1); + line->setContentsMargins(8, 0, 0, 0);// 为了与radiobutton平齐也设置8间距 line->setLineWidth(0); line->setFrameShape(QFrame::HLine); line->setFrameShadow(QFrame::Sunken); //设置索引模式的ui m_indexMethodFrame = new QFrame(m_indexSetFrame); + m_indexMethodFrame->setFixedHeight(103); m_indexMethodLyt = new QVBoxLayout(m_indexMethodFrame); - m_indexMethodLyt->setContentsMargins(8, 16, 0, 0);//radiobutton本身左边有8间距 + m_indexMethodLyt->setContentsMargins(0, 0, 0, 0); m_indexMethodFrame->setLayout(m_indexMethodLyt); - m_indexMethodDescLabel = new QLabel(m_indexMethodFrame); - m_indexMethodDescLabel->setContentsMargins(8, 0, 0, 0); - //~ contents_path /Search/File Content Search - m_indexMethodDescLabel->setText(tr("File Content Search")); - m_preciseBtnFrame = new QFrame(m_indexMethodFrame); + m_preciseBtnFrame->setFixedHeight(50); m_preciseBtnLyt = new QHBoxLayout(m_preciseBtnFrame); m_preciseBtnFrame->setLayout(m_preciseBtnLyt); m_preciseBtn = new QRadioButton(tr("Precise Search"), m_indexMethodFrame); m_preciseDescLabel = new QLabel(m_indexMethodFrame); + m_preciseDescLabel->setContentsMargins(0, 0, 0, 0); m_preciseDescLabel->setText(tr("show the results that exactly match the keyword")); m_preciseDescLabel->setEnabled(false); m_preciseBtnLyt->addWidget(m_preciseBtn); @@ -278,10 +319,12 @@ void Search::initUi() m_preciseBtnLyt->addStretch(); m_fuzzyBtnFrame = new QFrame(m_indexMethodFrame); + m_fuzzyBtnFrame->setFixedHeight(53); m_fuzzyBtnLyt = new QHBoxLayout(m_fuzzyBtnFrame); m_fuzzyBtnFrame->setLayout(m_fuzzyBtnLyt); m_fuzzyBtn = new QRadioButton(tr("Fuzzy Search"), m_indexMethodFrame); m_fuzzyDescLabel = new QLabel(m_indexMethodFrame); + m_fuzzyDescLabel->setContentsMargins(0, 0, 0, 0); m_fuzzyDescLabel->setText(tr("show more results that match the keyword")); m_fuzzyDescLabel->setEnabled(false); m_fuzzyBtnLyt->addWidget(m_fuzzyBtn); @@ -293,14 +336,14 @@ void Search::initUi() m_indexMethodBtnGroup->addButton(m_fuzzyBtn); m_indexMethodBtnGroup->setExclusive(true); - m_indexMethodLyt->addWidget(m_indexMethodDescLabel); m_indexMethodLyt->addWidget(m_preciseBtnFrame); m_indexMethodLyt->addWidget(m_fuzzyBtnFrame); + m_indexMethodLyt->addSpacing(24); m_indexSetLyt->addWidget(line); m_indexSetLyt->addWidget(m_indexMethodFrame); - m_setFrameLyt->addWidget(m_searchMethodFrame); + m_setFrameLyt->addWidget(m_contentIndexFrame); m_setFrameLyt->addWidget(m_indexSetFrame); m_indexSetFrame->hide();//默认隐藏,根据是否开索引来初始化 @@ -361,46 +404,10 @@ void Search::initUi() m_addBlockDirFrame->setFrameShape(QFrame::Shape::NoFrame); m_addBlockDirFrame->setFixedHeight(60); -// m_addBlockDirWidget = new QPushButton(m_addBlockDirFrame); m_addBlockDirWidget = new AddBtn(m_addBlockDirFrame); -// m_addBlockDirWidget->setFixedHeight(60); - -// m_addBlockDirWidget->setObjectName("addBlockDirWidget"); -// QPalette pal; -// QBrush brush = pal.highlight(); //获取window的色值 -// QColor highLightColor = brush.color(); -// QString stringColor = QString("rgba(%1,%2,%3)") //叠加20%白色 -// .arg(highLightColor.red()*0.8 + 255*0.2) -// .arg(highLightColor.green()*0.8 + 255*0.2) -// .arg(highLightColor.blue()*0.8 + 255*0.2); - -// m_addBlockDirWidget->setStyleSheet(QString("HoverWidget#addBlockDirWidget{background: palette(button);\ -// border-radius: 4px;}\ -// HoverWidget:hover:!pressed#addBlockDirWidget{background: %1; \ -// border-radius: 4px;}").arg(stringColor)); - - //之前自己写的添加按钮,目前方案用控制面板提供的AddBtn,后面有变动再放出来(属性全都注掉了,有问题找ukcc寻求帮助) -// m_addBlockDirWidget->setProperty("useButtonPalette", true); -//// m_addBlockDirWidget->setStyleSheet("QPushButton:!checked{background: palette(base);}"); -// m_addBlockDirWidget->setFlat(true); - -// m_addBlockDirIcon = new QLabel(m_addBlockDirWidget); -// m_addBlockDirIcon->setPixmap(QIcon("/usr/share/ukui-search/search-ukcc-plugin/image/add.svg").pixmap(12, 12)); -// m_addBlockDirIcon->setProperty("useIconHighlightEffect", true); -// m_addBlockDirIcon->setProperty("iconHighlightEffectMode", 1); - -// m_addBlockDirLabel = new QLabel(m_addBlockDirWidget); -// m_addBlockDirLabel->setText(tr("Choose folder")); - -// m_addBlockDirLyt = new QHBoxLayout(m_addBlockDirWidget); -// m_addBlockDirWidget->setLayout(m_addBlockDirLyt); m_blockDirsLyt->addWidget(m_addBlockDirWidget); -// m_addBlockDirLyt->addStretch(); -// m_addBlockDirLyt->addWidget(m_addBlockDirIcon); -// m_addBlockDirLyt->addWidget(m_addBlockDirLabel); -// m_addBlockDirLyt->addStretch(); m_mainLyt->addSpacing(32); m_mainLyt->addWidget(m_blockDirTitleLabel); m_mainLyt->addWidget(m_blockDirDescLabel); diff --git a/search-ukcc-plugin/search.h b/search-ukcc-plugin/search.h index 56e9d5c..d251e75 100644 --- a/search-ukcc-plugin/search.h +++ b/search-ukcc-plugin/search.h @@ -47,10 +47,6 @@ #include #include -#define UKUI_SEARCH_SCHEMAS "org.ukui.search.settings" -#define SEARCH_METHOD_KEY "fileIndexEnable" -#define WEB_ENGINE_KEY "webEngine" -#define CONTENT_SEARCH_KEY "contentFuzzySearch" //TODO #define CONFIG_FILE "/.config/org.ukui/ukui-search/ukui-search-block-dirs.conf" @@ -105,18 +101,21 @@ private: ComboxFrame * m_webEngineFrame = nullptr; QVBoxLayout * m_webEngineLyt = nullptr; - //索引详细设置 + //索引开关设置 + TitleLabel *m_indexTitleLabel = nullptr; + QFrame *m_fileIndexFrame = nullptr; + QHBoxLayout *m_fileIndexLyt = nullptr; + QLabel *m_fileIndexLabel = nullptr; + kdk::KSwitchButton *m_fileIndexBtn = nullptr; + + //内容索引开关设置 QFrame *m_setFrame = nullptr; QVBoxLayout *m_setFrameLyt = nullptr; - //索引开关 - QFrame *m_descFrame = nullptr; - QVBoxLayout *m_descFrameLyt = nullptr; - QLabel *m_descLabel1 = nullptr; - QLabel *m_descLabel2 = nullptr; - QFrame *m_searchMethodFrame = nullptr; - QHBoxLayout *m_searchMethodLyt = nullptr; + QLabel *m_contentIndexLabel = nullptr; + QFrame *m_contentIndexFrame = nullptr; + QHBoxLayout *m_contentIndexLyt = nullptr; // QLabel *m_searchMethodLabel = nullptr; - kdk::KSwitchButton *m_searchMethodBtn = nullptr; + kdk::KSwitchButton *m_contentIndexBtn = nullptr; //设置索引搜索模式 QFrame *m_indexSetFrame = nullptr; QVBoxLayout *m_indexSetLyt = nullptr; diff --git a/search-ukcc-plugin/translations/bo_CN.ts b/search-ukcc-plugin/translations/bo_CN.ts index 2d7c69c..d86e477 100644 --- a/search-ukcc-plugin/translations/bo_CN.ts +++ b/search-ukcc-plugin/translations/bo_CN.ts @@ -4,52 +4,51 @@ Search - - + + Search འཚོལ་ཞིབ། /Search/Search - + Create index གསར་འཛུགས་འཚོལ་ཞིབ་བྱེད་པར་ཁྲིད་སྟོན། /Search/Create index - Creating index can help you getting results quickly. - སྟོན་གྲངས་གསར་སྐྲུན་བྱས་ན་ཁྱོད་ལ་མགྱོགས་མྱུར་ངང་གྲུབ་འབྲས་ཐོབ་པར་རོགས་རམ་བྱེད་ཐུབ། + སྟོན་གྲངས་གསར་སྐྲུན་བྱས་ན་ཁྱོད་ལ་མགྱོགས་མྱུར་ངང་གྲུབ་འབྲས་ཐོབ་པར་རོགས་རམ་བྱེད་ཐུབ། - + Default web searching engine ཁོག་གི་དྲ་ཤོག་གཏོད་པ་བཤེར་འཚོལ་རིགས་དབྱིབས། /Search/Default web searching engine - + baidu པའེ་ཏུའུ། - + sougou སོའོ་གོའུ། - + 360 360 - + Block Folders ལྐོག་བཀོད་མིང་ཐོ། /Search/Block Folders - + Following folders will not be searched. You can set it by adding and removing folders. གཤམ་གྱི་ཡིག་སྣོད་འཚོལ་བཤེར་མི་བྱེད། ཡིག་སྣོད་གསར་སྣོན་དང་གསུབ་འཕྲི་བྱས་ཚེ་ཡིག་ཆའི་དཀར་ཆག་སྒྲིག་འགོད་བྱ་ཐུབ། @@ -58,112 +57,123 @@ བསལ་འདེམས་ཀྱི་དཀར་ཆག། - - + + delete བསུབ་པ། - - + + Directories དཀར་ཆག - File Content Search - ཡིག་ཆའི་ནང་དོན་བཤེར་འཚོལ། + ཡིག་ཆའི་ནང་དོན་བཤེར་འཚོལ། /Search/File Content Search - + show more results that match the keyword ངེས་མངོན་པ་དེ་བས་མང་བ་དང་ནང་འདྲེན་བྱེད་པའི་ནང་དོན་གཉིས་དོ་མཉམ་པའི་འཚོལ་ཞིབ་བྱས་པའི་འབྲས་བུ། - + Fuzzy Search རབ་རིབ་བཤེར་འཚོལ - + + Create file index + ཡིག་ཆའི་མིང་གི་སྟོན་གྲངས་གསར་སྐྲུན་བྱེད་པ། + /Search/Create file index + + + + Create file content index + ཡིག་ཆའི་ནང་དོན་སྟོན་གྲངས་གསར་སྐྲུན་བྱེད་པ། + /Search/Create file content index + + + Precise Search གནད་ལ་འཁེལ་བའི་བཤེར་འཚོལ - + show the results that exactly match the keyword ཕྱིར་མངོན་པ་དང་ནང་འཇུག་གི་ནང་དོན་ཡོངས་སུ་མཐུན་པའི་འཚོལ་ཞིབ་ཀྱི་མཇུག་འབྲས - + Search Folders བཤེར་འཚོལ་གྱི་ཁྱབ་ཁོངས། /Search/Search Folders - + Following folders will be searched. You can set it by adding and removing folders. གཤམ་གྱི་ཡིག་ཆ་འཚོལ་བཤེར་བྱེད་སྲིད།ཁྱོད་ཀྱིས་ཡིག་ཆའི་སྒམ་ནང་འཇུག་དང་མེད་པར་བཟོས་ནས་འཚོལ་བཤེར་གྱི་ཁྱབ་ཁོངས་བཀོད་སྒྲིག་བྱེད་ཆོག - + select blocked folder བཀག་སྡོམ་བྱས་པའི་ཡིག་སྣོད་གདམ་གསེས - - + + Select བདམས་ཐོན་བྱུང་བ། - - + + Position: གོ་གནས་ནི། - - + + FileName: ཡིག་ཆའི་མིང་ནི། - - + + FileType: ཡིག་ཆའི་རིགས་དབྱིབས་ནི། - - + + Cancel ཕྱིར་འཐེན། + - - - - - - - - + + + + + + + Warning ཐ་ཚིག་སྒྲོག་པ། - - + + Add search folder failed, hidden path is not supported! ཡིག་ཆའི་སྒམ་དེ་མིང་ཐོ་ནག་པོའི་ནང་དུ་འཇོག་མི་རུང་།རྒྱུ་མཚན་ནི་སྦས་ཡོད་པའི་ཡིག་ཆའི་སྒམ་འཇོག་མི་རུང་། - + Add search folder failed, permission denied! ཡིག་ཆའི་སྒམ་དེ་མིང་ཐོ་ནག་པོའི་ནང་དུ་འཇོག་མི་རུང་།རྒྱུ་མཚན་ནི་ལྟ་སྤྱོད་བྱེད་པའི་དབང་ཆ་མེད་པའི་ཡིག་ཆའི་སྒམ་ཁ་སྣོན་བྱེད་མི་ཐུབ། @@ -176,47 +186,47 @@ སྦྱོར་རྟ་ལྐོག་བཀོད་མིང་ཐོ་ཕམ་ཁ་བསལ་འདེམས་ཀྱི་དཀར་ཆག་མི་ཁྱིམ་དཀར་ཆག་འོག། - + Add blocked folder failed, its parent dir has been added! སྦྱོར་རྟ་ལྐོག་བཀོད་མིང་ཐོ་ཕམ་ཁ་བསལ་འདེམས་ཀྱི་དཀར་ཆག་ནི་ལྐོག་བཀོད་མིང་ཐོ་འི་ཁྲོད་ཀྱི་དཀར་ཆག་འོག - + Add blocked folder failed, choosen path is not exist! ཡིག་ཆའི་སྒམ་དེ་མིང་ཐོ་ནག་པོའི་ནང་དུ་འཇོག་མི་རུང་།རྒྱུ་མཚན་ནི་མི་གནས་པའི་ཡིག་ཆའི་སྒམ་འཇོག་མི་རུང་། - + Add blocked folder failed, it has already been blocked! སྦྱོར་རྟ་ལྐོག་བཀོད་མིང་ཐོ་ཕམ་ཁ་བསལ་འདེམས་ཀྱི་དཀར་ཆག་ནི་ལྐོག་བཀོད་མིང་ཐོ་འི་ཁྲོད་ཀྱི་དཀར་ཆག་འོག - + select search folder འཚོལ་ཞིབ་བྱེད་དགོས་པའི་དཀར་ཆག་འདེམས་དགོས། - + Add search folder failed, choosen path is not supported currently! ཡིག་ཆའི་སྒམ་དེ་འཚོལ་བཤེར་གྱི་ཁྱབ་ཁོངས་སུ་འཇོག་མི་རུང་།རྒྱུ་མཚན་ནི་མིག་སྔར་ད་དུང་རྒྱབ་སྐྱོར་མི་བྱེད་པའི་ཡིག་ཆའི་སྒམ་ཁ་སྣོན་བྱེད་མི་རུང་། - + Add search folder failed, another path which is in the same device has been added! ཡིག་ཁུག་འཚོལ་བཤེར་ཁྱབ་ཁོངས་སུ་ཁ་སྣོན་བྱེད་མི་ཆོགགང་ལགས་ཤེ་ན།སྒྲིག་ཆས་འོག་གི་ཡིག་ཁུག་ཅིག་ཁ་སྣོན་བྱས་ཡོད་པས་རེད། - + Add search folder failed, choosen path or its parent dir has been added! ཡིག་ཆ་འཚོལ་བཤེར་གྱི་ཁྱབ་ཁོངས་སུ་འཇོག་མི་རུང་།རྒྱུ་མཚན་ནི་དེའི་ཨ་ཕའི་ཡིག་ཆ་འཚོལ་བཤེར་གྱི་ཁྱབ་ཁོངས་སུ་ཁ་སྣོན་བྱས་ཡོད། - + Add search folder failed, choosen path is in repeat mounted devices and another path which is in the same device has been added! ཡིག་ཆའི་སྒམ་དེ་འཚོལ་བཤེར་གྱི་ཁྱབ་ཁོངས་སུ་འཇོག་མི་རུང་།རྒྱུ་མཚན་ནི་དེ་ནི་བསྐྱར་ཟློས་ཀྱི་སྒྲིག་ཆས་འོག་གི་ཡིག་ཆའི་སྒམ་ཡིན་པར་མ་ཟད།སྒྲིག་ཆས་འདིའི་འོག་གི་ཡིག་ཆའི་སྒམ་ཁ་སྣོན་བྱས་ཡོད། - + Add search folder failed, choosen path is not exists! ཡིག་ཆའི་སྒམ་དེ་འཚོལ་བཤེར་གྱི་ཁྱབ་ཁོངས་སུ་འཇོག་མི་རུང་།རྒྱུ་མཚན་ནི་མི་གནས་པའི་ཡིག་ཆའི་སྒམ་ཁ་སྣོན་བྱེད་མི་རུང་། diff --git a/search-ukcc-plugin/translations/en_US.ts b/search-ukcc-plugin/translations/en_US.ts index c70c74c..13c0867 100644 --- a/search-ukcc-plugin/translations/en_US.ts +++ b/search-ukcc-plugin/translations/en_US.ts @@ -4,207 +4,213 @@ Search - - + + Search Search /Search/Search - + Default web searching engine Default web searching engine /Search/Default web searching engine - + baidu - + sougou - + 360 - + Create index Create index /Search/Create index - - Creating index can help you getting results quickly. - - - - File Content Search - File Content Search + File Content Search /Search/File Content Search - + Precise Search - + show the results that exactly match the keyword - + Fuzzy Search - + show more results that match the keyword - + Search Folders Search Folders /Search/Search Folders - + Following folders will be searched. You can set it by adding and removing folders. - + Block Folders Block Folders /Search/Block Folders - + Following folders will not be searched. You can set it by adding and removing folders. + + + + Directories + + + + + select blocked folder + + + + + + Select + + + + + + Position: + + - Directories + FileName: - select blocked folder + + FileType: - Select - - - - - - Position: - - - - - - FileName: - - - - - - FileType: - - - - - Cancel + - - - - - - - - + + + + + + + Warning - + Add blocked folder failed, its parent dir has been added! - + Add blocked folder failed, choosen path is not exist! - + Add blocked folder failed, choosen path is not exist! - + Add blocked folder failed, it has already been blocked! - + select search folder - + Add search folder failed, choosen path or its parent dir has been added! - + Add search folder failed, choosen path is not supported currently! - + Add search folder failed, choosen path is in repeat mounted devices and another path which is in the same device has been added! - + Add search folder failed, another path which is in the same device has been added! - + Add search folder failed, choosen path is not exists! - - + + Add search folder failed, hidden path is not supported! - + Add search folder failed, hidden path is not supported! - + + Create file index + Create file index + /Search/Create file index + + + + Create file content index + Create file content index + /Search/Create file content index + + + Add search folder failed, permission denied! - + Add search folder failed, permission denied! - - + + delete diff --git a/search-ukcc-plugin/translations/mn.ts b/search-ukcc-plugin/translations/mn.ts index 8b8da50..fdabd9f 100644 --- a/search-ukcc-plugin/translations/mn.ts +++ b/search-ukcc-plugin/translations/mn.ts @@ -4,52 +4,63 @@ Search - - + + Search ᠪᠦᠬᠦ᠌ ᠪᠠᠢᠳᠠᠯ᠎ᠤᠨ ᠬᠠᠢᠯᠳᠠ /Search/Search - + Create index ᠬᠡᠯᠬᠢᠶᠡᠰᠦ ᠪᠠᠢᠭᠤᠯᠬᠤ /Search/Create index - Creating index can help you getting results quickly. - ᠡᠬᠢᠯᠡᠬᠦᠯᠦᠭᠰᠡᠨ᠎ᠦ ᠳᠠᠷᠠᠭ᠎ᠠ ᠬᠠᠢᠯᠲᠠ᠎ᠶᠢᠨ ᠦᠷ᠎ᠡ ᠳ᠋ᠦᠩ᠎ᠢ ᠬᠤᠷᠳᠤᠨ ᠤᠯᠵᠤ ᠪᠤᠯᠤᠨ᠎ᠠ ᠃ + ᠡᠬᠢᠯᠡᠬᠦᠯᠦᠭᠰᠡᠨ᠎ᠦ ᠳᠠᠷᠠᠭ᠎ᠠ ᠬᠠᠢᠯᠲᠠ᠎ᠶᠢᠨ ᠦᠷ᠎ᠡ ᠳ᠋ᠦᠩ᠎ᠢ ᠬᠤᠷᠳᠤᠨ ᠤᠯᠵᠤ ᠪᠤᠯᠤᠨ᠎ᠠ ᠃ - + Default web searching engine ᠠᠶᠠᠳᠠᠯ ᠢᠨᠲᠸᠷᠨ᠋ᠸᠲ᠎ᠦᠨ ᠡᠷᠢᠯᠳᠡ ᠬᠦᠳᠡᠯᠬᠡᠬᠦᠷ /Search/Default web searching engine - + baidu ᠪᠠᠢ ᠳ᠋ᠦ᠋ - + sougou ᠰᠸᠤ ᠭᠸᠦ - + 360 360 - + + Create file index + ᠪᠢᠴᠢᠭ ᠮᠠᠲ᠋ᠧᠷᠢᠶᠠᠯ ᠤᠨ ᠨᠡᠷ᠎ᠡ ᠶᠢᠨ ᠰᠦᠪᠡᠭᠴᠢ ᠶᠢ ᠡᠭᠦᠳᠦᠨ ᠪᠠᠶᠢᠭᠤᠯᠬᠤ ᠬᠡᠷᠡᠭᠲᠡᠶ᠃ + /Search/Create file index + + + + Create file content index + ᠪᠢᠴᠢᠭ ᠮᠠᠲ᠋ᠧᠷᠢᠶᠠᠯ ᠤᠨ ᠠᠭᠤᠯᠭ᠎ᠠ ᠶᠢᠨ ᠰᠦᠪᠡᠭᠴᠢ ᠶᠢ ᠡᠭᠦᠳᠦᠨ ᠪᠠᠶᠢᠭᠤᠯᠬᠤ ᠬᠡᠷᠡᠭᠲᠡᠶ᠃ + /Search/Create file content index + + + Block Folders ᠢᠯᠭᠠᠵᠤ ᠭᠠᠷᠭᠠᠭᠰᠠᠨ ᠴᠤᠮᠤᠭ /Search/Block Folders - + Following folders will not be searched. You can set it by adding and removing folders. ᠬᠠᠢᠯᠲᠠ᠎ᠪᠠᠷ ᠳᠠᠷᠠᠭᠠᠬᠢ ᠴᠤᠮᠤᠭ᠎ᠢ ᠪᠠᠢᠴᠠᠭᠠᠵᠤ ᠦᠵᠡᠬᠦ᠌ ᠦᠬᠡᠢ ᠂ ᠨᠡᠮᠡᠬᠦ᠌ ᠪᠤᠶᠤ ᠬᠠᠰᠤᠬᠤ᠎ᠪᠠᠷ ᠳᠠᠮᠵᠢᠭᠤᠯᠤᠨ ᠢᠯᠭᠠᠵᠤ ᠭᠠᠷᠭᠠᠭᠰᠠᠨ ᠴᠤᠮᠤᠭ᠎ᠤᠨ ᠪᠠᠢᠷᠢ᠎ᠶᠢ ᠳᠤᠬᠢᠷᠠᠭᠤᠯᠵᠤ ᠪᠤᠯᠤᠨ᠎ᠠ ᠃ @@ -58,157 +69,156 @@ ᠨᠡᠮᠡᠬᠦ᠌ - - + + delete ᠬᠠᠰᠤᠬᠤ - - + + Directories ᠴᠤᠮᠤᠭ - File Content Search - ᠪᠢᠴᠢᠭ᠌ ᠮᠠᠲ᠋ᠧᠷᠢᠶᠠᠯ ᠤᠨ ᠠᠭᠤᠯᠭ᠎ᠠ ᠡᠷᠢᠬᠦ + ᠪᠢᠴᠢᠭ᠌ ᠮᠠᠲ᠋ᠧᠷᠢᠶᠠᠯ ᠤᠨ ᠠᠭᠤᠯᠭ᠎ᠠ ᠡᠷᠢᠬᠦ /Search/File Content Search - + Precise Search ᠣᠨᠣᠪᠴᠢᠲᠠᠢ ᠡᠷᠢᠬᠦ - + show the results that exactly match the keyword ᠵᠠᠩᠭᠢᠯᠠᠭ᠎ᠠ ᠶᠢᠨ ᠦᠰᠦᠭ ᠲᠡᠢ ᠪᠦᠷᠢᠮᠦᠰᠦᠨ ᠲᠣᠬᠢᠷᠠᠯᠴᠠᠭᠰᠠᠨ ᠦᠷ᠎ᠡ ᠳ᠋ᠦᠩ ᠢ ᠢᠯᠡᠷᠡᠭᠦᠯᠵᠡᠢ - + Fuzzy Search ᠪᠠᠯᠠᠷᠬᠠᠢ ᠡᠷᠢᠬᠦ - + show more results that match the keyword ᠨᠡᠩ ᠠᠷᠪᠢᠨ ᠵᠠᠩᠭᠢᠯᠠᠭ᠎ᠠ ᠶᠢᠨ ᠦᠰᠦᠭ ᠲᠡᠢ ᠲᠣᠬᠢᠷᠠᠯᠴᠠᠭᠰᠠᠨ ᠦᠷ᠎ᠡ ᠳ᠋ᠦᠩ ᠢ ᠢᠯᠡᠷᠡᠭᠦᠯᠵᠡᠢ - + Search Folders ᠡᠷᠢᠬᠦ ᠭᠠᠷᠴᠠᠭ /Search/Search Folders - + Following folders will be searched. You can set it by adding and removing folders. ᠳᠣᠣᠷᠠᠬᠢ ᠭᠠᠷᠴᠠᠭ ᠢ ᠡᠷᠢᠨ᠎ᠡ ᠃ ᠲᠠ ᠭᠠᠷᠴᠠᠭ ᠢᠶᠠᠷ ᠳᠠᠮᠵᠢᠨ ᠡᠷᠢᠬᠦ ᠬᠡᠪᠴᠢᠶ᠎ᠡ ᠶᠢ ᠵᠢᠭᠠᠨ ᠲᠣᠭᠲᠠᠭᠠᠵᠤ ᠪᠣᠯᠣᠨ᠎ᠠ᠃ - + select blocked folder ᠢᠯᠭᠠᠵᠤ ᠭᠠᠷᠭᠠᠭᠰᠠᠨ ᠴᠤᠮᠤᠭ᠎ᠢ ᠰᠤᠩᠭᠤᠬᠤ - - + + Select ᠰᠤᠩᠭᠤᠬᠤ - - + + Position: ᠪᠠᠢᠷᠢ ᠄ - - + + FileName: ᠹᠠᠢᠯ᠎ᠤᠨ ᠨᠡᠷ᠎ᠡ ᠄ - - + + FileType: ᠬᠡᠯᠪᠡᠷᠢ ᠮᠠᠶᠢᠭ - - + + Cancel ᠦᠬᠡᠢᠰᠭᠡᠬᠦ᠌ + - - - - - - - - + + + + + + + Warning ᠰᠡᠷᠡᠮᠵᠢᠯᠡᠬᠦᠯᠬᠦ᠌ - + Add blocked folder failed, its parent dir has been added! ᠡᠨᠡ ᠭᠠᠷᠴᠠᠭ ᠢ ᠨᠡᠮᠡᠵᠦ ᠳᠡᠶᠢᠯᠬᠦ ᠦᠭᠡᠢ ᠂ ᠲᠡᠭᠦᠨ ᠦ ᠡᠴᠢᠭᠡ ᠶᠢᠨ ᠭᠠᠷᠴᠠᠭ ᠨᠢᠭᠡᠨᠲᠡ ᠨᠡᠮᠡᠭ᠍ᠳᠡᠵᠡᠢ ! - + Add blocked folder failed, choosen path is not exist! ᠭᠠᠷᠴᠠᠭ ᠨᠡᠮᠡᠵᠦ ᠳᠡᠶᠢᠯᠬᠦ ᠦᠭᠡᠢ ᠂ ᠡᠨᠡ ᠭᠠᠷᠴᠠᠭ ᠣᠷᠣᠰᠢᠬᠤ ᠦᠭᠡᠢ ! - + Add blocked folder failed, it has already been blocked! ᠭᠠᠷᠴᠠᠭ ᠨᠡᠮᠡᠵᠦ ᠳᠡᠶᠢᠯᠬᠦ ᠦᠭᠡᠢ ᠂ ᠡᠨᠡ ᠭᠠᠷᠴᠠᠭ ᠨᠢᠭᠡᠨᠲᠡ ᠨᠡᠮᠡᠭ᠍ᠳᠡᠵᠡᠢ ! - - + + Add search folder failed, hidden path is not supported! ᠭᠠᠷᠴᠠᠭ ᠨᠡᠮᠡᠬᠦ ᠶᠢᠨ ᠠᠷᠭ᠎ᠠ ᠦᠭᠡᠢ ᠂ ᠨᠢᠭᠤᠴᠠ ᠭᠠᠷᠴᠠᠭ ᠢ ᠳᠡᠮᠵᠢᠬᠦ ᠦᠭᠡᠢ ! - + select search folder ᠡᠷᠢᠬᠦ ᠭᠠᠷᠴᠠᠭ ᠢ ᠰᠣᠩᠭᠣᠨ᠎ᠠ - + Add search folder failed, choosen path or its parent dir has been added! ᠡᠷᠢᠬᠦ ᠪᠢᠴᠢᠭ᠌ ᠮᠠᠲ᠋ᠧᠷᠢᠶᠠᠯ ᠢ ᠨᠡᠮᠡᠵᠦ ᠢᠯᠠᠭᠳᠠᠵᠠᠢ ᠂ ᠨᠢᠭᠡᠨᠲᠡ ᠰᠤᠩᠭ᠋ᠤᠬᠤ ᠵᠠᠮ ᠪᠤᠶᠤ ᠲᠡᠭᠦᠨ ᠦ ᠡᠴᠢᠭᠡ ᠶᠢᠨ ᠭᠠᠷᠴᠠᠭ ᠨᠡᠮᠡᠵᠡᠢ ! - + Add search folder failed, choosen path is not supported currently! ᠡᠷᠢᠬᠦ ᠭᠠᠷᠴᠠᠭ ᠢ ᠨᠡᠮᠡᠵᠦ ᠢᠯᠠᠭᠳᠠᠵᠠᠢ ᠂ ᠣᠳᠣᠬᠠᠨ ᠳᠤ ᠡᠨᠡ ᠭᠠᠷᠴᠠᠭ ᠢ ᠳᠡᠮᠵᠢᠬᠦ ᠦᠭᠡᠢ ! - + Add search folder failed, choosen path is in repeat mounted devices and another path which is in the same device has been added! ᠡᠷᠢᠬᠦ ᠪᠢᠴᠢᠭ᠌ ᠮᠠᠲ᠋ᠧᠷᠢᠶᠠᠯ ᠢ ᠬᠠᠪᠴᠢᠭᠤᠯᠤᠨ ᠢᠯᠠᠭᠳᠠᠵᠠᠢ ᠂ ᠠᠷᠭ᠎ᠠ ᠵᠠᠮ ᠢ ᠰᠣᠩᠭᠣᠵᠤ ᠳᠠᠬᠢᠨ ᠳᠠᠪᠲᠠᠨ ᠠᠴᠢᠶᠠᠯᠠᠭᠰᠠᠨ ᠲᠥᠬᠥᠭᠡᠷᠦᠮᠵᠢ ᠳᠦ ᠨᠡᠮᠡᠵᠦ ᠂ ᠨᠢᠭᠡᠨᠲᠡ ᠠᠳᠠᠯᠢ ᠨᠢᠭᠡᠨ ᠲᠥᠬᠥᠭᠡᠷᠦᠮᠵᠢ ᠳᠣᠲᠣᠷᠠᠬᠢ ᠨᠥᠭᠥᠭᠡ ᠨᠢᠭᠡ ᠠᠷᠭ᠎ᠠ ᠵᠠᠮ ᠨᠡᠮᠡᠵᠡᠢ ! - + Add search folder failed, another path which is in the same device has been added! ᠡᠷᠢᠬᠦ ᠪᠢᠴᠢᠭ᠌ ᠮᠠᠲ᠋ᠧᠷᠢᠶᠠᠯ ᠢ ᠨᠡᠮᠡᠵᠦ ᠢᠯᠠᠭᠳᠠᠵᠠᠢ ᠂ ᠨᠢᠭᠡᠨᠲᠡ ᠠᠳᠠᠯᠢ ᠨᠢᠭᠡᠨ ᠲᠥᠬᠥᠭᠡᠷᠦᠮᠵᠢ ᠳᠣᠲᠣᠷᠠᠬᠢ ᠨᠥᠭᠥᠭᠡ ᠨᠢᠭᠡ ᠠᠷᠭ᠎ᠠ ᠵᠠᠮ ᠢ ᠨᠡᠮᠡᠵᠡᠢ ! - + Add search folder failed, choosen path is not exists! ᠨᠡᠮᠡᠵᠦ ᠡᠷᠢᠬᠦ ᠭᠠᠷᠴᠠᠭ ᠢᠯᠠᠭᠳᠠᠵᠠᠢ ᠂ ᠡᠨᠡ ᠭᠠᠷᠴᠠᠭ ᠣᠷᠣᠰᠢᠬᠤ ᠦᠭᠡᠢ ! - + Add search folder failed, permission denied! ᠡᠷᠢᠬᠦ ᠭᠠᠷᠴᠠᠭ ᠢ ᠨᠡᠮᠡᠵᠦ ᠢᠯᠠᠭᠳᠠᠵᠠᠢ ᠂ ᠡᠨᠡ ᠭᠠᠷᠴᠠᠭ ᠢ ᠰᠤᠷᠪᠤᠯᠵᠢᠯᠠᠬᠤ ᠡᠷᠬᠡ ᠦᠭᠡᠢ ! diff --git a/search-ukcc-plugin/translations/zh_CN.ts b/search-ukcc-plugin/translations/zh_CN.ts index a591925..1871dc0 100644 --- a/search-ukcc-plugin/translations/zh_CN.ts +++ b/search-ukcc-plugin/translations/zh_CN.ts @@ -4,52 +4,51 @@ Search - - + + Search 全局搜索 /Search/Search - + Create index 创建索引 /Search/Create index - Creating index can help you getting results quickly. - 开启之后可以快速获取搜索结果 + 开启之后可以快速获取搜索结果 - + Default web searching engine 默认互联网搜索引擎 /Search/Default web searching engine - + baidu 百度 - + sougou 搜狗 - + 360 360 - + Block Folders 排除的文件夹 /Search/Block Folders - + Following folders will not be searched. You can set it by adding and removing folders. 搜索将不查看以下文件夹,通过添加和删除可以设置排除的文件夹位置 @@ -58,157 +57,168 @@ 添加 - - + + delete 删除 - - + + Directories 文件夹 - File Content Search - 搜索文本内容 + 搜索文本内容 /Search/File Content Search - + show more results that match the keyword 显示更多与输入内容匹配的搜索结果 - + Fuzzy Search 模糊搜索 - + + Create file index + 文件索引 + /Search/Create file index + + + + Create file content index + 文件内容索引 + /Search/Create file content index + + + Precise Search 精确搜索 - + show the results that exactly match the keyword 仅显示与输入内容完全一致的搜索结果 - + Search Folders 搜索范围 /Search/Search Folders - + Following folders will be searched. You can set it by adding and removing folders. 以下文件的内容将出现在全局搜索的结果中 - + select blocked folder 选择排除的文件夹 - - + + Select 选择 - - + + Position: 位置 - - + + FileName: 文件名 - - + + FileType: 类型 - - + + Cancel 取消 + - - - - - - - - + + + + + + + Warning 警告 - - + + Add search folder failed, hidden path is not supported! 添加失败,不支持隐藏目录! - + Add search folder failed, permission denied! 添加失败,该目录无权限访问! - + Add blocked folder failed, its parent dir has been added! 添加失败,父目录已被添加! - + Add blocked folder failed, choosen path is not exist! 添加失败,要添加的路径不存在! - + Add blocked folder failed, it has already been blocked! 添加失败,这个文件夹已经被添加过了! - + select search folder 选择要搜索的文件夹 - + Add search folder failed, choosen path is not supported currently! 添加失败,暂不支持该目录! - + Add search folder failed, another path which is in the same device has been added! 添加失败,文件夹位于重复挂载设备下,相同内容的文件夹已被添加! - + Add search folder failed, choosen path or its parent dir has been added! 添加失败,该目录或其父目录已被添加! - + Add search folder failed, choosen path is in repeat mounted devices and another path which is in the same device has been added! 添加失败,文件夹位于重复挂载设备下,且该设备另一个挂载点的文件夹已被添加! - + Add search folder failed, choosen path is not exists! 添加失败,要添加的路径不存在!