fix "Buy L$" menu showed up as "Buy"

Armin Weatherwax 2012-06-22 22:31:51 +02:00
parent 4b41728793
commit c1f90124f7
2 changed files with 4 additions and 1 deletions

View File

@ -6663,6 +6663,9 @@ void process_economy_data(LLMessageSystem *msg, void** /*user_data*/)
// <FS:AW opensim currency support>
// 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<LLUICtrl>("Buy and Sell L$")->setLabelArg("L$", LLStringExplicit("L$"));
// <FS:AW opensim currency support>
gMenuHolder->getChild<LLUICtrl>("Upload Image")->setLabelArg("[COST]", llformat("%d", upload_cost));
gMenuHolder->getChild<LLUICtrl>("Upload Sound")->setLabelArg("[COST]", llformat("%d", upload_cost));

View File

@ -33,7 +33,7 @@
#include "tea.h"
std::string Tea::sCurrency;
std::string Tea::sCurrency="L$";
Tea::Tea()
{