Updated translation file and fixed typos

This commit is contained in:
Jonathan White 2019-10-20 22:16:19 -04:00
parent af263fd80d
commit 34bbf8b3a1
11 changed files with 1786 additions and 326 deletions

File diff suppressed because it is too large Load Diff

View File

@ -78,5 +78,5 @@ void Analyze::printHibpFinding(const Entry* entry, int count, QTextStream& out)
path.prepend("/").prepend(g->name()); 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;
} }

View File

@ -29,11 +29,11 @@ const QCommandLineOption Export::FormatOption =
QCommandLineOption(QStringList() << "f" QCommandLineOption(QStringList() << "f"
<< "format", << "format",
QObject::tr("Format to use when exporting. Available choices are xml or csv. Defaults to xml."), 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() Export::Export()
{ {
name = QString("export"); name = QStringLiteral("export");
options.append(Export::FormatOption); options.append(Export::FormatOption);
description = QObject::tr("Exports the content of a database to standard output in the specified format."); description = QObject::tr("Exports the content of a database to standard output in the specified format.");
} }
@ -44,7 +44,7 @@ int Export::executeWithDatabase(QSharedPointer<Database> database, QSharedPointe
TextStream errorTextStream(Utils::STDERR, QIODevice::WriteOnly); TextStream errorTextStream(Utils::STDERR, QIODevice::WriteOnly);
QString format = parser->value(Export::FormatOption); QString format = parser->value(Export::FormatOption);
if (format.isEmpty() || format == QString("xml")) { if (format.isEmpty() || format == QStringLiteral("xml")) {
QByteArray xmlData; QByteArray xmlData;
QString errorMessage; QString errorMessage;
if (!database->extract(xmlData, &errorMessage)) { if (!database->extract(xmlData, &errorMessage)) {
@ -52,7 +52,7 @@ int Export::executeWithDatabase(QSharedPointer<Database> database, QSharedPointe
return EXIT_FAILURE; return EXIT_FAILURE;
} }
outputTextStream << xmlData.constData() << endl; outputTextStream << xmlData.constData() << endl;
} else if (format == QString("csv")) { } else if (format == QStringLiteral("csv")) {
CsvExporter csvExporter; CsvExporter csvExporter;
outputTextStream << csvExporter.exportDatabase(database); outputTextStream << csvExporter.exportDatabase(database);
} else { } else {

View File

@ -126,7 +126,7 @@ QSharedPointer<PasswordGenerator> Generate::createGenerator(QSharedPointer<QComm
passwordGenerator->setExcludedChars(parser->value(Generate::ExcludeCharsOption)); passwordGenerator->setExcludedChars(parser->value(Generate::ExcludeCharsOption));
if (!passwordGenerator->isValid()) { 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); return QSharedPointer<PasswordGenerator>(nullptr);
} }

View File

@ -11,7 +11,7 @@
</rect> </rect>
</property> </property>
<property name="accessibleName"> <property name="accessibleName">
<string>Unlock KePassXC Database</string> <string>Unlock KeePassXC Database</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,1,0,2"> <layout class="QVBoxLayout" name="verticalLayout" stretch="0,1,0,2">
<item> <item>
@ -86,7 +86,7 @@
<item> <item>
<widget class="ElidedLabel" name="fileNameLabel"> <widget class="ElidedLabel" name="fileNameLabel">
<property name="text"> <property name="text">
<string>filename.kdbx</string> <string notr="true">filename.kdbx</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -380,7 +380,7 @@
}</string> }</string>
</property> </property>
<property name="text"> <property name="text">
<string>?</string> <string notr="true">?</string>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>

View File

@ -100,7 +100,7 @@
</font> </font>
</property> </property>
<property name="text"> <property name="text">
<string>1234567</string> <string notr="true">1234567</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -29,7 +29,7 @@
</font> </font>
</property> </property>
<property name="text"> <property name="text">
<string>Downloading favicon 0/0...</string> <string notr="true">Downloading favicon 0/0...</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -765,7 +765,7 @@
<string>&amp;Keyboard Shortcuts</string> <string>&amp;Keyboard Shortcuts</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+/</string> <string notr="true">Ctrl+/</string>
</property> </property>
</action> </action>
</widget> </widget>

View File

@ -171,7 +171,7 @@ QProgressBar::chunk {
<item row="0" column="2"> <item row="0" column="2">
<widget class="QToolButton" name="togglePasswordButton"> <widget class="QToolButton" name="togglePasswordButton">
<property name="accessibleName"> <property name="accessibleName">
<string>Toggle password visibiity</string> <string>Toggle password visibility</string>
</property> </property>
<property name="accessibleDescription"> <property name="accessibleDescription">
<string/> <string/>

View File

@ -232,7 +232,7 @@
</font> </font>
</property> </property>
<property name="accessibleName"> <property name="accessibleName">
<string>Field seperation</string> <string>Field separation</string>
</property> </property>
<property name="editable"> <property name="editable">
<bool>false</bool> <bool>false</bool>

View File

@ -129,7 +129,7 @@
<item row="9" column="0" alignment="Qt::AlignLeft|Qt::AlignTop"> <item row="9" column="0" alignment="Qt::AlignLeft|Qt::AlignTop">
<widget class="QCheckBox" name="notesEnabled"> <widget class="QCheckBox" name="notesEnabled">
<property name="toolTip"> <property name="toolTip">
<string>Toggle notes visibile</string> <string>Toggle notes visible</string>
</property> </property>
<property name="accessibleName"> <property name="accessibleName">
<string>Toggle notes visible</string> <string>Toggle notes visible</string>