| 55 | } |
| 56 | |
| 57 | QString TranslationManager::FormatLocaleTerritoryAndLanguage(QLocale &locale) |
| 58 | { |
| 59 | #if QT_VERSION < QT_VERSION_CHECK(6, 2, 0) |
| 60 | const QString territory = QLocale::countryToString(locale.country()); |
| 61 | #else |
| 62 | const QString territory = QLocale::territoryToString(locale.territory()); |
| 63 | #endif |
| 64 | const QString language = QLocale::languageToString(locale.language()); |
| 65 | return QStringLiteral("%1 (%2)").arg(language, territory); |
| 66 | } |
| 67 | |
| 68 | void TranslationManager::loadSystemDefaultTranslation() |
| 69 | { |
nothing calls this directly
no outgoing calls
no test coverage detected