Fix translations

This commit is contained in:
Janek Bevendorff 2022-03-20 22:10:49 +01:00
parent 1ca358f3fd
commit 60f7744ec6
11 changed files with 4428 additions and 4472 deletions

File diff suppressed because it is too large Load Diff

View File

@ -515,7 +515,7 @@
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="placeholderText">
<string>~/.config/Mozilla/native-messaging-hosts/</string>
<string notr="true">~/.config/mozilla/native-messaging-hosts/</string>
</property>
</widget>
</item>

View File

@ -93,7 +93,7 @@ int Analyze::executeWithDatabase(QSharedPointer<Database> database, QSharedPoint
if (count > 0) {
out << QObject::tr("Password for '%1' has been leaked %2 time(s)!", "", count).arg(path).arg(count) << endl;
} else {
out << QObject::tr("Password for '%1' has been leaked!", "", count).arg(path) << endl;
out << QObject::tr("Password for '%1' has been leaked!").arg(path) << endl;
}
}

View File

@ -231,7 +231,7 @@ bool EntryAttachments::openAttachment(const QString& key, QString* errorMessage)
&& tmpFile.write(attachmentData) == attachmentData.size() && tmpFile.flush();
if (!saveOk && errorMessage) {
*errorMessage = tr("%1 - %2").arg(key, tmpFile.errorString());
*errorMessage = QString("%1 - %2").arg(key, tmpFile.errorString());
return false;
}

View File

@ -58,8 +58,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>664</width>
<height>1215</height>
<width>564</width>
<height>930</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_8">
@ -267,13 +267,13 @@
<string>On database unlock, show entries that </string>
</property>
<property name="specialValueText">
<string>are expired</string>
<string comment="On database unlock, show entries that...">have expired</string>
</property>
<property name="suffix">
<string> days</string>
<string comment="On database unlock, show entries that will expire within %1 days"> days</string>
</property>
<property name="prefix">
<string>will expire within </string>
<string comment="On database unlock, show entries that...">will expire within </string>
</property>
<property name="minimum">
<number>0</number>
@ -1182,7 +1182,7 @@
<item row="1" column="1">
<widget class="QSpinBox" name="autoTypeRetypeTimeSpinBox">
<property name="suffix">
<string> s</string>
<string comment="Seconds"> sec</string>
</property>
<property name="minimum">
<number>0</number>

View File

@ -1138,9 +1138,10 @@ void DatabaseWidget::loadDatabase(bool accepted)
if (!expiredEntries.isEmpty()) {
m_entryView->displaySearch(expiredEntries);
m_entryView->setFirstEntryActive();
m_searchingLabel->setText(expirationOffset == 0
? tr("Expired entries")
: tr("Entries expiring within %1 days").arg(expirationOffset));
m_searchingLabel->setText(
expirationOffset == 0
? tr("Expired entries")
: tr("Entries expiring within %1 day(s)", "", expirationOffset).arg(expirationOffset));
m_searchingLabel->setVisible(true);
}
}

View File

@ -817,6 +817,7 @@ void MainWindow::setMenuActionState(DatabaseWidget::Mode mode)
m_ui->actionEntryRestore->setVisible(entriesSelected && recycleBinSelected);
m_ui->actionEntryRestore->setEnabled(entriesSelected && recycleBinSelected);
m_ui->actionEntryRestore->setText(tr("Restore Entry(s)", "", dbWidget->numberOfSelectedEntries()));
m_ui->actionEntryRestore->setToolTip(tr("Restore Entry(s)", "", dbWidget->numberOfSelectedEntries()));
m_ui->actionEntryMoveUp->setVisible(!sorted);
m_ui->actionEntryMoveDown->setVisible(!sorted);
m_ui->actionEntryMoveUp->setEnabled(singleEntrySelected && !sorted && entryIndex > 0);

View File

@ -216,7 +216,7 @@
<x>0</x>
<y>0</y>
<width>800</width>
<height>22</height>
<height>21</height>
</rect>
</property>
<property name="contextMenuPolicy">
@ -1072,10 +1072,10 @@
</action>
<action name="actionEntryRestore">
<property name="text">
<string>Restore Entry(s)</string>
<string notr="true" extracomment="Translatable string with plural form set in CPP file">Restore Entry(s)</string>
</property>
<property name="toolTip">
<string>Restore Entry(s)</string>
<string notr="true" extracomment="Translatable string with plural form set in CPP file">Restore Entry(s)</string>
</property>
<property name="shortcut">
<string notr="true">Ctrl+R</string>

View File

@ -22,7 +22,7 @@
</font>
</property>
<property name="text">
<string>000000</string>
<string notr="true">000000</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>

View File

@ -58,7 +58,7 @@
<item>
<widget class="QLabel" name="decryptionTimeValueLabel">
<property name="text">
<string>?? s</string>
<string notr="true">?? s</string>
</property>
</widget>
</item>
@ -120,7 +120,7 @@
<item>
<widget class="QLabel" name="minTimeLabel">
<property name="text">
<string>?? ms</string>
<string notr="true">?? ms</string>
</property>
</widget>
</item>
@ -140,7 +140,7 @@
<item>
<widget class="QLabel" name="maxTimeLabel">
<property name="text">
<string>? s</string>
<string notr="true">? s</string>
</property>
</widget>
</item>

View File

@ -188,7 +188,7 @@
<string>Add new window association</string>
</property>
<property name="text">
<string>+</string>
<string comment="Add item">+</string>
</property>
</widget>
</item>
@ -216,7 +216,7 @@
<string>Remove selected window association</string>
</property>
<property name="text">
<string>-</string>
<string comment="Remove item">-</string>
</property>
</widget>
</item>