修改英文下无默认打开应用提示框的按钮文字为OK

This commit is contained in:
JunjieBai 2023-07-04 17:59:32 +08:00
parent 243a2874e7
commit 0a0eb0d6ac
4 changed files with 18 additions and 6 deletions

View File

@ -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();

View File

@ -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"/>

View File

@ -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"/>

View File

@ -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>