mirror of
https://github.com/anope/anope.git
synced 2026-06-25 09:16:38 +02:00
Update FindGettext.cmake for new Windows stuff and fix language.cpp
compile
This commit is contained in:
@@ -76,8 +76,6 @@ const char *Language::Translate(const NickCore *nc, const char *string)
|
||||
|
||||
#if GETTEXT_FOUND
|
||||
|
||||
extern "C" int _nl_msg_cat_cntr;
|
||||
|
||||
const char *Language::Translate(const char *lang, const char *string)
|
||||
{
|
||||
if (!string || !*string)
|
||||
@@ -86,7 +84,6 @@ const char *Language::Translate(const char *lang, const char *string)
|
||||
if (!lang || !*lang)
|
||||
lang = Config->DefLanguage.c_str();
|
||||
|
||||
++_nl_msg_cat_cntr;
|
||||
#ifdef _WIN32
|
||||
SetThreadLocale(MAKELCID(MAKELANGID(WindowsGetLanguage(lang), SUBLANG_DEFAULT), SORT_DEFAULT));
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user