aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelclassified.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelclassified.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/linden/indra/newview/llpanelclassified.cpp b/linden/indra/newview/llpanelclassified.cpp
index 4428133..c6f9b0c 100644
--- a/linden/indra/newview/llpanelclassified.cpp
+++ b/linden/indra/newview/llpanelclassified.cpp
@@ -71,6 +71,8 @@
71#include "llviewerwindow.h" // for window width, height 71#include "llviewerwindow.h" // for window width, height
72#include "llappviewer.h" // abortQuit() 72#include "llappviewer.h" // abortQuit()
73 73
74#include "hippoGridManager.h"
75
74const S32 MINIMUM_PRICE_FOR_LISTING = 50; // L$ 76const S32 MINIMUM_PRICE_FOR_LISTING = 50; // L$
75const S32 MATURE_UNDEFINED = -1; 77const S32 MATURE_UNDEFINED = -1;
76const S32 MATURE_CONTENT = 1; 78const S32 MATURE_CONTENT = 1;
@@ -677,6 +679,7 @@ void LLPanelClassified::processClassifiedInfoReply(LLMessageSystem *msg, void **
677 std::string datestr = llformat("%02d/%02d/%d", now->tm_mon+1, now->tm_mday, now->tm_year+1900); 679 std::string datestr = llformat("%02d/%02d/%d", now->tm_mon+1, now->tm_mday, now->tm_year+1900);
678 LLStringUtil::format_map_t string_args; 680 LLStringUtil::format_map_t string_args;
679 string_args["[DATE]"] = datestr; 681 string_args["[DATE]"] = datestr;
682 string_args["[CURRENCY]"] = gHippoGridManager->getConnectedGrid()->getCurrencySymbol();
680 string_args["[AMT]"] = llformat("%d", price_for_listing); 683 string_args["[AMT]"] = llformat("%d", price_for_listing);
681 self->childSetText("classified_info_text", self->getString("ad_placed_paid", string_args)); 684 self->childSetText("classified_info_text", self->getString("ad_placed_paid", string_args));
682 685
@@ -873,6 +876,7 @@ void LLPanelClassified::callbackGotPriceForListing(S32 option, std::string text,
873 LLSD args; 876 LLSD args;
874 std::string price_text = llformat("%d", MINIMUM_PRICE_FOR_LISTING); 877 std::string price_text = llformat("%d", MINIMUM_PRICE_FOR_LISTING);
875 args["MIN_PRICE"] = price_text; 878 args["MIN_PRICE"] = price_text;
879 args["[CURRENCY]"] = gHippoGridManager->getConnectedGrid()->getCurrencySymbol();
876 880
877 LLNotifications::instance().add("MinClassifiedPrice", args); 881 LLNotifications::instance().add("MinClassifiedPrice", args);
878 return; 882 return;
@@ -884,6 +888,7 @@ void LLPanelClassified::callbackGotPriceForListing(S32 option, std::string text,
884 888
885 LLSD args; 889 LLSD args;
886 args["AMOUNT"] = llformat("%d", price_for_listing); 890 args["AMOUNT"] = llformat("%d", price_for_listing);
891 args["CURRENCY"] = gHippoGridManager->getConnectedGrid()->getCurrencySymbol();
887 LLNotifications::instance().add("PublishClassified", args, LLSD(), 892 LLNotifications::instance().add("PublishClassified", args, LLSD(),
888 boost::bind(&LLPanelClassified::confirmPublish, self, _1, _2)); 893 boost::bind(&LLPanelClassified::confirmPublish, self, _1, _2));
889} 894}