1
0
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:
Adam
2014-05-21 10:47:50 -04:00
parent f627a3bacd
commit 7a2d027e1d
+3
View File
@@ -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));