Skip to content

Commit

Permalink
Updated translation file and fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
droidmonkey committed Oct 24, 2019
1 parent af263fd commit 34bbf8b
Show file tree
Hide file tree
Showing 11 changed files with 1,794 additions and 334 deletions.
2,098 changes: 1,779 additions & 319 deletions share/translations/keepassx_en.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/cli/Analyze.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ void Analyze::printHibpFinding(const Entry* entry, int count, QTextStream& out)
path.prepend("/").prepend(g->name());
}

out << QObject::tr("Password for '%1' has been leaked %2 times!").arg(path).arg(count) << endl;
out << QObject::tr("Password for '%1' has been leaked %2 time(s)!", "", count).arg(path).arg(count) << endl;
}
8 changes: 4 additions & 4 deletions src/cli/Export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ const QCommandLineOption Export::FormatOption =
QCommandLineOption(QStringList() << "f"
<< "format",
QObject::tr("Format to use when exporting. Available choices are xml or csv. Defaults to xml."),
QObject::tr("xml|csv"));
QStringLiteral("xml|csv"));

Export::Export()
{
name = QString("export");
name = QStringLiteral("export");
options.append(Export::FormatOption);
description = QObject::tr("Exports the content of a database to standard output in the specified format.");
}
Expand All @@ -44,15 +44,15 @@ int Export::executeWithDatabase(QSharedPointer<Database> database, QSharedPointe
TextStream errorTextStream(Utils::STDERR, QIODevice::WriteOnly);

QString format = parser->value(Export::FormatOption);
if (format.isEmpty() || format == QString("xml")) {
if (format.isEmpty() || format == QStringLiteral("xml")) {
QByteArray xmlData;
QString errorMessage;
if (!database->extract(xmlData, &errorMessage)) {
errorTextStream << QObject::tr("Unable to export database to XML: %1").arg(errorMessage) << endl;
return EXIT_FAILURE;
}
outputTextStream << xmlData.constData() << endl;
} else if (format == QString("csv")) {
} else if (format == QStringLiteral("csv")) {
CsvExporter csvExporter;
outputTextStream << csvExporter.exportDatabase(database);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/Generate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ QSharedPointer<PasswordGenerator> Generate::createGenerator(QSharedPointer<QComm
passwordGenerator->setExcludedChars(parser->value(Generate::ExcludeCharsOption));

if (!passwordGenerator->isValid()) {
errorTextStream << QObject::tr("invalid password generator after applying all options") << endl;
errorTextStream << QObject::tr("Invalid password generator after applying all options") << endl;
return QSharedPointer<PasswordGenerator>(nullptr);
}

Expand Down
6 changes: 3 additions & 3 deletions src/gui/DatabaseOpenWidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</rect>
</property>
<property name="accessibleName">
<string>Unlock KePassXC Database</string>
<string>Unlock KeePassXC Database</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,1,0,2">
<item>
Expand Down Expand Up @@ -86,7 +86,7 @@
<item>
<widget class="ElidedLabel" name="fileNameLabel">
<property name="text">
<string>filename.kdbx</string>
<string notr="true">filename.kdbx</string>
</property>
</widget>
</item>
Expand Down Expand Up @@ -380,7 +380,7 @@
}</string>
</property>
<property name="text">
<string>?</string>
<string notr="true">?</string>
</property>
<property name="iconSize">
<size>
Expand Down
2 changes: 1 addition & 1 deletion src/gui/EntryPreviewWidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
</font>
</property>
<property name="text">
<string>1234567</string>
<string notr="true">1234567</string>
</property>
</widget>
</item>
Expand Down
2 changes: 1 addition & 1 deletion src/gui/IconDownloaderDialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</font>
</property>
<property name="text">
<string>Downloading favicon 0/0...</string>
<string notr="true">Downloading favicon 0/0...</string>
</property>
</widget>
</item>
Expand Down
2 changes: 1 addition & 1 deletion src/gui/MainWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@
<string>&amp;Keyboard Shortcuts</string>
</property>
<property name="shortcut">
<string>Ctrl+/</string>
<string notr="true">Ctrl+/</string>
</property>
</action>
</widget>
Expand Down
2 changes: 1 addition & 1 deletion src/gui/PasswordGeneratorWidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ QProgressBar::chunk {
<item row="0" column="2">
<widget class="QToolButton" name="togglePasswordButton">
<property name="accessibleName">
<string>Toggle password visibiity</string>
<string>Toggle password visibility</string>
</property>
<property name="accessibleDescription">
<string/>
Expand Down
2 changes: 1 addition & 1 deletion src/gui/csvImport/CsvImportWidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
</font>
</property>
<property name="accessibleName">
<string>Field seperation</string>
<string>Field separation</string>
</property>
<property name="editable">
<bool>false</bool>
Expand Down
2 changes: 1 addition & 1 deletion src/gui/entry/EditEntryWidgetMain.ui
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
<item row="9" column="0" alignment="Qt::AlignLeft|Qt::AlignTop">
<widget class="QCheckBox" name="notesEnabled">
<property name="toolTip">
<string>Toggle notes visibile</string>
<string>Toggle notes visible</string>
</property>
<property name="accessibleName">
<string>Toggle notes visible</string>
Expand Down

0 comments on commit 34bbf8b

Please sign in to comment.