[Translate] Introduce an option to translate IMs

If Local chat is being translated, IM translation is on by default.
IM translation can be toggled from the drop down(flyout) menu of IMs.
Option is not shown if translation is not configured.

Translators: floater_instant_message.xml and floater_instant_message_concisebuttons.xml have two new strings for you to translate.
This commit is contained in:
Inusaito Sayori
2015-02-17 22:00:22 -05:00
parent 40afac6ae0
commit cbc7782b3a
6 changed files with 110 additions and 31 deletions

View File

@@ -4261,7 +4261,7 @@ void process_chat_from_simulator(LLMessageSystem *msg, void **user_data)
{
if (ircstyle)
{
mesg.erase(4);
mesg.erase(0, 4);
}
const std::string from_lang = ""; // leave empty to trigger autodetect
const std::string to_lang = LLTranslate::getTranslateLanguage();