Don't try to load the "i18n/i18n_en.qm".

This commit is contained in:
Nodir Temirkhodjaev 2017-09-09 09:26:37 +05:00
parent 5247b9e134
commit 2875afb284

View File

@ -130,6 +130,9 @@ void TranslationManager::installTranslator(int language, const QLocale &locale)
QTranslator *TranslationManager::loadTranslator(int language, const QLocale &locale)
{
if (!language)
return nullptr;
// Load .qm file
QTranslator *translator = new QTranslator(this);
translator->load(TRANSLATION_FILE_PREFIX + locale.name(), i18nDir());