修改英文下无默认打开应用提示框的按钮文字为OK
This commit is contained in:
parent
243a2874e7
commit
0a0eb0d6ac
|
@ -94,7 +94,7 @@ void FileSearchPlugin::openAction(int actionkey, QString key, int type)
|
||||||
if(FileUtils::openFile(key) == -1) {
|
if(FileUtils::openFile(key) == -1) {
|
||||||
QMessageBox msgBox(m_detailPage);
|
QMessageBox msgBox(m_detailPage);
|
||||||
msgBox.setModal(true);
|
msgBox.setModal(true);
|
||||||
msgBox.addButton(tr("Yes"), QMessageBox::YesRole);
|
msgBox.addButton(tr("OK"), QMessageBox::YesRole);
|
||||||
msgBox.setIcon(QMessageBox::Information);
|
msgBox.setIcon(QMessageBox::Information);
|
||||||
msgBox.setText(tr("Can not get a default application for opening %1.").arg(key));
|
msgBox.setText(tr("Can not get a default application for opening %1.").arg(key));
|
||||||
msgBox.open();
|
msgBox.open();
|
||||||
|
@ -205,7 +205,7 @@ void FileSearchPlugin::initDetailPage()
|
||||||
if(FileUtils::openFile(m_currentActionKey) == -1) {
|
if(FileUtils::openFile(m_currentActionKey) == -1) {
|
||||||
QMessageBox msgBox(m_detailPage);
|
QMessageBox msgBox(m_detailPage);
|
||||||
msgBox.setModal(true);
|
msgBox.setModal(true);
|
||||||
msgBox.addButton(tr("Yes"), QMessageBox::YesRole);
|
msgBox.addButton(tr("OK"), QMessageBox::YesRole);
|
||||||
msgBox.setIcon(QMessageBox::Information);
|
msgBox.setIcon(QMessageBox::Information);
|
||||||
msgBox.setText(tr("Can not get a default application for opening %1.").arg(m_currentActionKey));
|
msgBox.setText(tr("Can not get a default application for opening %1.").arg(m_currentActionKey));
|
||||||
msgBox.open();
|
msgBox.open();
|
||||||
|
|
|
@ -228,9 +228,13 @@
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="97"/>
|
<location filename="../../libsearch/index/file-search-plugin.cpp" line="97"/>
|
||||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="208"/>
|
<location filename="../../libsearch/index/file-search-plugin.cpp" line="208"/>
|
||||||
<source>Yes</source>
|
<source>OK</source>
|
||||||
<translation>རེད།</translation>
|
<translation>རེད།</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Yes</source>
|
||||||
|
<translation type="vanished">རེད།</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="99"/>
|
<location filename="../../libsearch/index/file-search-plugin.cpp" line="99"/>
|
||||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="210"/>
|
<location filename="../../libsearch/index/file-search-plugin.cpp" line="210"/>
|
||||||
|
|
|
@ -240,11 +240,15 @@
|
||||||
<source>File search.</source>
|
<source>File search.</source>
|
||||||
<translation>ᠹᠠᠢᠯᠤᠨ ᠬᠠᠢᠯᠲᠠ</translation>
|
<translation>ᠹᠠᠢᠯᠤᠨ ᠬᠠᠢᠯᠲᠠ</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Yes</source>
|
||||||
|
<translation type="vanished">Yes</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="97"/>
|
<location filename="../../libsearch/index/file-search-plugin.cpp" line="97"/>
|
||||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="208"/>
|
<location filename="../../libsearch/index/file-search-plugin.cpp" line="208"/>
|
||||||
<source>Yes</source>
|
<source>OK</source>
|
||||||
<translation>Yes</translation>
|
<translation>ᠪᠣᠯᠣᠨᠠ</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="99"/>
|
<location filename="../../libsearch/index/file-search-plugin.cpp" line="99"/>
|
||||||
|
|
|
@ -240,10 +240,14 @@
|
||||||
<source>File search.</source>
|
<source>File search.</source>
|
||||||
<translation>文件搜索。</translation>
|
<translation>文件搜索。</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Yes</source>
|
||||||
|
<translation type="vanished">确定</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="97"/>
|
<location filename="../../libsearch/index/file-search-plugin.cpp" line="97"/>
|
||||||
<location filename="../../libsearch/index/file-search-plugin.cpp" line="208"/>
|
<location filename="../../libsearch/index/file-search-plugin.cpp" line="208"/>
|
||||||
<source>Yes</source>
|
<source>OK</source>
|
||||||
<translation>确定</translation>
|
<translation>确定</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
|
|
Loading…
Reference in New Issue