1
0
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:
Adam
2014-05-31 16:58:31 -04:00
parent b578e32531
commit 16e0b72d2d
3 changed files with 7 additions and 22 deletions
-3
View File
@@ -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