mirror of
https://github.com/tnodir/fort
synced 2024-11-15 05:25:56 +00:00
Don't try to load the "i18n/i18n_en.qm".
This commit is contained in:
parent
5247b9e134
commit
2875afb284
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user