forked from openkylin/ukui-search
Merge pull request #54 from iaom/0106-dev
[FIX] Translation files(*.qm) can not be generated issue.
This commit is contained in:
commit
398f42e78e
|
@ -0,0 +1,10 @@
|
|||
[Desktop Entry]
|
||||
Name=ukui-search
|
||||
GenericName=UKUI Global Search
|
||||
GenericName[zh_CN]=全局搜索
|
||||
Comment=ukui-search
|
||||
Comment[zh_CN]=全局搜索
|
||||
Exec=usr/bin/ukui-search %U
|
||||
Type=Application
|
||||
Icon=ukui-search
|
||||
Terminal=false
|
|
@ -58,7 +58,7 @@ bool IndexGenerator::creatAllIndex(QList<QVector<QString> > *messageList)
|
|||
}
|
||||
catch(const Xapian::Error &e)
|
||||
{
|
||||
qWarning()<<__FILE__<<__LINE__<<__FUNCTION__<<"creatAllIndex fail!"<<QString::fromStdString(e.get_description());
|
||||
qWarning()<<"creatAllIndex fail!"<<QString::fromStdString(e.get_description());
|
||||
//need a record
|
||||
GlobalSettings::getInstance()->setValue(INDEX_DATABASE_STATE,"1");
|
||||
Q_ASSERT(false);
|
||||
|
@ -89,7 +89,7 @@ bool IndexGenerator::creatAllIndex(QList<QString> *messageList)
|
|||
}
|
||||
catch(const Xapian::Error &e)
|
||||
{
|
||||
qWarning()<<__FILE__<<__LINE__<<__FUNCTION__<<"creat content Index fail!"<<QString::fromStdString(e.get_description());
|
||||
qWarning()<<"creat content Index fail!"<<QString::fromStdString(e.get_description());
|
||||
GlobalSettings::getInstance()->setValue(CONTENT_INDEX_DATABASE_STATE,"1");
|
||||
Q_ASSERT(false);
|
||||
}
|
||||
|
@ -193,18 +193,17 @@ Document IndexGenerator::GenerateDocument(const QVector<QString> &list)
|
|||
QString sourcePath = list.at(1);
|
||||
index_text = index_text.replace(".","").replace(""," ");
|
||||
index_text = index_text.simplified();
|
||||
//这个应该是写错了
|
||||
// QString pinyin_text = FileUtils::find(index_text.replace(".", "")).replace("", " ");
|
||||
|
||||
//不带多音字版
|
||||
// QString pinyin_text = FileUtils::find(QString(list.at(0)).replace(".","")).replace("", " ").simplified();
|
||||
|
||||
//多音字版
|
||||
//现加入首字母
|
||||
// QStringList pinyin_text_list = FileUtils::findMultiToneWords(QString(list.at(0)).replace(".",""));
|
||||
// for (QString& i : pinyin_text_list){
|
||||
// i.replace("", " ");
|
||||
// }
|
||||
QStringList pinyin_text_list = FileUtils::findMultiToneWords(QString(list.at(0)).replace(".",""));
|
||||
for (QString& i : pinyin_text_list){
|
||||
i.replace("", " ");
|
||||
i = i.simplified();
|
||||
}
|
||||
|
||||
QString uniqueterm = QString::fromStdString(FileUtils::makeDocUterm(sourcePath));
|
||||
// QString uniqueterm1 = QString::fromStdString(QCryptographicHash::hash(sourcePath.toUtf8(),QCryptographicHash::Md5).toStdString());
|
||||
|
@ -223,10 +222,8 @@ Document IndexGenerator::GenerateDocument(const QVector<QString> &list)
|
|||
doc.addValue(list.at(2));
|
||||
QStringList temp;
|
||||
temp.append(index_text);
|
||||
// temp.append(pinyin_text_list);
|
||||
temp.append(pinyin_text_list);
|
||||
doc.setIndexText(temp);
|
||||
// doc.setIndexText(QStringList()<<index_text<<pinyin_text);
|
||||
// doc.setIndexText(QStringList()<<index_text);
|
||||
return doc;
|
||||
|
||||
}
|
||||
|
@ -349,7 +346,7 @@ bool IndexGenerator::deleteAllIndex(QStringList *pathlist)
|
|||
}
|
||||
catch(const Xapian::Error &e)
|
||||
{
|
||||
qWarning() <<__FILE__<<__LINE__<<__FUNCTION__<<QString::fromStdString(e.get_description());
|
||||
qWarning()<<QString::fromStdString(e.get_description());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ public:
|
|||
static IndexGenerator *getInstance(bool rebuild = false);
|
||||
bool setIndexdataPath();
|
||||
bool isIndexdataExist();
|
||||
//for search test
|
||||
static QStringList IndexSearch(QString indexText);
|
||||
Q_SIGNALS:
|
||||
void transactionFinished();
|
||||
|
|
|
@ -35,7 +35,7 @@ void HighlightItemDelegate::paint(QPainter * painter, const QStyleOptionViewItem
|
|||
ctx.palette.setColor(QPalette::Text, optionV4.palette.color(QPalette::Active, QPalette::HighlightedText));
|
||||
|
||||
QRect textRect = style->subElementRect(QStyle::SE_ItemViewItemText, &optionV4);
|
||||
textRect.adjust(0, 5, 0, 0);
|
||||
textRect.adjust(0, 0, 0, 0);
|
||||
painter->save();
|
||||
painter->translate(textRect.topLeft());
|
||||
painter->setClipRect(textRect.translated(-textRect.topLeft()));
|
||||
|
|
|
@ -145,7 +145,7 @@ int main(int argc, char *argv[])
|
|||
// 加载国际化文件
|
||||
QTranslator translator;
|
||||
try {
|
||||
if (! translator.load("/usr/share/ukui-search/res/translations/" + QLocale::system().name())) throw -1;
|
||||
if (! translator.load("/usr/share/ukui-search/translations/" + QLocale::system().name())) throw -1;
|
||||
app.installTranslator(&translator);
|
||||
} catch (...) {
|
||||
qDebug() << "Load translations file" << QLocale() << "failed!";
|
||||
|
|
|
@ -1,216 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="zh_CN">
|
||||
<context>
|
||||
<name>ContentWidget</name>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="80"/>
|
||||
<source>Recently Opened</source>
|
||||
<translation type="unfinished">最近</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="99"/>
|
||||
<source>Open Quickly</source>
|
||||
<translation type="unfinished">快速</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="104"/>
|
||||
<source>Commonly Used</source>
|
||||
<translation type="unfinished">常用</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="212"/>
|
||||
<source>Apps</source>
|
||||
<translation type="unfinished">应用</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="214"/>
|
||||
<source>Settings</source>
|
||||
<translation type="unfinished">配置项</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="216"/>
|
||||
<source>Files</source>
|
||||
<translation type="unfinished">文件</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="218"/>
|
||||
<source>Dirs</source>
|
||||
<translation type="unfinished">文件夹</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="220"/>
|
||||
<source>Best Matches</source>
|
||||
<translation type="unfinished">最佳匹配</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="222"/>
|
||||
<source>Unknown</source>
|
||||
<translation type="unfinished">未知</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FolderListItem</name>
|
||||
<message>
|
||||
<location filename="../../control/folder-list-item.cpp" line="36"/>
|
||||
<source>Delete the folder out of blacklist</source>
|
||||
<translation type="unfinished">删除</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../../mainwindow.cpp" line="119"/>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished">从列表搜索</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OptionView</name>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="76"/>
|
||||
<source>Open</source>
|
||||
<translation type="unfinished">打开</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="85"/>
|
||||
<source>Add Shortcut to Desktop</source>
|
||||
<translation type="unfinished">添加到桌面快捷方式</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="94"/>
|
||||
<source>Add Shortcut to Panel</source>
|
||||
<translation type="unfinished">添加到任务栏快捷方式</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="103"/>
|
||||
<source>Open path</source>
|
||||
<translation type="unfinished">打开文件所在路径</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="112"/>
|
||||
<source>Copy path</source>
|
||||
<translation type="unfinished">复制文件路径</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../../main.cpp" line="71"/>
|
||||
<source>ukui-search is already running!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SearchDetailView</name>
|
||||
<message>
|
||||
<location filename="../../control/search-detail-view.cpp" line="97"/>
|
||||
<source>Path</source>
|
||||
<translation type="unfinished">路径</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/search-detail-view.cpp" line="106"/>
|
||||
<source>Last time modified</source>
|
||||
<translation type="unfinished">上次修改时间</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/search-detail-view.cpp" line="139"/>
|
||||
<source>Application</source>
|
||||
<translation type="unfinished">应用</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/search-detail-view.cpp" line="147"/>
|
||||
<source>Document</source>
|
||||
<translation type="unfinished">文件</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SettingsWidget</name>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="49"/>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished">搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="66"/>
|
||||
<source>Settings</source>
|
||||
<translation type="unfinished">配置项</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="72"/>
|
||||
<source>Index State</source>
|
||||
<translation type="unfinished">索引状态</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="75"/>
|
||||
<location filename="../../settings-widget.cpp" line="77"/>
|
||||
<source>...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="84"/>
|
||||
<source>File Index Settings</source>
|
||||
<translation type="unfinished">文件索引设置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="87"/>
|
||||
<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="../../settings-widget.cpp" line="96"/>
|
||||
<source>Add ignored folders</source>
|
||||
<translation type="unfinished">添加禁止索引文件夹</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="117"/>
|
||||
<source>Search Engine Settings</source>
|
||||
<translation type="unfinished">搜索引擎设置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="120"/>
|
||||
<source>Please select search engine you preferred.</source>
|
||||
<translation type="unfinished">设置互联网搜索引擎</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="133"/>
|
||||
<source>baidu</source>
|
||||
<translation type="unfinished">百度</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="135"/>
|
||||
<source>sougou</source>
|
||||
<translation type="unfinished">搜狗</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="137"/>
|
||||
<source>360</source>
|
||||
<translation type="unfinished">360</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="160"/>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished">取消</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="164"/>
|
||||
<source>Confirm</source>
|
||||
<translation type="unfinished">确认</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="194"/>
|
||||
<source>Creating ...</source>
|
||||
<translation type="unfinished">正在索引</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="197"/>
|
||||
<source>Done</source>
|
||||
<translation type="unfinished">索引完成</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="205"/>
|
||||
<source>Index Entry: %1</source>
|
||||
<translation type="unfinished">索引项: %1</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
19
src/src.pro
19
src/src.pro
|
@ -7,7 +7,7 @@ TARGET = ukui-search
|
|||
TEMPLATE = app
|
||||
|
||||
PKGCONFIG += gio-2.0 glib-2.0 gio-unix-2.0
|
||||
CONFIG += c++11 link_pkgconfig no_keywords
|
||||
CONFIG += c++11 link_pkgconfig no_keywords lrelease
|
||||
LIBS += -lxapian -lgsettings-qt -lquazip5
|
||||
# The following define makes your compiler emit warnings if you use
|
||||
# any Qt feature that has been marked deprecated (the exact warnings
|
||||
|
@ -43,19 +43,22 @@ HEADERS += \
|
|||
target.path = /usr/bin
|
||||
!isEmpty(target.path): INSTALLS += target
|
||||
|
||||
data.path = /usr/share/applications
|
||||
data.files += ../data/ukui-search.desktop
|
||||
INSTALLS += data
|
||||
|
||||
RESOURCES += \
|
||||
resource.qrc
|
||||
|
||||
TRANSLATIONS += \
|
||||
res/translations/zh_CN.ts \
|
||||
res/translations/tr.ts \
|
||||
res/translations/bo.ts
|
||||
../translations/ukui-search/zh_CN.ts \
|
||||
../translations/ukui-search/tr.ts \
|
||||
../translations/ukui-search/bo.ts
|
||||
|
||||
qm_files.path = /usr/share/ukui-search/res/translations/
|
||||
qm_files.files = $$OUT_PWD/res/translations/*.qm
|
||||
qm_files.path = /usr/share/ukui-search/translations/
|
||||
qm_files.files = $$OUT_PWD/.qm/*.qm
|
||||
|
||||
INSTALLS += \
|
||||
qm_files \
|
||||
INSTALLS += qm_files
|
||||
|
||||
LIBS += -L$$OUT_PWD/../libsearch -lukui-search -L$$OUT_PWD/../libchinese-segmentation/ -lchinese-segmentation
|
||||
|
||||
|
|
|
@ -19,32 +19,37 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="212"/>
|
||||
<location filename="../../content-widget.cpp" line="215"/>
|
||||
<source>Apps</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="214"/>
|
||||
<location filename="../../content-widget.cpp" line="217"/>
|
||||
<source>Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="216"/>
|
||||
<location filename="../../content-widget.cpp" line="219"/>
|
||||
<source>Files</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="218"/>
|
||||
<location filename="../../content-widget.cpp" line="221"/>
|
||||
<source>Dirs</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="220"/>
|
||||
<location filename="../../content-widget.cpp" line="223"/>
|
||||
<source>File Contents</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="225"/>
|
||||
<source>Best Matches</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="222"/>
|
||||
<location filename="../../content-widget.cpp" line="227"/>
|
||||
<source>Unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -60,7 +65,7 @@
|
|||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../../mainwindow.cpp" line="119"/>
|
||||
<location filename="../../mainwindow.cpp" line="125"/>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -68,27 +73,27 @@
|
|||
<context>
|
||||
<name>OptionView</name>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="76"/>
|
||||
<location filename="../../control/option-view.cpp" line="77"/>
|
||||
<source>Open</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="85"/>
|
||||
<location filename="../../control/option-view.cpp" line="86"/>
|
||||
<source>Add Shortcut to Desktop</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="94"/>
|
||||
<location filename="../../control/option-view.cpp" line="95"/>
|
||||
<source>Add Shortcut to Panel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="103"/>
|
||||
<location filename="../../control/option-view.cpp" line="104"/>
|
||||
<source>Open path</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="112"/>
|
||||
<location filename="../../control/option-view.cpp" line="113"/>
|
||||
<source>Copy path</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -96,7 +101,7 @@
|
|||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../../main.cpp" line="71"/>
|
||||
<location filename="../../main.cpp" line="135"/>
|
||||
<source>ukui-search is already running!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -104,22 +109,22 @@
|
|||
<context>
|
||||
<name>SearchDetailView</name>
|
||||
<message>
|
||||
<location filename="../../control/search-detail-view.cpp" line="97"/>
|
||||
<location filename="../../control/search-detail-view.cpp" line="136"/>
|
||||
<source>Path</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/search-detail-view.cpp" line="106"/>
|
||||
<location filename="../../control/search-detail-view.cpp" line="145"/>
|
||||
<source>Last time modified</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/search-detail-view.cpp" line="139"/>
|
||||
<location filename="../../control/search-detail-view.cpp" line="178"/>
|
||||
<source>Application</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/search-detail-view.cpp" line="147"/>
|
||||
<location filename="../../control/search-detail-view.cpp" line="187"/>
|
||||
<source>Document</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -132,83 +137,83 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="66"/>
|
||||
<location filename="../../settings-widget.cpp" line="67"/>
|
||||
<source>Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="72"/>
|
||||
<location filename="../../settings-widget.cpp" line="73"/>
|
||||
<source>Index State</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="75"/>
|
||||
<location filename="../../settings-widget.cpp" line="77"/>
|
||||
<location filename="../../settings-widget.cpp" line="76"/>
|
||||
<location filename="../../settings-widget.cpp" line="78"/>
|
||||
<source>...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="84"/>
|
||||
<location filename="../../settings-widget.cpp" line="85"/>
|
||||
<source>File Index Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="87"/>
|
||||
<location filename="../../settings-widget.cpp" line="88"/>
|
||||
<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="../../settings-widget.cpp" line="96"/>
|
||||
<location filename="../../settings-widget.cpp" line="97"/>
|
||||
<source>Add ignored folders</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="117"/>
|
||||
<location filename="../../settings-widget.cpp" line="118"/>
|
||||
<source>Search Engine Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="120"/>
|
||||
<location filename="../../settings-widget.cpp" line="121"/>
|
||||
<source>Please select search engine you preferred.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="133"/>
|
||||
<location filename="../../settings-widget.cpp" line="134"/>
|
||||
<source>baidu</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="135"/>
|
||||
<location filename="../../settings-widget.cpp" line="136"/>
|
||||
<source>sougou</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="137"/>
|
||||
<location filename="../../settings-widget.cpp" line="138"/>
|
||||
<source>360</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="160"/>
|
||||
<location filename="../../settings-widget.cpp" line="161"/>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="164"/>
|
||||
<location filename="../../settings-widget.cpp" line="165"/>
|
||||
<source>Confirm</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="194"/>
|
||||
<location filename="../../settings-widget.cpp" line="212"/>
|
||||
<source>Creating ...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="197"/>
|
||||
<location filename="../../settings-widget.cpp" line="215"/>
|
||||
<source>Done</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="205"/>
|
||||
<location filename="../../settings-widget.cpp" line="223"/>
|
||||
<source>Index Entry: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
|
@ -19,32 +19,37 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="212"/>
|
||||
<location filename="../../content-widget.cpp" line="215"/>
|
||||
<source>Apps</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="214"/>
|
||||
<location filename="../../content-widget.cpp" line="217"/>
|
||||
<source>Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="216"/>
|
||||
<location filename="../../content-widget.cpp" line="219"/>
|
||||
<source>Files</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="218"/>
|
||||
<location filename="../../content-widget.cpp" line="221"/>
|
||||
<source>Dirs</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="220"/>
|
||||
<location filename="../../content-widget.cpp" line="223"/>
|
||||
<source>File Contents</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="225"/>
|
||||
<source>Best Matches</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="222"/>
|
||||
<location filename="../../content-widget.cpp" line="227"/>
|
||||
<source>Unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -60,7 +65,7 @@
|
|||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../../mainwindow.cpp" line="119"/>
|
||||
<location filename="../../mainwindow.cpp" line="125"/>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -68,27 +73,27 @@
|
|||
<context>
|
||||
<name>OptionView</name>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="76"/>
|
||||
<location filename="../../control/option-view.cpp" line="77"/>
|
||||
<source>Open</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="85"/>
|
||||
<location filename="../../control/option-view.cpp" line="86"/>
|
||||
<source>Add Shortcut to Desktop</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="94"/>
|
||||
<location filename="../../control/option-view.cpp" line="95"/>
|
||||
<source>Add Shortcut to Panel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="103"/>
|
||||
<location filename="../../control/option-view.cpp" line="104"/>
|
||||
<source>Open path</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="112"/>
|
||||
<location filename="../../control/option-view.cpp" line="113"/>
|
||||
<source>Copy path</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -96,7 +101,7 @@
|
|||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../../main.cpp" line="71"/>
|
||||
<location filename="../../main.cpp" line="135"/>
|
||||
<source>ukui-search is already running!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -104,22 +109,22 @@
|
|||
<context>
|
||||
<name>SearchDetailView</name>
|
||||
<message>
|
||||
<location filename="../../control/search-detail-view.cpp" line="97"/>
|
||||
<location filename="../../control/search-detail-view.cpp" line="136"/>
|
||||
<source>Path</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/search-detail-view.cpp" line="106"/>
|
||||
<location filename="../../control/search-detail-view.cpp" line="145"/>
|
||||
<source>Last time modified</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/search-detail-view.cpp" line="139"/>
|
||||
<location filename="../../control/search-detail-view.cpp" line="178"/>
|
||||
<source>Application</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/search-detail-view.cpp" line="147"/>
|
||||
<location filename="../../control/search-detail-view.cpp" line="187"/>
|
||||
<source>Document</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -132,83 +137,83 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="66"/>
|
||||
<location filename="../../settings-widget.cpp" line="67"/>
|
||||
<source>Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="72"/>
|
||||
<location filename="../../settings-widget.cpp" line="73"/>
|
||||
<source>Index State</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="75"/>
|
||||
<location filename="../../settings-widget.cpp" line="77"/>
|
||||
<location filename="../../settings-widget.cpp" line="76"/>
|
||||
<location filename="../../settings-widget.cpp" line="78"/>
|
||||
<source>...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="84"/>
|
||||
<location filename="../../settings-widget.cpp" line="85"/>
|
||||
<source>File Index Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="87"/>
|
||||
<location filename="../../settings-widget.cpp" line="88"/>
|
||||
<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="../../settings-widget.cpp" line="96"/>
|
||||
<location filename="../../settings-widget.cpp" line="97"/>
|
||||
<source>Add ignored folders</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="117"/>
|
||||
<location filename="../../settings-widget.cpp" line="118"/>
|
||||
<source>Search Engine Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="120"/>
|
||||
<location filename="../../settings-widget.cpp" line="121"/>
|
||||
<source>Please select search engine you preferred.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="133"/>
|
||||
<location filename="../../settings-widget.cpp" line="134"/>
|
||||
<source>baidu</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="135"/>
|
||||
<location filename="../../settings-widget.cpp" line="136"/>
|
||||
<source>sougou</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="137"/>
|
||||
<location filename="../../settings-widget.cpp" line="138"/>
|
||||
<source>360</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="160"/>
|
||||
<location filename="../../settings-widget.cpp" line="161"/>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="164"/>
|
||||
<location filename="../../settings-widget.cpp" line="165"/>
|
||||
<source>Confirm</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="194"/>
|
||||
<location filename="../../settings-widget.cpp" line="212"/>
|
||||
<source>Creating ...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="197"/>
|
||||
<location filename="../../settings-widget.cpp" line="215"/>
|
||||
<source>Done</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="205"/>
|
||||
<location filename="../../settings-widget.cpp" line="223"/>
|
||||
<source>Index Entry: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
|
@ -0,0 +1,221 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="zh_CN">
|
||||
<context>
|
||||
<name>ContentWidget</name>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="80"/>
|
||||
<source>Recently Opened</source>
|
||||
<translation>最近</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="99"/>
|
||||
<source>Open Quickly</source>
|
||||
<translation>快速</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="104"/>
|
||||
<source>Commonly Used</source>
|
||||
<translation>常用</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="215"/>
|
||||
<source>Apps</source>
|
||||
<translation>应用</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="217"/>
|
||||
<source>Settings</source>
|
||||
<translation>配置项</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="219"/>
|
||||
<source>Files</source>
|
||||
<translation>文件</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="221"/>
|
||||
<source>Dirs</source>
|
||||
<translation>文件夹</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="223"/>
|
||||
<source>File Contents</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="225"/>
|
||||
<source>Best Matches</source>
|
||||
<translation>最佳匹配</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../content-widget.cpp" line="227"/>
|
||||
<source>Unknown</source>
|
||||
<translation>未知</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FolderListItem</name>
|
||||
<message>
|
||||
<location filename="../../control/folder-list-item.cpp" line="36"/>
|
||||
<source>Delete the folder out of blacklist</source>
|
||||
<translation>删除</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../../mainwindow.cpp" line="125"/>
|
||||
<source>Search</source>
|
||||
<translation>从列表搜索</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OptionView</name>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="77"/>
|
||||
<source>Open</source>
|
||||
<translation>打开</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="86"/>
|
||||
<source>Add Shortcut to Desktop</source>
|
||||
<translation>添加到桌面快捷方式</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="95"/>
|
||||
<source>Add Shortcut to Panel</source>
|
||||
<translation>添加到任务栏快捷方式</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="104"/>
|
||||
<source>Open path</source>
|
||||
<translation>打开文件所在路径</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/option-view.cpp" line="113"/>
|
||||
<source>Copy path</source>
|
||||
<translation>复制文件路径</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../../main.cpp" line="135"/>
|
||||
<source>ukui-search is already running!</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SearchDetailView</name>
|
||||
<message>
|
||||
<location filename="../../control/search-detail-view.cpp" line="136"/>
|
||||
<source>Path</source>
|
||||
<translation>路径</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/search-detail-view.cpp" line="145"/>
|
||||
<source>Last time modified</source>
|
||||
<translation>上次修改时间</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/search-detail-view.cpp" line="178"/>
|
||||
<source>Application</source>
|
||||
<translation>应用</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../control/search-detail-view.cpp" line="187"/>
|
||||
<source>Document</source>
|
||||
<translation>文件</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SettingsWidget</name>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="49"/>
|
||||
<source>Search</source>
|
||||
<translation>搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="67"/>
|
||||
<source>Settings</source>
|
||||
<translation>配置项</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="73"/>
|
||||
<source>Index State</source>
|
||||
<translation>索引状态</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="76"/>
|
||||
<location filename="../../settings-widget.cpp" line="78"/>
|
||||
<source>...</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="85"/>
|
||||
<source>File Index Settings</source>
|
||||
<translation>文件索引设置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="88"/>
|
||||
<source>Following folders will not be searched. You can set it by adding and removing folders.</source>
|
||||
<translation>搜索将不再查看以下文件夹。通过增加和删除文件夹可进行文件索引设置。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="97"/>
|
||||
<source>Add ignored folders</source>
|
||||
<translation>添加禁止索引文件夹</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="118"/>
|
||||
<source>Search Engine Settings</source>
|
||||
<translation>搜索引擎设置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="121"/>
|
||||
<source>Please select search engine you preferred.</source>
|
||||
<translation>设置互联网搜索引擎</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="134"/>
|
||||
<source>baidu</source>
|
||||
<translation>百度</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="136"/>
|
||||
<source>sougou</source>
|
||||
<translation>搜狗</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="138"/>
|
||||
<source>360</source>
|
||||
<translation>360</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="161"/>
|
||||
<source>Cancel</source>
|
||||
<translation>取消</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="165"/>
|
||||
<source>Confirm</source>
|
||||
<translation>确认</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="212"/>
|
||||
<source>Creating ...</source>
|
||||
<translation>正在索引</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="215"/>
|
||||
<source>Done</source>
|
||||
<translation>索引完成</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../settings-widget.cpp" line="223"/>
|
||||
<source>Index Entry: %1</source>
|
||||
<translation>索引项: %1</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
Loading…
Reference in New Issue