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

Allow users to change their language to english when the default language is not

This commit is contained in:
Adam
2013-06-12 02:30:21 +00:00
parent ebda113f44
commit d463ae3b1e
3 changed files with 15 additions and 11 deletions
+4 -1
View File
@@ -41,7 +41,7 @@ void Language::InitLanguages()
Anope::string language;
while (sep.GetToken(language))
{
const Anope::string &lang_name = Translate(language.c_str(), "English");
const Anope::string &lang_name = Translate(language.c_str(), _("English"));
if (lang_name == "English")
{
Log() << "Unable to use language " << language;
@@ -86,6 +86,9 @@ const char *Language::Translate(const char *lang, const char *string)
if (!lang || !*lang)
lang = Config->DefLanguage.c_str();
if (Anope::string(lang) == "en")
return string != NULL ? string : "";
++_nl_msg_cat_cntr;
#ifdef _WIN32