summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2014-11-26 13:32:43 +0200
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2014-11-26 13:32:43 +0200
commitb07bfba19810e4275d9631e067381d501245a276 (patch)
tree8eae3bef39546faa7644f1e86e2f0553ac964dc0
parenta500cd62ecf35ae853687c45118109269e0e5383 (diff)
MAINT-4691 FIXED Changed text labels
-rwxr-xr-xindra/newview/llsidepaneltaskinfo.cpp8
-rwxr-xr-xindra/newview/skins/default/xui/en/sidepanel_task_info.xml4
2 files changed, 7 insertions, 5 deletions
diff --git a/indra/newview/llsidepaneltaskinfo.cpp b/indra/newview/llsidepaneltaskinfo.cpp
index 58c3683459..17ecfab4fb 100755
--- a/indra/newview/llsidepaneltaskinfo.cpp
+++ b/indra/newview/llsidepaneltaskinfo.cpp
@@ -499,17 +499,19 @@ void LLSidepanelTaskInfo::refresh()
// You own these objects.
else if (self_owned || (group_owned && gAgent.hasPowerInGroup(group_id,GP_OBJECT_SET_SALE)))
{
+ LLSpinCtrl *edit_price = getChild<LLSpinCtrl>("Edit Cost");
+
// If there are multiple items for sale then set text to PRICE PER UNIT.
if (num_for_sale > 1)
{
- getChild<LLSpinCtrl>("Edit Cost")->setLabel(getString("Cost Per Unit"));
+ std::string label_text = is_sale_price_mixed? "Cost Mixed" :"Cost Per Unit";
+ edit_price->setLabel(getString(label_text));
}
else
{
- getChild<LLSpinCtrl>("Edit Cost")->setLabel(getString("Cost Default"));
+ edit_price->setLabel(getString("Cost Default"));
}
- LLSpinCtrl *edit_price = getChild<LLSpinCtrl>("Edit Cost");
if (!edit_price->hasFocus())
{
// If the sale price is mixed then set the cost to MIXED, otherwise
diff --git a/indra/newview/skins/default/xui/en/sidepanel_task_info.xml b/indra/newview/skins/default/xui/en/sidepanel_task_info.xml
index 6ee8fc3a4c..b84dce222f 100755
--- a/indra/newview/skins/default/xui/en/sidepanel_task_info.xml
+++ b/indra/newview/skins/default/xui/en/sidepanel_task_info.xml
@@ -48,7 +48,7 @@
</panel.string>
<panel.string
name="Cost Total">
- Total Price: L$
+ Sum Price: L$
</panel.string>
<panel.string
name="Cost Per Unit">
@@ -444,7 +444,7 @@
control_name="Edit Cost"
name="Edit Cost"
label="Price: L$"
- label_width="65"
+ label_width="73"
width="150"
min_val="1"
height="20"