From c1f90124f7aebe3a4909e1d09c4e790ce0577443 Mon Sep 17 00:00:00 2001 From: Armin Weatherwax Date: Fri, 22 Jun 2012 22:31:51 +0200 Subject: [PATCH] fix "Buy L$" menu showed up as "Buy" --- indra/newview/llviewermessage.cpp | 3 +++ indra/teapot/tea.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 4ef5313660..b561361553 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -6663,6 +6663,9 @@ void process_economy_data(LLMessageSystem *msg, void** /*user_data*/) // // LL_INFOS_ONCE("Messaging") << "EconomyData message arrived; upload cost is L$" << upload_cost << LL_ENDL; LL_INFOS_ONCE("Messaging") << Tea::wrapCurrency("EconomyData message arrived; upload cost is L$") << upload_cost << LL_ENDL; + + // update L$ substitution for "Buy and Sell L$", it was set before we knew the currency + gMenuHolder->getChild("Buy and Sell L$")->setLabelArg("L$", LLStringExplicit("L$")); // gMenuHolder->getChild("Upload Image")->setLabelArg("[COST]", llformat("%d", upload_cost)); gMenuHolder->getChild("Upload Sound")->setLabelArg("[COST]", llformat("%d", upload_cost)); diff --git a/indra/teapot/tea.cpp b/indra/teapot/tea.cpp index 7687868a27..2f6b19c2e7 100644 --- a/indra/teapot/tea.cpp +++ b/indra/teapot/tea.cpp @@ -33,7 +33,7 @@ #include "tea.h" -std::string Tea::sCurrency; +std::string Tea::sCurrency="L$"; Tea::Tea() {