fix(frontend): Complete translations.
Description: 修复提示框按钮未汉化问题 Log: 修复提示框按钮未汉化问题 Bug: http://172.17.66.192/biz/bug-view-38128.html
This commit is contained in:
parent
ba393697fd
commit
ad04389bd5
|
@ -329,7 +329,7 @@ void MainWindow::moveToPanel()
|
|||
"/org/ukui/SettingsDaemon/wayland",
|
||||
"org.ukui.SettingsDaemon.wayland",
|
||||
QDBusConnection::sessionBus());
|
||||
if (primaryScreenInterface.isValid()) {
|
||||
if (QDBusReply<int>(primaryScreenInterface.call("x")).isValid()) {
|
||||
QDBusReply<int> x = primaryScreenInterface.call("x");
|
||||
QDBusReply<int> width = primaryScreenInterface.call("width");
|
||||
QDBusReply<int> height = primaryScreenInterface.call("height");
|
||||
|
|
|
@ -286,7 +286,7 @@ void SettingsWidget::refreshIndexState()
|
|||
void SettingsWidget::onBtnDelClicked(const QString& path) {
|
||||
QMessageBox message(QMessageBox::Question, tr("Search"), tr("Whether to delete this directory?"));
|
||||
QPushButton * buttonYes = message.addButton(tr("Yes"), QMessageBox::YesRole);
|
||||
QPushButton * buttonNo = message.addButton(tr("No"), QMessageBox::NoRole);
|
||||
message.addButton(tr("No"), QMessageBox::NoRole);
|
||||
message.exec();
|
||||
if (message.clickedButton() != buttonYes) {
|
||||
return;
|
||||
|
@ -517,6 +517,7 @@ void SettingsWidget::showWarningDialog(const int & errorCode)
|
|||
break;
|
||||
}
|
||||
}
|
||||
QMessageBox message(QMessageBox::Warning, tr("Search"), errorMessage, QMessageBox::Ok, this);
|
||||
QMessageBox message(QMessageBox::Warning, tr("Search"), errorMessage);
|
||||
message.addButton(tr("OK"), QMessageBox::AcceptRole);
|
||||
message.exec();
|
||||
}
|
||||
|
|
|
@ -121,7 +121,7 @@
|
|||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../../src/main.cpp" line="171"/>
|
||||
<location filename="../../src/main.cpp" line="182"/>
|
||||
<source>ukui-search is already running!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -137,27 +137,27 @@
|
|||
<context>
|
||||
<name>SearchDetailView</name>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="490"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="494"/>
|
||||
<source>Path</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="498"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="502"/>
|
||||
<source>Last time modified</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="216"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="220"/>
|
||||
<source>Application</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="197"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="201"/>
|
||||
<source>Introduction: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="335"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="339"/>
|
||||
<source>Document</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -317,6 +317,11 @@
|
|||
<source>Set blocked folder failed!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="521"/>
|
||||
<source>OK</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ShowMoreLabel</name>
|
||||
|
|
|
@ -121,7 +121,7 @@
|
|||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../../src/main.cpp" line="171"/>
|
||||
<location filename="../../src/main.cpp" line="182"/>
|
||||
<source>ukui-search is already running!</source>
|
||||
<translation>ukui-bul zaten çalışıyor!</translation>
|
||||
</message>
|
||||
|
@ -137,27 +137,27 @@
|
|||
<context>
|
||||
<name>SearchDetailView</name>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="490"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="494"/>
|
||||
<source>Path</source>
|
||||
<translation>Yol</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="498"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="502"/>
|
||||
<source>Last time modified</source>
|
||||
<translation>Son değiştirilme zamanı</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="216"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="220"/>
|
||||
<source>Application</source>
|
||||
<translation>Uygulama</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="197"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="201"/>
|
||||
<source>Introduction: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="335"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="339"/>
|
||||
<source>Document</source>
|
||||
<translation>Belge</translation>
|
||||
</message>
|
||||
|
@ -321,6 +321,11 @@
|
|||
<source>Set blocked folder failed!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="521"/>
|
||||
<source>OK</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ShowMoreLabel</name>
|
||||
|
|
|
@ -121,7 +121,7 @@
|
|||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../../src/main.cpp" line="171"/>
|
||||
<location filename="../../src/main.cpp" line="182"/>
|
||||
<source>ukui-search is already running!</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
|
@ -137,27 +137,27 @@
|
|||
<context>
|
||||
<name>SearchDetailView</name>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="490"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="494"/>
|
||||
<source>Path</source>
|
||||
<translation>路径</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="498"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="502"/>
|
||||
<source>Last time modified</source>
|
||||
<translation>上次修改时间</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="216"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="220"/>
|
||||
<source>Application</source>
|
||||
<translation>应用</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="197"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="201"/>
|
||||
<source>Introduction: %1</source>
|
||||
<translation>软件介绍: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="335"/>
|
||||
<location filename="../../src/control/search-detail-view.cpp" line="339"/>
|
||||
<source>Document</source>
|
||||
<translation>文件</translation>
|
||||
</message>
|
||||
|
@ -272,6 +272,11 @@
|
|||
<source>Set blocked folder failed!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="521"/>
|
||||
<source>OK</source>
|
||||
<translation>好的</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/settings-widget.cpp" line="348"/>
|
||||
<source>Creating ...</source>
|
||||
|
|
Loading…
Reference in New Issue