mirror of
https://github.com/anope/anope.git
synced 2026-06-28 05:16:37 +02:00
Fix deflanguage from 4034b3054a, this shouldn't have been removed
This commit is contained in:
@@ -83,6 +83,9 @@ const char *Language::Translate(const char *lang, const char *string)
|
||||
if (!string || !*string)
|
||||
return "";
|
||||
|
||||
if (!lang || !*lang)
|
||||
lang = Config->DefLanguage.c_str();
|
||||
|
||||
++_nl_msg_cat_cntr;
|
||||
#ifdef _WIN32
|
||||
SetThreadLocale(MAKELCID(MAKELANGID(WindowsGetLanguage(lang), SUBLANG_DEFAULT), SORT_DEFAULT));
|
||||
|
||||
Reference in New Issue
Block a user