feat(i18n): ship Spanish, German and Italian catalogues
The runtime catalogues only covered English, so a good part of the install base had no choice but the language the wording was written in. The three new catalogues cost one text file each, compiled into the binary: nothing else changes for a translator.
This commit is contained in:
5 files changed
+1232
-1
No files matched your search
@@ -128,7 +128,8 @@ void AppSettings::setDragDropEnabled(bool enabled) {
|
||||
QStringList AppSettings::knownLanguages() {
|
||||
// The languages a catalogue can be written for. French needs no catalogue:
|
||||
// it is the language the wording is written in.
|
||||
return {QStringLiteral("fr"), QStringLiteral("en")};
|
||||
return {QStringLiteral("fr"), QStringLiteral("en"), QStringLiteral("es"),
|
||||
QStringLiteral("de"), QStringLiteral("it")};
|
||||
}
|
||||
|
||||
QString AppSettings::languageName(const QString& code) {
|
||||
@@ -136,6 +137,9 @@ QString AppSettings::languageName(const QString& code) {
|
||||
// looks for "English", not for "anglais".
|
||||
if (code == QLatin1String("fr")) return QStringLiteral("Français");
|
||||
if (code == QLatin1String("en")) return QStringLiteral("English");
|
||||
if (code == QLatin1String("es")) return QStringLiteral("Español");
|
||||
if (code == QLatin1String("de")) return QStringLiteral("Deutsch");
|
||||
if (code == QLatin1String("it")) return QStringLiteral("Italiano");
|
||||
return code;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user