diff --git a/search-ukcc-plugin/search.cpp b/search-ukcc-plugin/search.cpp index fae356e..3256e05 100644 --- a/search-ukcc-plugin/search.cpp +++ b/search-ukcc-plugin/search.cpp @@ -27,6 +27,7 @@ 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"); +static const QString CONTENT_INDEX_ENABLE_OCR_KEY = QStringLiteral("contentIndexEnableOcr"); Search::Search() { @@ -102,6 +103,12 @@ QWidget *Search::pluginUi() m_contentIndexBtn->setEnabled(false); } + if (m_gsettings->keys().contains(CONTENT_INDEX_ENABLE_OCR_KEY)) { + m_ocrSwitchBtn->setChecked(m_gsettings->get(CONTENT_INDEX_ENABLE_OCR_KEY).toBool()); + } else { + m_ocrSwitchBtn->setEnabled(false); + } + if (m_gsettings->keys().contains(WEB_ENGINE_KEY)) { //当前网页搜索的搜索引擎 QString engine = m_gsettings->get(WEB_ENGINE_KEY).toString(); @@ -139,6 +146,10 @@ QWidget *Search::pluginUi() } else { m_indexSetFrame->hide(); } + } else if (key == CONTENT_INDEX_ENABLE_OCR_KEY) { + m_ocrSwitchBtn->blockSignals(true); + m_ocrSwitchBtn->setChecked(m_gsettings->get(CONTENT_INDEX_ENABLE_OCR_KEY).toBool()); + m_ocrSwitchBtn->blockSignals(false); } else if (key == WEB_ENGINE_KEY) { QString engine = m_gsettings->get(WEB_ENGINE_KEY).toString(); m_webEngineFrame->mCombox->blockSignals(true); @@ -159,11 +170,31 @@ QWidget *Search::pluginUi() m_gsettings->set(SEARCH_METHOD_KEY, checked); } }); + connect(m_contentIndexBtn, &kdk::KSwitchButton::pressed, this, [ & ] { + if (!m_contentIndexBtn->isChecked()) { + QMessageBox msgBox; + msgBox.setModal(true); + msgBox.setIcon(QMessageBox::Warning); + msgBox.setText(tr("Create file content index will increase the usage of memory and CPU, do you still want to open it?")); + auto button = msgBox.addButton(tr("OK"),QMessageBox::AcceptRole); + msgBox.addButton(tr("Cancel"), QMessageBox::RejectRole); + msgBox.exec(); + if (msgBox.clickedButton() == button) { + m_contentIndexBtn->setChecked(true); + } + } + }); + 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_ocrSwitchBtn, &kdk::KSwitchButton::stateChanged, this, [ = ](bool checked) { + if (m_gsettings && m_gsettings->keys().contains(CONTENT_INDEX_ENABLE_OCR_KEY)) { + m_gsettings->set(CONTENT_INDEX_ENABLE_OCR_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_FUZZY_SEARCH_KEY)) { @@ -285,15 +316,15 @@ void Search::initUi() m_contentIndexLyt->addWidget(m_contentIndexBtn); m_indexSetFrame = new QFrame(m_setFrame); - m_indexSetFrame->setFixedHeight(104); + m_indexSetFrame->setFixedHeight(228); m_indexSetLyt = new QVBoxLayout(m_indexSetFrame); - m_indexSetLyt->setContentsMargins(8, 0, 16, 0);//radiobutton本身左边有8间距 + m_indexSetLyt->setContentsMargins(0, 0, 0, 0); m_indexSetLyt->setSpacing(0); //分隔线 QFrame *line = new QFrame(m_indexSetFrame); line->setFixedHeight(1); - line->setContentsMargins(8, 0, 0, 0);// 为了与radiobutton平齐也设置8间距 + line->setContentsMargins(0, 0, 0, 0); line->setLineWidth(0); line->setFrameShape(QFrame::HLine); line->setFrameShadow(QFrame::Sunken); @@ -302,7 +333,7 @@ void Search::initUi() m_indexMethodFrame = new QFrame(m_indexSetFrame); m_indexMethodFrame->setFixedHeight(103); m_indexMethodLyt = new QVBoxLayout(m_indexMethodFrame); - m_indexMethodLyt->setContentsMargins(0, 0, 0, 0); + m_indexMethodLyt->setContentsMargins(8, 0, 0, 0);// radiobutton本身左边有8间距 m_indexMethodFrame->setLayout(m_indexMethodLyt); m_preciseBtnFrame = new QFrame(m_indexMethodFrame); @@ -340,8 +371,35 @@ void Search::initUi() m_indexMethodLyt->addWidget(m_fuzzyBtnFrame); m_indexMethodLyt->addSpacing(24); + //第二条分隔线 + QFrame *ocrLine = new QFrame(m_indexSetFrame); + ocrLine->setFixedHeight(1); + ocrLine->setContentsMargins(0, 0, 0, 0); + ocrLine->setLineWidth(0); + ocrLine->setFrameShape(QFrame::HLine); + ocrLine->setFrameShadow(QFrame::Sunken); + + //OCR开关 + m_ocrSwitchFrame = new QFrame(m_indexSetFrame); + m_ocrSwitchFrame->setMinimumWidth(550); + m_ocrSwitchFrame->setFixedHeight(60); + m_ocrSwitchLyt = new QHBoxLayout(m_contentIndexFrame); + m_ocrSwitchLyt->setContentsMargins(16, 15, 16, 21); + m_ocrSwitchFrame->setLayout(m_ocrSwitchLyt); + + m_ocrSwitchLabel = new QLabel(m_ocrSwitchFrame); + //~ contents_path /Search/Use OCR to index the text in pictures + m_ocrSwitchLabel->setText(tr("Index the text in pictures")); + m_ocrSwitchLabel->setContentsMargins(0, 0, 0, 0); + m_ocrSwitchBtn = new kdk::KSwitchButton(m_ocrSwitchFrame); + m_ocrSwitchLyt->addWidget(m_ocrSwitchLabel); + m_ocrSwitchLyt->addStretch(); + m_ocrSwitchLyt->addWidget(m_ocrSwitchBtn); + m_indexSetLyt->addWidget(line); m_indexSetLyt->addWidget(m_indexMethodFrame); + m_indexSetLyt->addWidget(ocrLine); + m_indexSetLyt->addWidget(m_ocrSwitchFrame); m_setFrameLyt->addWidget(m_contentIndexFrame); m_setFrameLyt->addWidget(m_indexSetFrame); diff --git a/search-ukcc-plugin/search.h b/search-ukcc-plugin/search.h index d251e75..44d9abe 100644 --- a/search-ukcc-plugin/search.h +++ b/search-ukcc-plugin/search.h @@ -116,6 +116,7 @@ private: QHBoxLayout *m_contentIndexLyt = nullptr; // QLabel *m_searchMethodLabel = nullptr; kdk::KSwitchButton *m_contentIndexBtn = nullptr; + QMessageBox *m_contentIndexMsgBox = nullptr; //设置索引搜索模式 QFrame *m_indexSetFrame = nullptr; QVBoxLayout *m_indexSetLyt = nullptr; @@ -134,6 +135,11 @@ private: QHBoxLayout *m_preciseBtnLyt = nullptr; QRadioButton *m_preciseBtn = nullptr; QLabel *m_preciseDescLabel = nullptr; + //OCR开关 + QLabel *m_ocrSwitchLabel = nullptr; + QFrame *m_ocrSwitchFrame = nullptr; + QHBoxLayout *m_ocrSwitchLyt = nullptr; + kdk::KSwitchButton *m_ocrSwitchBtn = nullptr; //设置当前搜索目录 TitleLabel *m_searchDirTitleLabel = nullptr; diff --git a/search-ukcc-plugin/translations/bo_CN.ts b/search-ukcc-plugin/translations/bo_CN.ts index baa4772..8c127d9 100644 --- a/search-ukcc-plugin/translations/bo_CN.ts +++ b/search-ukcc-plugin/translations/bo_CN.ts @@ -4,14 +4,14 @@ Search - - + + Search འཚོལ་ཞིབ། /Search/Search - + Create index གསར་འཛུགས་འཚོལ་ཞིབ་བྱེད་པར་ཁྲིད་སྟོན། /Search/Create index @@ -21,34 +21,34 @@ སྟོན་གྲངས་གསར་སྐྲུན་བྱས་ན་ཁྱོད་ལ་མགྱོགས་མྱུར་ངང་གྲུབ་འབྲས་ཐོབ་པར་རོགས་རམ་བྱེད་ཐུབ། - + 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. གཤམ་གྱི་ཡིག་སྣོད་འཚོལ་བཤེར་མི་བྱེད། ཡིག་སྣོད་གསར་སྣོན་དང་གསུབ་འཕྲི་བྱས་ཚེ་ཡིག་ཆའི་དཀར་ཆག་སྒྲིག་འགོད་བྱ་ཐུབ། @@ -57,14 +57,14 @@ བསལ་འདེམས་ཀྱི་དཀར་ཆག། - - + + delete བསུབ་པ། - - + + Directories དཀར་ཆག @@ -74,106 +74,123 @@ /Search/File Content Search - + show more results that match the keyword ངེས་མངོན་པ་དེ་བས་མང་བ་དང་ནང་འདྲེན་བྱེད་པའི་ནང་དོན་གཉིས་དོ་མཉམ་པའི་འཚོལ་ཞིབ་བྱས་པའི་འབྲས་བུ། - + Fuzzy Search རབ་རིབ་བཤེར་འཚོལ - + + Create file content index will increase the usage of memory and CPU, do you still want to open it? + གསར་འཛུགས་ཡིག་ཆའི་ནང་དོན་བསླུ་བྲིད་ཀྱིས་ནང་གསོག་དང་CPUཡི་བཀོལ་སྤྱོད་བྱེད་ཚད་མང་དུ་གཏོང་རྒྱུ་ཡིན་པས། ཁྱོད་ཀྱིས་ད་དུང་དེའི་ཁ་ཕྱེ་ན་འདོད་དམ། + + + + OK + བློ་སྒོ་འབྱེད་དགོས། + + + 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 ཕྱིར་མངོན་པ་དང་ནང་འཇུག་གི་ནང་དོན་ཡོངས་སུ་མཐུན་པའི་འཚོལ་ཞིབ་ཀྱི་མཇུག་འབྲས - + + Index the text in pictures + བསོད་ནམས་ཀྱི་པར་རིས་ནང་གི་ཡི་གེ། + /Search/Use OCR to index the text in pictures + + + 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! ཡིག་ཆའི་སྒམ་དེ་མིང་ཐོ་ནག་པོའི་ནང་དུ་འཇོག་མི་རུང་།རྒྱུ་མཚན་ནི་ལྟ་སྤྱོད་བྱེད་པའི་དབང་ཆ་མེད་པའི་ཡིག་ཆའི་སྒམ་ཁ་སྣོན་བྱེད་མི་ཐུབ། @@ -186,47 +203,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 932679e..9c2f194 100644 --- a/search-ukcc-plugin/translations/en_US.ts +++ b/search-ukcc-plugin/translations/en_US.ts @@ -4,35 +4,35 @@ 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 @@ -43,174 +43,191 @@ /Search/File Content Search - + Precise Search - + show the results that exactly match the keyword - + Fuzzy Search - + show more results that match the keyword - + + Index the text in pictures + + /Search/Use OCR to index the text in pictures + + + 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: - - + + FileName: - - + + FileType: - - + + + Cancel - - - - - - - - - - - + + Create file content index will increase the usage of memory and CPU, do you still want to open it? + + + + + OK + + + + + + + + + + + + + + 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 4bdf4e3..084a580 100644 --- a/search-ukcc-plugin/translations/mn.ts +++ b/search-ukcc-plugin/translations/mn.ts @@ -4,14 +4,14 @@ Search - - + + Search ᠪᠦᠬᠦ᠌ ᠪᠠᠢᠳᠠᠯ᠎ᠤᠨ ᠬᠠᠢᠯᠳᠠ /Search/Search - + Create index ᠬᠡᠯᠬᠢᠶᠡᠰᠦ ᠪᠠᠢᠭᠤᠯᠬᠤ /Search/Create index @@ -21,46 +21,46 @@ ᠡᠬᠢᠯᠡᠬᠦᠯᠦᠭᠰᠡᠨ᠎ᠦ ᠳᠠᠷᠠᠭ᠎ᠠ ᠬᠠᠢᠯᠲᠠ᠎ᠶᠢᠨ ᠦᠷ᠎ᠡ ᠳ᠋ᠦᠩ᠎ᠢ ᠬᠤᠷᠳᠤᠨ ᠤᠯᠵᠤ ᠪᠤᠯᠤᠨ᠎ᠠ ᠃ - + 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. ᠬᠠᠢᠯᠲᠠ᠎ᠪᠠᠷ ᠳᠠᠷᠠᠭᠠᠬᠢ ᠴᠤᠮᠤᠭ᠎ᠢ ᠪᠠᠢᠴᠠᠭᠠᠵᠤ ᠦᠵᠡᠬᠦ᠌ ᠦᠬᠡᠢ ᠂ ᠨᠡᠮᠡᠬᠦ᠌ ᠪᠤᠶᠤ ᠬᠠᠰᠤᠬᠤ᠎ᠪᠠᠷ ᠳᠠᠮᠵᠢᠭᠤᠯᠤᠨ ᠢᠯᠭᠠᠵᠤ ᠭᠠᠷᠭᠠᠭᠰᠠᠨ ᠴᠤᠮᠤᠭ᠎ᠤᠨ ᠪᠠᠢᠷᠢ᠎ᠶᠢ ᠳᠤᠬᠢᠷᠠᠭᠤᠯᠵᠤ ᠪᠤᠯᠤᠨ᠎ᠠ ᠃ @@ -69,14 +69,14 @@ ᠨᠡᠮᠡᠬᠦ᠌ - - + + delete ᠬᠠᠰᠤᠬᠤ - - + + Directories ᠴᠤᠮᠤᠭ @@ -86,139 +86,156 @@ /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 ᠦᠬᠡᠢᠰᠭᠡᠬᠦ᠌ - - - - - - - - - - - + + Create file content index will increase the usage of memory and CPU, do you still want to open it? + ᠪᠢᠴᠢᠭ᠌ ᠮᠠᠲ᠋ᠧᠷᠢᠶᠠᠯ ᠤᠨ ᠠᠭᠤᠯᠭ᠎ᠠ ᠶᠢ ᠡᠭᠦᠳᠦᠨ ᠪᠠᠶᠢᠭᠤᠯᠬᠤ ᠨᠢ ᠳᠣᠲᠣᠭᠠᠳᠤ ᠬᠠᠳᠠᠭᠠᠯᠠᠭᠤᠷ ᠪᠣᠯᠣᠨ CPU ᠶᠢᠨ ᠬᠡᠷᠡᠭᠯᠡᠯᠲᠡ ᠶᠢᠨ ᠬᠡᠮᠵᠢᠶ᠎ᠡ ᠶᠢ ᠨᠡᠮᠡᠭᠳᠡᠭᠦᠯᠦᠨ᠎ᠡ ᠂ ᠲᠠ ᠪᠠᠰᠠ ᠲᠡᠭᠦᠨ ᠢ ᠨᠡᠭᠡᠭᠡᠬᠦ ᠰᠠᠨᠠᠭ᠎ᠠ ᠲᠠᠢ ᠤᠤ ? + + + + OK + ᠡᠬᠢᠯᠡᠪᠡ᠃ + + + + Index the text in pictures + ᠲᠠᠲᠠᠬᠤ ᠵᠢᠷᠤᠭ ᠳᠣᠲᠣᠷᠠᠬᠢ ᠦᠰᠦᠭ ᠪᠢᠴᠢᠭ᠌ ᠃ + /Search/Use OCR to index the text in pictures + + + + + + + + + + + + + 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 56a2e2a..380c675 100644 --- a/search-ukcc-plugin/translations/zh_CN.ts +++ b/search-ukcc-plugin/translations/zh_CN.ts @@ -4,14 +4,14 @@ Search - - + + Search 全局搜索 /Search/Search - + Create index 创建索引 /Search/Create index @@ -21,34 +21,34 @@ 开启之后可以快速获取搜索结果 - + 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. 搜索将不查看以下文件夹,通过添加和删除可以设置排除的文件夹位置 @@ -57,14 +57,14 @@ 添加 - - + + delete 删除 - - + + Directories 文件夹 @@ -74,151 +74,168 @@ /Search/File Content Search - + show more results that match the keyword 显示更多与输入内容匹配的搜索结果 - + Fuzzy Search 模糊搜索 - + + Create file content index will increase the usage of memory and CPU, do you still want to open it? + 创建文件内容索引可能会影响内存和CPU占用率,是否开启? + + + + OK + 开启 + + + 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 仅显示与输入内容完全一致的搜索结果 - + + Index the text in pictures + 索引图片中的文字 + /Search/Use OCR to index the text in pictures + + + 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! 添加失败,要添加的路径不存在! diff --git a/search-ukcc-plugin/translations/zh_HK.ts b/search-ukcc-plugin/translations/zh_HK.ts index 53e296b..280b5c3 100644 --- a/search-ukcc-plugin/translations/zh_HK.ts +++ b/search-ukcc-plugin/translations/zh_HK.ts @@ -4,35 +4,35 @@ Search - - + + Search 全域搜索 /Search/Search - + Default web searching engine 默認互聯網搜尋引擎 /Search/Default web searching engine - + baidu 百度 - + sougou 搜狗 - + 360 360 - + Create index 創建索引 /Search/Create index @@ -47,174 +47,191 @@ /Search/File Content 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 僅顯示與輸入內容完全一致的搜尋結果 - + 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. 以下文件的內容將出現在全域搜索的結果中 - + 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: 位置 - - + + FileName: 檔名 - - + + FileType: 類型 - - + + + Cancel 取消 - - - - - - - - - - - + + Create file content index will increase the usage of memory and CPU, do you still want to open it? + 創建文件內容索引會影響記憶體和CPU佔用率,是否開啟? + + + + OK + 開啟 + + + + Index the text in pictures + 索引圖片中的文字 + /Search/Use OCR to index the text in pictures + + + + + + + + + + + + + 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! 添加失敗,該目錄無許可權訪問! - - + + delete 刪除