MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / FormatLocaleTerritoryAndLanguage

Method FormatLocaleTerritoryAndLanguage

src/TranslationManager.cpp:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57QString 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
68void TranslationManager::loadSystemDefaultTranslation()
69{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected