diff options
author | McCabe Maxsted | 2012-02-18 01:03:43 -0700 |
---|---|---|
committer | McCabe Maxsted | 2012-02-18 01:06:38 -0700 |
commit | d44056f6d5430e4c8d139ae49783a554c4eee982 (patch) | |
tree | d85512a591376edbbc664410ee319883eb7ffee2 /linden/indra/newview/llfloaterchat.cpp | |
parent | Added the new ISS installer template to cmake (diff) | |
download | meta-impy-d44056f6d5430e4c8d139ae49783a554c4eee982.zip meta-impy-d44056f6d5430e4c8d139ae49783a554c4eee982.tar.gz meta-impy-d44056f6d5430e4c8d139ae49783a554c4eee982.tar.bz2 meta-impy-d44056f6d5430e4c8d139ae49783a554c4eee982.tar.xz |
Removed google translate since the service is no longer available
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloaterchat.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/linden/indra/newview/llfloaterchat.cpp b/linden/indra/newview/llfloaterchat.cpp index 1142e5c..2cca8ce 100644 --- a/linden/indra/newview/llfloaterchat.cpp +++ b/linden/indra/newview/llfloaterchat.cpp | |||
@@ -115,8 +115,6 @@ LLFloaterChat::LLFloaterChat(const LLSD& seed) | |||
115 | LLUICtrlFactory::getInstance()->buildFloater(this,"floater_chat_history.xml",&getFactoryMap(),no_open); | 115 | LLUICtrlFactory::getInstance()->buildFloater(this,"floater_chat_history.xml",&getFactoryMap(),no_open); |
116 | 116 | ||
117 | childSetCommitCallback("show mutes",onClickToggleShowMute,this); //show mutes | 117 | childSetCommitCallback("show mutes",onClickToggleShowMute,this); //show mutes |
118 | childSetCommitCallback("translate chat",onClickToggleTranslateChat,this); | ||
119 | childSetValue("translate chat", gSavedSettings.getBOOL("TranslateChat")); | ||
120 | childSetVisible("Chat History Editor with mute",FALSE); | 118 | childSetVisible("Chat History Editor with mute",FALSE); |
121 | childSetAction("toggle_active_speakers_btn", onClickToggleActiveSpeakers, this); | 119 | childSetAction("toggle_active_speakers_btn", onClickToggleActiveSpeakers, this); |
122 | setDefaultBtn("Chat"); | 120 | setDefaultBtn("Chat"); |
@@ -446,26 +444,6 @@ void LLFloaterChat::onClickToggleShowMute(LLUICtrl* caller, void *data) | |||
446 | } | 444 | } |
447 | } | 445 | } |
448 | 446 | ||
449 | // Update the "TranslateChat" pref after "translate chat" checkbox is toggled in | ||
450 | // the "Local Chat" floater. | ||
451 | //static | ||
452 | void LLFloaterChat::onClickToggleTranslateChat(LLUICtrl* caller, void *data) | ||
453 | { | ||
454 | LLFloaterChat* floater = (LLFloaterChat*)data; | ||
455 | |||
456 | BOOL translate_chat = floater->getChild<LLCheckBoxCtrl>("translate chat")->get(); | ||
457 | gSavedSettings.setBOOL("TranslateChat", translate_chat); | ||
458 | } | ||
459 | |||
460 | // Update the "translate chat" checkbox after the "TranslateChat" pref is set in | ||
461 | // some other place (e.g. prefs dialog). | ||
462 | //static | ||
463 | void LLFloaterChat::updateSettings() | ||
464 | { | ||
465 | BOOL translate_chat = gSavedSettings.getBOOL("TranslateChat"); | ||
466 | LLFloaterChat::getInstance(LLSD())->getChild<LLCheckBoxCtrl>("translate chat")->set(translate_chat); | ||
467 | } | ||
468 | |||
469 | BOOL checkStringInText(const std::string &text_line, std::string textToMatch) | 447 | BOOL checkStringInText(const std::string &text_line, std::string textToMatch) |
470 | { | 448 | { |
471 | boost::smatch what; | 449 | boost::smatch what; |