diff --git a/indra/newview/fschathistory.cpp b/indra/newview/fschathistory.cpp index f6ec3d6283..a0f471f17e 100644 --- a/indra/newview/fschathistory.cpp +++ b/indra/newview/fschathistory.cpp @@ -88,11 +88,11 @@ std::string prefixIM(std::string from, const LLChat& chat) { if (chat.mChatType == CHAT_TYPE_IM) { - from = LLTrans::getString("IMPrefix") + from; + from = LLTrans::getString("IMPrefix") + " " + from; } else if (chat.mChatType == CHAT_TYPE_IM_GROUP) { - from = LLTrans::getString("IMPrefix") + chat.mFromNameGroup + from; + from = LLTrans::getString("IMPrefix") + " " + chat.mFromNameGroup + from; } return from; @@ -661,7 +661,7 @@ private: mFrom = ""; if (chat_type == CHAT_TYPE_IM || chat_type == CHAT_TYPE_IM_GROUP) { - mFrom = LLTrans::getString("IMPrefix"); + mFrom = LLTrans::getString("IMPrefix") + " "; if(!group.empty()) { mFrom.append(group); @@ -1136,7 +1136,7 @@ void FSChatHistory::appendMessage(const LLChat& chat, const LLSD &args, const LL mLastFromName = chat.mFromName; - //if (chat.mChatType == CHAT_TYPE_IM) mLastFromName = LLTrans::getString("IMPrefix") + mLastFromName; + //if (chat.mChatType == CHAT_TYPE_IM) mLastFromName = LLTrans::getString("IMPrefix") + " " + mLastFromName; mLastFromName = prefixIM(mLastFromName, chat); mLastFromID = chat.mFromID; mLastMessageTime = new_message_time; diff --git a/indra/newview/fsconsoleutils.cpp b/indra/newview/fsconsoleutils.cpp index 78eb233e1c..fbe28727c2 100644 --- a/indra/newview/fsconsoleutils.cpp +++ b/indra/newview/fsconsoleutils.cpp @@ -283,6 +283,6 @@ void FSConsoleUtils::onProccessInstantMessageNameLookup(const LLUUID& agent_id, textColor = LGGContactSets::getInstance()->getFriendColor(agent_id); } - gConsole->addConsoleLine(LLTrans::getString("IMPrefix") + senderName + delimiter + message, textColor); + gConsole->addConsoleLine("IM: " + senderName + delimiter + message, textColor); gConsole->setVisible(!isNearbyChatVisible()); } diff --git a/indra/newview/fsfloaternearbychat.cpp b/indra/newview/fsfloaternearbychat.cpp index 5fa05c26ce..6ceed39ad2 100644 --- a/indra/newview/fsfloaternearbychat.cpp +++ b/indra/newview/fsfloaternearbychat.cpp @@ -258,13 +258,14 @@ void FSFloaterNearbyChat::addMessage(const LLChat& chat,bool archive,const LLSD { if (gSavedSettings.getBOOL("FSLogIMInChatHistory")) { + //from_name = "IM: " + from_name; if (chat.mChatType == CHAT_TYPE_IM_GROUP && chat.mFromNameGroup != "") { - from_name = LLTrans::getString("IMPrefix") + chat.mFromNameGroup + from_name; + from_name = "IM: " + chat.mFromNameGroup + from_name; } else { - from_name = LLTrans::getString("IMPrefix") + from_name; + from_name = "IM: " + from_name; } // FS:LO FIRE-5230 - Chat Console Improvement: Replacing the "IM" in front of group chat messages with the actual group name } @@ -525,7 +526,7 @@ void FSFloaterNearbyChat::loadHistory() // Ansariel: Strip IM prefix so we can properly // retrieve the UUID in case we got a // saved IM in nearby chat history. - std::string im_prefix = LLTrans::getString("IMPrefix"); + std::string im_prefix = "IM: "; size_t im_prefix_found = from.find(im_prefix); if (im_prefix_found != std::string::npos) { diff --git a/indra/newview/lllogchat.cpp b/indra/newview/lllogchat.cpp index f22e88e724..eaea5767e8 100755 --- a/indra/newview/lllogchat.cpp +++ b/indra/newview/lllogchat.cpp @@ -784,7 +784,7 @@ bool LLChatLogParser::parse(std::string& raw, LLSD& im, const LLSD& parse_params std::string name = name_and_text[IDX_NAME]; // Ansariel: Handle the case an IM was stored in nearby chat history - if (name == LLTrans::getString("IMPrefix")) + if (name == "IM:") { U32 divider_pos = stuff.find(NAME_TEXT_DIVIDER, 3); if (divider_pos != std::string::npos && divider_pos < (stuff.length() - NAME_TEXT_DIVIDER.length())) diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml index f4ca6051cd..ae6d5b351d 100755 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -2407,7 +2407,7 @@ Try enclosing path to the editor with double quotes. Medium High Very High - IM: + IM: The settings control "[CONTROL_NAME]" should be at [VALUE_1]. diff --git a/indra/newview/skins/default/xui/es/strings.xml b/indra/newview/skins/default/xui/es/strings.xml index 01ac0a8c45..294858c102 100755 --- a/indra/newview/skins/default/xui/es/strings.xml +++ b/indra/newview/skins/default/xui/es/strings.xml @@ -5345,7 +5345,7 @@ Inténtalo incluyendo la ruta de acceso al editor entre comillas No hay conversaciones guardadas. Después de contactar con un residente o de que alguien contacte contigo, se mostrará aquí una entrada de registro. - MI: + MI: La configuración de "[CONTROL_NAME]" debería establecerse a [VALUE_1].