| 66 | } |
| 67 | |
| 68 | void 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 | |
| 74 | void TranslationManager::loadTranslation(QLocale locale) |
| 75 | { |