1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 16:36:39 +02:00

Add English language file which users can edit to modify language strings

This commit is contained in:
Adam
2014-05-20 11:41:05 -04:00
parent e581158645
commit 4034b3054a
5 changed files with 10951 additions and 14 deletions
-7
View File
@@ -76,19 +76,12 @@ const char *Language::Translate(const NickCore *nc, const char *string)
#if GETTEXT_FOUND
/* Used by gettext to make it always dynamically load language strings (so we can drop them in while Anope is running) */
extern "C" int _nl_msg_cat_cntr;
const char *Language::Translate(const char *lang, const char *string)
{
if (!string || !*string)
return "";
if (!lang || !*lang)
lang = Config->DefLanguage.c_str();
if (Anope::string(lang) == "en")
return string;
++_nl_msg_cat_cntr;
#ifdef _WIN32