1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 03:03:13 +02:00

Search all domains for language strings, fixes the mess that we used to use to translate strings in 3rd party modules

This commit is contained in:
Adam
2011-06-17 19:57:43 -04:00
parent 48e995ddf2
commit a1b36ec0a5
63 changed files with 767 additions and 633 deletions
+1 -5
View File
@@ -43,8 +43,6 @@ class CommandNSSetLanguage : public Command
}
nc->language = param != "en" ? param : "";
PopLanguage();
PushLanguage("anope", nc->language);
source.Reply(_("Language changed to \002English\002."));
return MOD_CONT;
@@ -62,9 +60,7 @@ class CommandNSSetLanguage : public Command
source.Reply(" en (English)");
for (unsigned j = 0; j < languages.size(); ++j)
{
PushLanguage("anope", languages[j]);
const Anope::string &langname = _("English");
PopLanguage();
const Anope::string &langname = anope_gettext(languages[j].c_str(), _("English"));
if (langname == "English")
continue;
source.Reply(" %s (%s)", languages[j].c_str(), langname.c_str());