summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2011-09-13 03:20:58 +0300
committerVadim ProductEngine <vsavchuk@productengine.com>2011-09-13 03:20:58 +0300
commitd6c8d3dca8cad5d904d3fd4d6eb85ef2a76c0931 (patch)
treed8f513b5ca2c731fca195f29f737ad606e09426d /indra/newview/llviewermessage.cpp
parent8652b2d1052b989e32f4462a07372901d37f9586 (diff)
STORM-1577 WIP Show translation errors in chat.
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rw-r--r--indra/newview/llviewermessage.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index ff02214194..0eae6e6383 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -3149,7 +3149,9 @@ protected:
void handleFailure(int status, const std::string& err_msg)
{
- m_chat.mText += " (?)";
+ std::string msg = LLTrans::getString("TranslationFailed", LLSD().with("[REASON]", err_msg));
+ LLStringUtil::replaceString(msg, "\n", " "); // we want one-line error messages
+ m_chat.mText += " (" + msg + ")";
LLNotificationsUI::LLNotificationManager::instance().onChat(m_chat, m_toastArgs);
}