Skip to content

Commit

Permalink
Fix translations
Browse files Browse the repository at this point in the history
  • Loading branch information
phoerious committed Mar 20, 2022
1 parent 1ca358f commit 60f7744
Show file tree
Hide file tree
Showing 11 changed files with 2,690 additions and 2,734 deletions.
5,380 changes: 2,667 additions & 2,713 deletions share/translations/keepassxc_en.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/browser/BrowserSettingsWidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/cli/Analyze.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/EntryAttachments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
12 changes: 6 additions & 6 deletions src/gui/ApplicationSettingsWidgetGeneral.ui
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
7 changes: 4 additions & 3 deletions src/gui/DatabaseWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions src/gui/MainWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
<x>0</x>
<y>0</y>
<width>800</width>
<height>22</height>
<height>21</height>
</rect>
</property>
<property name="contextMenuPolicy">
Expand Down Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/gui/TotpDialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
6 changes: 3 additions & 3 deletions src/gui/dbsettings/DatabaseSettingsWidgetEncryption.ui
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<item>
<widget class="QLabel" name="decryptionTimeValueLabel">
<property name="text">
<string>?? s</string>
<string notr="true">?? s</string>
</property>
</widget>
</item>
Expand Down Expand Up @@ -120,7 +120,7 @@
<item>
<widget class="QLabel" name="minTimeLabel">
<property name="text">
<string>?? ms</string>
<string notr="true">?? ms</string>
</property>
</widget>
</item>
Expand All @@ -140,7 +140,7 @@
<item>
<widget class="QLabel" name="maxTimeLabel">
<property name="text">
<string>? s</string>
<string notr="true">? s</string>
</property>
</widget>
</item>
Expand Down
4 changes: 2 additions & 2 deletions src/gui/entry/EditEntryWidgetAutoType.ui
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
<string>Add new window association</string>
</property>
<property name="text">
<string>+</string>
<string comment="Add item">+</string>
</property>
</widget>
</item>
Expand Down Expand Up @@ -216,7 +216,7 @@
<string>Remove selected window association</string>
</property>
<property name="text">
<string>-</string>
<string comment="Remove item">-</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit 60f7744

Please sign in to comment.