From 8f0ee9368ace458430b05e9b16dfa98ea1cc1d4c Mon Sep 17 00:00:00 2001 From: Ansariel Date: Thu, 20 Sep 2012 14:55:35 +0200 Subject: [PATCH] FIRE-5998: Fix for unlocalizable labels on estate panel on region info floater --- indra/newview/llfloaterregioninfo.cpp | 24 ++++++++++++++----- .../default/xui/de/panel_region_estate.xml | 2 +- .../newview/skins/default/xui/de/strings.xml | 8 +++++++ .../newview/skins/default/xui/en/strings.xml | 8 +++++-- 4 files changed, 33 insertions(+), 9 deletions(-) diff --git a/indra/newview/llfloaterregioninfo.cpp b/indra/newview/llfloaterregioninfo.cpp index 591d1c16cf..3d57384828 100644 --- a/indra/newview/llfloaterregioninfo.cpp +++ b/indra/newview/llfloaterregioninfo.cpp @@ -2870,9 +2870,15 @@ bool LLDispatchSetEstateAccess::operator()( } - std::string msg = llformat("Banned residents: (%d, max %d)", - totalBannedAgents, - ESTATE_MAX_ACCESS_IDS); + // FIRE-5998: Unlocalizable label + //std::string msg = llformat("Banned residents: (%d, max %d)", + // totalBannedAgents, + // ESTATE_MAX_ACCESS_IDS); + LLStringUtil::format_map_t args; + args["[BANNEDAGENTS]"] = llformat("%d", totalBannedAgents); + args["[MAXBANNED]"] = llformat("%d", ESTATE_MAX_ACCESS_IDS); + std::string msg = LLTrans::getString("RegionInfoBannedResidents", args); + // panel->getChild("ban_resident_label")->setValue(LLSD(msg)); if (banned_agent_name_list) @@ -2891,9 +2897,15 @@ bool LLDispatchSetEstateAccess::operator()( if (access_flags & ESTATE_ACCESS_MANAGERS) { - std::string msg = llformat("Estate Managers: (%d, max %d)", - num_estate_managers, - ESTATE_MAX_MANAGERS); + // FIRE-5998: Unlocalizable label + //std::string msg = llformat("Estate Managers: (%d, max %d)", + // num_estate_managers, + // ESTATE_MAX_MANAGERS); + LLStringUtil::format_map_t args; + args["[ESTATEMANAGERS]"] = llformat("%d", num_estate_managers); + args["[MAXMANAGERS]"] = llformat("%d", ESTATE_MAX_MANAGERS); + std::string msg = LLTrans::getString("RegionInfoEstateManagers", args); + // panel->getChild("estate_manager_label")->setValue(LLSD(msg)); LLNameListCtrl* estate_manager_name_list = diff --git a/indra/newview/skins/default/xui/de/panel_region_estate.xml b/indra/newview/skins/default/xui/de/panel_region_estate.xml index d900d9aea9..c447e1a5c4 100644 --- a/indra/newview/skins/default/xui/de/panel_region_estate.xml +++ b/indra/newview/skins/default/xui/de/panel_region_estate.xml @@ -52,7 +52,7 @@