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

Method loadSystemDefaultTranslation

src/TranslationManager.cpp:68–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void TranslationManager::loadSystemDefaultTranslation()
69{
70 // The wrong translation file may be loaded when passing Locale::system() to loadTranslation function, e.g. "zh_CN" translation file will be loaded when the locale is "en_US". It's probably a Qt bug.
71 loadTranslation(QLocale(QLocale::system().name()));
72}
73
74void TranslationManager::loadTranslation(QLocale locale)
75{

Callers 1

initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected