diff options
Diffstat (limited to 'linden/indra/newview/llfloaterbuyland.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterbuyland.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/linden/indra/newview/llfloaterbuyland.cpp b/linden/indra/newview/llfloaterbuyland.cpp index 29506e2..75630b2 100644 --- a/linden/indra/newview/llfloaterbuyland.cpp +++ b/linden/indra/newview/llfloaterbuyland.cpp | |||
@@ -66,6 +66,8 @@ | |||
66 | #include "llviewernetwork.h" | 66 | #include "llviewernetwork.h" |
67 | #include "roles_constants.h" | 67 | #include "roles_constants.h" |
68 | 68 | ||
69 | #include "hippoGridManager.h" | ||
70 | |||
69 | // NOTE: This is duplicated in lldatamoney.cpp ... | 71 | // NOTE: This is duplicated in lldatamoney.cpp ... |
70 | const F32 GROUP_LAND_BONUS_FACTOR = 1.1f; | 72 | const F32 GROUP_LAND_BONUS_FACTOR = 1.1f; |
71 | const F64 CURRENCY_ESTIMATE_FREQUENCY = 0.5; | 73 | const F64 CURRENCY_ESTIMATE_FREQUENCY = 0.5; |
@@ -1024,6 +1026,7 @@ void LLFloaterBuyLandUI::refreshUI() | |||
1024 | LLStringUtil::format_map_t string_args; | 1026 | LLStringUtil::format_map_t string_args; |
1025 | string_args["[AMOUNT]"] = llformat("%d", mParcelActualArea); | 1027 | string_args["[AMOUNT]"] = llformat("%d", mParcelActualArea); |
1026 | string_args["[AMOUNT2]"] = llformat("%d", mParcelSupportedObjects); | 1028 | string_args["[AMOUNT2]"] = llformat("%d", mParcelSupportedObjects); |
1029 | string_args["[CURRENCY]"] = gHippoGridManager->getConnectedGrid()->getCurrencySymbol(); | ||
1027 | 1030 | ||
1028 | childSetText("info_size", getString("meters_supports_object", string_args)); | 1031 | childSetText("info_size", getString("meters_supports_object", string_args)); |
1029 | 1032 | ||
@@ -1227,7 +1230,8 @@ void LLFloaterBuyLandUI::refreshUI() | |||
1227 | 1230 | ||
1228 | childSetText("purchase_action", | 1231 | childSetText("purchase_action", |
1229 | llformat( | 1232 | llformat( |
1230 | "Pay L$ %d to %s for this land", | 1233 | "Pay %s %d to %s for this land", |
1234 | gHippoGridManager->getConnectedGrid()->getCurrencySymbol().c_str(), | ||
1231 | mParcelPrice, | 1235 | mParcelPrice, |
1232 | mParcelSellerName.c_str() | 1236 | mParcelSellerName.c_str() |
1233 | )); | 1237 | )); |
@@ -1239,6 +1243,7 @@ void LLFloaterBuyLandUI::refreshUI() | |||
1239 | { | 1243 | { |
1240 | LLStringUtil::format_map_t string_args; | 1244 | LLStringUtil::format_map_t string_args; |
1241 | string_args["[AMOUNT]"] = llformat("%d", mAgentCashBalance); | 1245 | string_args["[AMOUNT]"] = llformat("%d", mAgentCashBalance); |
1246 | string_args["[CURRENCY]"] = gHippoGridManager->getConnectedGrid()->getCurrencySymbol(); | ||
1242 | 1247 | ||
1243 | childSetText("currency_reason", getString("have_enough_lindens", string_args)); | 1248 | childSetText("currency_reason", getString("have_enough_lindens", string_args)); |
1244 | } | 1249 | } |
@@ -1247,6 +1252,7 @@ void LLFloaterBuyLandUI::refreshUI() | |||
1247 | LLStringUtil::format_map_t string_args; | 1252 | LLStringUtil::format_map_t string_args; |
1248 | string_args["[AMOUNT]"] = llformat("%d", mAgentCashBalance); | 1253 | string_args["[AMOUNT]"] = llformat("%d", mAgentCashBalance); |
1249 | string_args["[AMOUNT2]"] = llformat("%d", mParcelPrice - mAgentCashBalance); | 1254 | string_args["[AMOUNT2]"] = llformat("%d", mParcelPrice - mAgentCashBalance); |
1255 | string_args["[CURRENCY]"] = gHippoGridManager->getConnectedGrid()->getCurrencySymbol(); | ||
1250 | 1256 | ||
1251 | childSetText("currency_reason", getString("not_enough_lindens", string_args)); | 1257 | childSetText("currency_reason", getString("not_enough_lindens", string_args)); |
1252 | 1258 | ||
@@ -1257,6 +1263,7 @@ void LLFloaterBuyLandUI::refreshUI() | |||
1257 | { | 1263 | { |
1258 | LLStringUtil::format_map_t string_args; | 1264 | LLStringUtil::format_map_t string_args; |
1259 | string_args["[AMOUNT]"] = llformat("%d", finalBalance); | 1265 | string_args["[AMOUNT]"] = llformat("%d", finalBalance); |
1266 | string_args["[CURRENCY]"] = gHippoGridManager->getConnectedGrid()->getCurrencySymbol(); | ||
1260 | 1267 | ||
1261 | childSetText("currency_balance", getString("balance_left", string_args)); | 1268 | childSetText("currency_balance", getString("balance_left", string_args)); |
1262 | 1269 | ||
@@ -1265,6 +1272,7 @@ void LLFloaterBuyLandUI::refreshUI() | |||
1265 | { | 1272 | { |
1266 | LLStringUtil::format_map_t string_args; | 1273 | LLStringUtil::format_map_t string_args; |
1267 | string_args["[AMOUNT]"] = llformat("%d", mParcelPrice - mAgentCashBalance); | 1274 | string_args["[AMOUNT]"] = llformat("%d", mParcelPrice - mAgentCashBalance); |
1275 | string_args["[CURRENCY]"] = gHippoGridManager->getConnectedGrid()->getCurrencySymbol(); | ||
1268 | 1276 | ||
1269 | childSetText("currency_balance", getString("balance_needed", string_args)); | 1277 | childSetText("currency_balance", getString("balance_needed", string_args)); |
1270 | 1278 | ||
@@ -1331,6 +1339,7 @@ void LLFloaterBuyLandUI::startBuyPreConfirm() | |||
1331 | LLStringUtil::format_map_t string_args; | 1339 | LLStringUtil::format_map_t string_args; |
1332 | string_args["[AMOUNT]"] = llformat("%d", mCurrency.getAmount()); | 1340 | string_args["[AMOUNT]"] = llformat("%d", mCurrency.getAmount()); |
1333 | string_args["[AMOUNT2]"] = llformat("%#.2f", mCurrency.getEstimate() / 100.0); | 1341 | string_args["[AMOUNT2]"] = llformat("%#.2f", mCurrency.getEstimate() / 100.0); |
1342 | string_args["[CURRENCY]"] = gHippoGridManager->getConnectedGrid()->getCurrencySymbol(); | ||
1334 | 1343 | ||
1335 | action += getString("buy_for_US", string_args); | 1344 | action += getString("buy_for_US", string_args); |
1336 | } | 1345 | } |
@@ -1338,6 +1347,7 @@ void LLFloaterBuyLandUI::startBuyPreConfirm() | |||
1338 | LLStringUtil::format_map_t string_args; | 1347 | LLStringUtil::format_map_t string_args; |
1339 | string_args["[AMOUNT]"] = llformat("%d", mParcelPrice); | 1348 | string_args["[AMOUNT]"] = llformat("%d", mParcelPrice); |
1340 | string_args["[SELLER]"] = mParcelSellerName; | 1349 | string_args["[SELLER]"] = mParcelSellerName; |
1350 | string_args["[CURRENCY]"] = gHippoGridManager->getConnectedGrid()->getCurrencySymbol(); | ||
1341 | action += getString("pay_to_for_land", string_args); | 1351 | action += getString("pay_to_for_land", string_args); |
1342 | 1352 | ||
1343 | 1353 | ||