Skip to content

Commit

Permalink
DolphinQt: reduce warnings about MO files
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilka committed Oct 28, 2018
1 parent 4886285 commit 122c7e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Core/DolphinQt/Translation.cpp
Expand Up @@ -148,7 +148,7 @@ class MoFile

if (!file)
{
ERROR_LOG(COMMON, "Error reading MO file '%s'", filename.c_str());
WARN_LOG(COMMON, "Error reading MO file '%s'", filename.c_str());
m_data = {};
return;
}
Expand Down Expand Up @@ -264,6 +264,9 @@ static bool TryInstallTranslator(const QString& exact_language_code)
#elif defined __APPLE__
File::GetBundleDirectory() +
StringFromFormat("/Contents/Resources/%s.lproj/dolphin-emu.mo", lang.c_str())
#elif defined LINUX_LOCAL_DEV
File::GetExeDirectory() + StringFromFormat("/../Source/Core/DolphinQt/%s/dolphin-emu.mo",
lang.c_str())
#else
StringFromFormat(DATA_DIR "/../locale/%s/LC_MESSAGES/dolphin-emu.mo", lang.c_str())
#endif
Expand All @@ -281,6 +284,7 @@ static bool TryInstallTranslator(const QString& exact_language_code)
}
translator->deleteLater();
}
ERROR_LOG(COMMON, "No suitable translation file found");
return false;
}

Expand Down

0 comments on commit 122c7e0

Please sign in to comment.