Fix translation artefacts.

No need to translate "X Certificate and Key management",
"Form", "Dialog" or "TimeInput"

"Select Token" and "New Key" window titles were never shown.
Remove them.
This commit is contained in:
Christian Hohnstaedt 2018-03-27 18:30:07 +02:00
parent 6d6a29ad0b
commit 3eef4bd12b
15 changed files with 15 additions and 14 deletions

View File

@ -304,6 +304,7 @@ bool pkcs11::selectToken(slotid *slot, QWidget *w)
ui.image->setPixmap(*MainWindow::scardImg);
ui.tokenBox->addItems(slotnames);
ui.buttonBox->button(QDialogButtonBox::Ok)->setText(QObject::tr("Select"));
select_slot->setWindowTitle(XCA_TITLE);
if (select_slot->exec() == 0) {
delete select_slot;
return false;

View File

@ -51,7 +51,7 @@ class DbTransaction
#define Transaction DbTransaction __trans
#define TransBegin() __trans.begin(__FILE__, __LINE__)
#define TransThrow() if (!__trans.begin(__FILE__, __LINE__)) { \
throw errorEx(tr("Failed to start a database transaction")); }
throw errorEx(QObject::tr("Failed to start a database transaction")); }
#define TransCommit() __trans.commit(__FILE__, __LINE__)
#define TransRollback() __trans.rollback(__FILE__, __LINE__)
#define TransDone(e) __trans.done(e, __FILE__, __LINE__);

View File

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
<string/>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>

View File

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
<string/>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>

View File

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>New Key</string>
<string/>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>

View File

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
<string/>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>

View File

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Select Token</string>
<string/>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>

View File

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>TimeInput</string>
<string/>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>

View File

@ -22,7 +22,7 @@ CrlDetail::CrlDetail(MainWindow *mainwin)
{
mw = mainwin;
setupUi(this);
setWindowTitle(tr(XCA_TITLE));
setWindowTitle(XCA_TITLE);
image->setPixmap(*MainWindow::revImg);
issuerSqlId = QVariant();

View File

@ -21,7 +21,7 @@ KeyDetail::KeyDetail(QWidget *parent)
:QDialog(parent)
{
setupUi(this);
setWindowTitle(tr(XCA_TITLE));
setWindowTitle(XCA_TITLE);
image->setPixmap(*MainWindow::keyImg);
keyModulus->setFont(XCA_application::tableFont);
tabWidget->setCurrentIndex(0);

View File

@ -6,7 +6,7 @@
*/
#include "lib/pki_scard.h"
#include "XcaTreeView.h"
#include "KeyTreeView.h"
#include "MainWindow.h"
#include <QAbstractItemModel>
#include <QAbstractItemView>

View File

@ -129,7 +129,7 @@ void MainWindow::help()
ui.textbox->setSource(QUrl(uri));
ui.textbox->setSearchPaths(QStringList(path));
h->setWindowTitle(tr(XCA_TITLE));
h->setWindowTitle(XCA_TITLE);
h->show();
}

View File

@ -130,7 +130,7 @@ NewKey::NewKey(QWidget *parent, QString name)
QList<keyListItem> keytypes;
setupUi(this);
setWindowTitle(tr(XCA_TITLE));
setWindowTitle(XCA_TITLE);
image->setPixmap(*MainWindow::keyImg);
if (!name.isEmpty())

View File

@ -15,8 +15,8 @@
OidResolver::OidResolver(QWidget *parent)
:QWidget(parent)
{
setWindowTitle(tr(XCA_TITLE));
setupUi(this);
setWindowTitle(XCA_TITLE);
}
void OidResolver::searchOid(QString s)

View File

@ -6,7 +6,7 @@
*/
#include "lib/pki_temp.h"
#include "XcaTreeView.h"
#include "TempTreeView.h"
#include "MainWindow.h"
#include <QAbstractItemModel>
#include <QAbstractItemView>