1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 08:56:37 +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
+3 -2
View File
@@ -243,10 +243,11 @@ void User::SendMessage(BotInfo *source, Anope::string msg)
Anope::string tok;
while (sep.GetToken(tok))
{
const char *translated_message = translate(this, tok.c_str());
if (Config->UsePrivmsg && ((!this->nc && Config->NSDefFlags.HasFlag(NI_MSG)) || (this->nc && this->nc->HasFlag(NI_MSG))))
ircdproto->SendPrivmsg(source, this->nick, "%s", tok.c_str());
ircdproto->SendPrivmsg(source, this->nick, "%s", translated_message);
else
ircdproto->SendNotice(source, this->nick, "%s", tok.c_str());
ircdproto->SendNotice(source, this->nick, "%s", translated_message);
}
}