Add English and German UI localization

This commit is contained in:
Sebastian Palencsar
2026-05-20 18:33:53 +02:00
parent 8548fc5ac6
commit 1038f041c7
8 changed files with 319 additions and 63 deletions

View File

@@ -311,7 +311,7 @@ void RadioBackend::addManualStation(const QString &name, const QString &url, con
station->setName(name.trimmed());
station->setUrl(url.trimmed());
station->setUrlResolved(url.trimmed());
station->setCountry(country.trimmed().isEmpty() ? QStringLiteral("Manual") : country.trimmed());
station->setCountry(country.trimmed().isEmpty() ? tr("Manual") : country.trimmed());
station->setCodec(QStringLiteral("unknown"));
station->setBitrate(0);
station->setVotes(0);
@@ -406,11 +406,11 @@ void RadioBackend::resumeLastStation()
return;
}
QVariantMap station;
station.insert(QStringLiteral("name"), m_lastStationName.isEmpty() ? QStringLiteral("Zuletzt gehoert") : m_lastStationName);
station.insert(QStringLiteral("name"), m_lastStationName.isEmpty() ? tr("Last played") : m_lastStationName);
station.insert(QStringLiteral("urlResolved"), m_lastStationUrl);
recordRecentStation(station);
saveState();
m_player->playUrl(m_lastStationUrl, m_lastStationName.isEmpty() ? QStringLiteral("Zuletzt gehört") : m_lastStationName);
m_player->playUrl(m_lastStationUrl, m_lastStationName.isEmpty() ? tr("Last played") : m_lastStationName);
}
void RadioBackend::loadFavorites()