diff options
author | McCabe Maxsted | 2010-04-26 20:06:23 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-04-26 20:06:23 -0700 |
commit | e563e2c2cc66fa9f3b47c4814d70f9800d957026 (patch) | |
tree | a2a9ca5bfeaf747b76b744f007da061ad15110c2 /linden/indra/llui/llnotifications.cpp | |
parent | Merge commit 'jacek/next' into next (diff) | |
download | meta-impy-e563e2c2cc66fa9f3b47c4814d70f9800d957026.zip meta-impy-e563e2c2cc66fa9f3b47c4814d70f9800d957026.tar.gz meta-impy-e563e2c2cc66fa9f3b47c4814d70f9800d957026.tar.bz2 meta-impy-e563e2c2cc66fa9f3b47c4814d70f9800d957026.tar.xz |
Ported currency changes from Hippo (#237) and fixed some labels Hippo missed (also fixed #200 in the process)
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/llnotifications.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/llui/llnotifications.cpp b/linden/indra/llui/llnotifications.cpp index 58ec511..0b8bbbe 100644 --- a/linden/indra/llui/llnotifications.cpp +++ b/linden/indra/llui/llnotifications.cpp | |||
@@ -40,6 +40,8 @@ | |||
40 | #include <algorithm> | 40 | #include <algorithm> |
41 | #include <boost/regex.hpp> | 41 | #include <boost/regex.hpp> |
42 | 42 | ||
43 | #include "../newview/hippoGridManager.h" | ||
44 | |||
43 | 45 | ||
44 | const std::string NOTIFICATION_PERSIST_VERSION = "0.93"; | 46 | const std::string NOTIFICATION_PERSIST_VERSION = "0.93"; |
45 | 47 | ||
@@ -605,9 +607,9 @@ void LLNotification::init(const std::string& template_name, const LLSD& form_ele | |||
605 | mSubstitutions["[VIEWER_NAME]"] = LLNotifications::instance().getGlobalString("VIEWER_NAME"); | 607 | mSubstitutions["[VIEWER_NAME]"] = LLNotifications::instance().getGlobalString("VIEWER_NAME"); |
606 | mSubstitutions["[VIEWER_SITE]"] = LLNotifications::instance().getGlobalString("VIEWER_SITE"); | 608 | mSubstitutions["[VIEWER_SITE]"] = LLNotifications::instance().getGlobalString("VIEWER_SITE"); |
607 | 609 | ||
608 | // TODO: set these based on which grid the user is connected to. | 610 | mSubstitutions["[GRID_NAME]"] = gHippoGridManager->getConnectedGrid()->getGridName(); |
609 | mSubstitutions["[GRID_NAME]"] = LLNotifications::instance().getGlobalString("SECOND_LIFE"); | 611 | mSubstitutions["[GRID_SITE]"] = gHippoGridManager->getConnectedGrid()->getWebSite(); |
610 | mSubstitutions["[GRID_SITE]"] = LLNotifications::instance().getGlobalString("SECOND_LIFE_SITE"); | 612 | mSubstitutions["[CURRENCY]"] = gHippoGridManager->getConnectedGrid()->getCurrencySymbol(); |
611 | 613 | ||
612 | mSubstitutions["_URL"] = getURL(); | 614 | mSubstitutions["_URL"] = getURL(); |
613 | mSubstitutions["_NAME"] = template_name; | 615 | mSubstitutions["_NAME"] = template_name; |