diff --git a/indra/newview/fsareasearch.cpp b/indra/newview/fsareasearch.cpp index 25d5700c09..6b70748d48 100644 --- a/indra/newview/fsareasearch.cpp +++ b/indra/newview/fsareasearch.cpp @@ -1015,8 +1015,10 @@ void FSAreaSearch::matchObject(FSObjectProperties& details, LLViewerObject* obje cell_params.column = "price"; if (details.sale_info.isForSale()) { - S32 price = details.sale_info.getSalePrice(); - cell_params.value = price > 0 ? llformat("%s%d", "L$", details.sale_info.getSalePrice()) : LLTrans::getString("free"); + LLStringUtil::format_map_t args; + args["COST"] = llformat("%d", details.sale_info.getSalePrice()); + std::string cost_label = LLTrans::getString("FSAreaSearch_Cost_Label", args); + cell_params.value = cost_label; } else { @@ -1026,7 +1028,7 @@ void FSAreaSearch::matchObject(FSObjectProperties& details, LLViewerObject* obje cell_params.column = "land_impact"; F32 cost = objectp->getLinksetCost(); - if (cost > 0.001) + if (cost > F_ALMOST_ZERO) { cell_params.value = cost; } diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index fb88cbc86d..3621570aa2 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -327,32 +327,9 @@ BOOL LLPanelMainInventory::postBuild() mGearMenuButton = getChild("options_gear_btn"); initListCommandsHandlers(); -// - //const std::string texture_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getTextureUploadCost()); - //const std::string sound_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getSoundUploadCost()); - //const std::string animation_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getAnimationUploadCost()); - S32 texture_upload_cost = LLAgentBenefitsMgr::current().getTextureUploadCost(); - S32 sound_upload_cost = LLAgentBenefitsMgr::current().getSoundUploadCost(); - S32 animation_upload_cost = LLAgentBenefitsMgr::current().getAnimationUploadCost(); - std::string texture_upload_cost_str; - std::string sound_upload_cost_str; - std::string animation_upload_cost_str; -#ifdef OPENSIM - if (LLGridManager::getInstance()->isInOpenSim()) - { - texture_upload_cost_str = texture_upload_cost > 0 ? llformat("%s%d", "L$", texture_upload_cost) : LLTrans::getString("free"); - sound_upload_cost_str = sound_upload_cost > 0 ? llformat("%s%d", "L$", sound_upload_cost) : LLTrans::getString("free"); - animation_upload_cost_str = animation_upload_cost > 0 ? llformat("%s%d", "L$", animation_upload_cost) : LLTrans::getString("free"); - } - else -#endif - { - texture_upload_cost_str = "L$" + llformat("%d", texture_upload_cost); - sound_upload_cost_str = "L$" + llformat("%d", sound_upload_cost); - animation_upload_cost_str = "L$" + llformat("%d", animation_upload_cost); - } -// - + const std::string texture_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getTextureUploadCost()); + const std::string sound_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getSoundUploadCost()); + const std::string animation_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getAnimationUploadCost()); LLMenuGL* menu = (LLMenuGL*)mMenuAddHandle.get(); if (menu) @@ -2075,31 +2052,9 @@ void LLPanelMainInventory::setUploadCostIfNeeded() LLMenuGL* menu = (LLMenuGL*)mMenuAddHandle.get(); if(mNeedUploadCost && menu) { -// - //const std::string texture_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getTextureUploadCost()); - //const std::string sound_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getSoundUploadCost()); - //const std::string animation_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getAnimationUploadCost()); - S32 texture_upload_cost = LLAgentBenefitsMgr::current().getTextureUploadCost(); - S32 sound_upload_cost = LLAgentBenefitsMgr::current().getSoundUploadCost(); - S32 animation_upload_cost = LLAgentBenefitsMgr::current().getAnimationUploadCost(); - std::string texture_upload_cost_str; - std::string sound_upload_cost_str; - std::string animation_upload_cost_str; -#ifdef OPENSIM - if (LLGridManager::getInstance()->isInOpenSim()) - { - texture_upload_cost_str = texture_upload_cost > 0 ? llformat("%d", texture_upload_cost) : LLTrans::getString("free"); - sound_upload_cost_str = sound_upload_cost > 0 ? llformat("%d", sound_upload_cost) : LLTrans::getString("free"); - animation_upload_cost_str = animation_upload_cost > 0 ? llformat("%d", animation_upload_cost) : LLTrans::getString("free"); - } - else -#endif - { - texture_upload_cost_str = llformat("%d", texture_upload_cost); - sound_upload_cost_str = llformat("%d", sound_upload_cost); - animation_upload_cost_str = llformat("%d", animation_upload_cost); - } -// + const std::string texture_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getTextureUploadCost()); + const std::string sound_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getSoundUploadCost()); + const std::string animation_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getAnimationUploadCost()); menu->getChild("Upload Image")->setLabelArg("[COST]", texture_upload_cost_str); menu->getChild("Upload Sound")->setLabelArg("[COST]", sound_upload_cost_str); menu->getChild("Upload Animation")->setLabelArg("[COST]", animation_upload_cost_str); diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 53e79e46f5..74d5277ce9 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -627,32 +627,10 @@ void init_menus() gViewerWindow->setMenuBackgroundColor(false, !LLGridManager::getInstance()->isInSLBeta()); -// // *TODO:Also fix cost in llfolderview.cpp for Inventory menus - //const std::string texture_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getTextureUploadCost()); - //const std::string sound_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getSoundUploadCost()); - //const std::string animation_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getAnimationUploadCost()); - S32 texture_upload_cost = LLAgentBenefitsMgr::current().getTextureUploadCost(); - S32 sound_upload_cost = LLAgentBenefitsMgr::current().getSoundUploadCost(); - S32 animation_upload_cost = LLAgentBenefitsMgr::current().getAnimationUploadCost(); - std::string texture_upload_cost_str; - std::string sound_upload_cost_str; - std::string animation_upload_cost_str; -#ifdef OPENSIM - if (LLGridManager::getInstance()->isInOpenSim()) - { - texture_upload_cost_str = texture_upload_cost > 0 ? llformat("%s%d", "L$", texture_upload_cost) : LLTrans::getString("free"); - sound_upload_cost_str = sound_upload_cost > 0 ? llformat("%s%d", "L$", sound_upload_cost) : LLTrans::getString("free"); - animation_upload_cost_str = animation_upload_cost > 0 ? llformat("%s%d", "L$", animation_upload_cost) : LLTrans::getString("free"); - } - else -#endif - { - texture_upload_cost_str = "L$" + llformat("%d", texture_upload_cost); - sound_upload_cost_str = "L$" + llformat("%d", sound_upload_cost); - animation_upload_cost_str = "L$" + llformat("%d", animation_upload_cost); - } -// + const std::string texture_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getTextureUploadCost()); + const std::string sound_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getSoundUploadCost()); + const std::string animation_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getAnimationUploadCost()); gMenuHolder->childSetLabelArg("Upload Image", "[COST]", texture_upload_cost_str); gMenuHolder->childSetLabelArg("Upload Sound", "[COST]", sound_upload_cost_str); gMenuHolder->childSetLabelArg("Upload Animation", "[COST]", animation_upload_cost_str); @@ -11067,13 +11045,6 @@ void LLUploadCostCalculator::calculateCost(const std::string& asset_type_str) { LL_WARNS() << "Unable to find upload cost for asset_type_str " << asset_type_str << LL_ENDL; } -#ifdef OPENSIM // - if (LLGridManager::getInstance()->isInOpenSim()) - { - mCostStr = upload_cost > 0 ? llformat("%s%d", "L$", upload_cost) : LLTrans::getString("free"); - } - else -#endif // OPENSIM // mCostStr = std::to_string(upload_cost); } diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 7afd21e502..4b95abd6ca 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -6893,16 +6893,9 @@ void process_economy_data(LLMessageSystem *msg, void** /*user_data*/) { LLGlobalEconomy::processEconomyData(msg, LLGlobalEconomy::getInstance()); - S32 texture_upload_cost = LLAgentBenefitsMgr::current().getTextureUploadCost(); - S32 sound_upload_cost = LLAgentBenefitsMgr::current().getSoundUploadCost(); - S32 animation_upload_cost = LLAgentBenefitsMgr::current().getAnimationUploadCost(); - std::string texture_upload_cost_str; - std::string sound_upload_cost_str; - std::string animation_upload_cost_str; - - texture_upload_cost_str = texture_upload_cost > 0 ? llformat("%s%d", "L$", texture_upload_cost) : LLTrans::getString("free"); - sound_upload_cost_str = sound_upload_cost > 0 ? llformat("%s%d", "L$", sound_upload_cost) : LLTrans::getString("free"); - animation_upload_cost_str = animation_upload_cost > 0 ? llformat("%s%d", "L$", animation_upload_cost) : LLTrans::getString("free"); + const std::string texture_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getTextureUploadCost()); + const std::string sound_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getSoundUploadCost()); + const std::string animation_upload_cost_str = std::to_string(LLAgentBenefitsMgr::current().getAnimationUploadCost()); gMenuHolder->getChild("Upload Image")->setLabelArg("[COST]", texture_upload_cost_str); gMenuHolder->getChild("Upload Sound")->setLabelArg("[COST]", sound_upload_cost_str); gMenuHolder->getChild("Upload Animation")->setLabelArg("[COST]", animation_upload_cost_str); diff --git a/indra/newview/skins/default/xui/de/strings.xml b/indra/newview/skins/default/xui/de/strings.xml index 6044c8dd3c..3a6a65580b 100644 --- a/indra/newview/skins/default/xui/de/strings.xml +++ b/indra/newview/skins/default/xui/de/strings.xml @@ -5356,11 +5356,6 @@ Falls der Fehler weiterhin auftritt, überprüfen Sie bitte Ihre Netzwerk- und F [AMOUNT] US$ - - - kostenlos - - Gruppen-Bann @@ -7099,4 +7094,7 @@ Ihre aktuelle Position: [AVATAR_POS] (Unbekanntes Skript) + + [COST] L$ + diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml index f0316c4501..5f96031a3f 100644 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -2439,9 +2439,6 @@ If you continue to experience problems, please check your network and firewall s US$ [AMOUNT] - - free - Group Ban Membership @@ -3192,4 +3189,5 @@ Your current position: [AVATAR_POS] Wear inventory folder Picture for Outfit (Unknown script) + L$[COST] diff --git a/indra/newview/skins/default/xui/es/strings.xml b/indra/newview/skins/default/xui/es/strings.xml index 77144d10b5..938de0e50d 100644 --- a/indra/newview/skins/default/xui/es/strings.xml +++ b/indra/newview/skins/default/xui/es/strings.xml @@ -5107,9 +5107,6 @@ Visita https://secondlife-status.statuspage.io para ver si hay alguna incidencia [AMOUNT] US$ - - gratis - Expulsión de grupo diff --git a/indra/newview/skins/default/xui/it/strings.xml b/indra/newview/skins/default/xui/it/strings.xml index e082dccfa7..cfacc845dc 100644 --- a/indra/newview/skins/default/xui/it/strings.xml +++ b/indra/newview/skins/default/xui/it/strings.xml @@ -5131,9 +5131,6 @@ Segnala abuso US$ [AMOUNT] - - gratis - Espulsione da gruppo diff --git a/indra/newview/skins/default/xui/pl/strings.xml b/indra/newview/skins/default/xui/pl/strings.xml index 77e2b94812..235f7e6dc0 100644 --- a/indra/newview/skins/default/xui/pl/strings.xml +++ b/indra/newview/skins/default/xui/pl/strings.xml @@ -5039,9 +5039,6 @@ Jeśli problemy będą występowały nadal, proszę sprawdź sieć i ustawienia [AMOUNT] US$ - - darmowe - Bany grupowe diff --git a/indra/newview/skins/default/xui/ru/strings.xml b/indra/newview/skins/default/xui/ru/strings.xml index 369eeb34dc..0049882917 100644 --- a/indra/newview/skins/default/xui/ru/strings.xml +++ b/indra/newview/skins/default/xui/ru/strings.xml @@ -5320,9 +5320,6 @@ http://www.firestormviewer.org/support за помощь в решении эт US$ [AMOUNT] - - бесплатно - Бан группы