Qt: Add Spanish translation (#669)

Every string is translated except for two of the color themes `Cream`
and `Greetings Cat` as I'm unsure where to literally translate it or
keep the original name.
This commit is contained in:
Daniel López Guimaraes 2024-12-06 17:29:35 +00:00 committed by GitHub
parent 8940d78ea4
commit 4606be05ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 767 additions and 3 deletions

View file

@ -46,9 +46,10 @@ struct LanguageInfo {
// Please keep this list mostly in alphabetical order.
// Also, for Unicode characters in language names, use Unicode keycodes instead of writing out the name,
// as some compilers/toolchains may not enjoy Unicode in source files.
static std::array<LanguageInfo, 2> languages = {
static std::array<LanguageInfo, 3> languages = {
LanguageInfo(QStringLiteral(u"English"), "en"), // English
LanguageInfo(QStringLiteral(u"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC"), "el"), // Greek
LanguageInfo(QStringLiteral(u"Espa\u00F1ol"), "es"), // Spanish
};
QComboBox* ConfigWindow::createLanguageSelect() {
@ -88,4 +89,4 @@ QComboBox* ConfigWindow::createLanguageSelect() {
});
return select;
}
}