diff options
Diffstat (limited to 'linden/indra/newview/llpanelgroupgeneral.cpp')
-rw-r--r-- | linden/indra/newview/llpanelgroupgeneral.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/linden/indra/newview/llpanelgroupgeneral.cpp b/linden/indra/newview/llpanelgroupgeneral.cpp index cbf4a87..8553291 100644 --- a/linden/indra/newview/llpanelgroupgeneral.cpp +++ b/linden/indra/newview/llpanelgroupgeneral.cpp | |||
@@ -34,6 +34,8 @@ | |||
34 | 34 | ||
35 | #include "llpanelgroupgeneral.h" | 35 | #include "llpanelgroupgeneral.h" |
36 | 36 | ||
37 | #include "hippoGridManager.h" | ||
38 | |||
37 | #include "lluictrlfactory.h" | 39 | #include "lluictrlfactory.h" |
38 | #include "llagent.h" | 40 | #include "llagent.h" |
39 | #include "roles_constants.h" | 41 | #include "roles_constants.h" |
@@ -185,6 +187,7 @@ BOOL LLPanelGroupGeneral::postBuild() | |||
185 | mCtrlEnrollmentFee = getChild<LLCheckBoxCtrl>("check_enrollment_fee", recurse); | 187 | mCtrlEnrollmentFee = getChild<LLCheckBoxCtrl>("check_enrollment_fee", recurse); |
186 | if (mCtrlEnrollmentFee) | 188 | if (mCtrlEnrollmentFee) |
187 | { | 189 | { |
190 | mCtrlEnrollmentFee->setLabelArg("[CURRENCY]", gHippoGridManager->getConnectedGrid()->getCurrencySymbol()); | ||
188 | mCtrlEnrollmentFee->setCommitCallback(onCommitEnrollment); | 191 | mCtrlEnrollmentFee->setCommitCallback(onCommitEnrollment); |
189 | mCtrlEnrollmentFee->setCallbackUserData(this); | 192 | mCtrlEnrollmentFee->setCallbackUserData(this); |
190 | } | 193 | } |
@@ -235,6 +238,9 @@ BOOL LLPanelGroupGeneral::postBuild() | |||
235 | mComboActiveTitle->resetDirty(); | 238 | mComboActiveTitle->resetDirty(); |
236 | } | 239 | } |
237 | 240 | ||
241 | LLStringUtil::format_map_t args; | ||
242 | args["[GROUPCREATEFEE]"] = gHippoGridManager->getConnectedGrid()->getGroupCreationFee(); | ||
243 | mConfirmGroupCreateStr = getString("confirm_group_create_str", args); | ||
238 | mIncompleteMemberDataStr = getString("incomplete_member_data_str"); | 244 | mIncompleteMemberDataStr = getString("incomplete_member_data_str"); |
239 | mConfirmGroupCreateStr = getString("confirm_group_create_str"); | 245 | mConfirmGroupCreateStr = getString("confirm_group_create_str"); |
240 | 246 | ||
@@ -351,6 +357,7 @@ void LLPanelGroupGeneral::onClickJoin(void *userdata) | |||
351 | S32 cost = gdatap->mMembershipFee; | 357 | S32 cost = gdatap->mMembershipFee; |
352 | LLSD args; | 358 | LLSD args; |
353 | args["COST"] = llformat("%d", cost); | 359 | args["COST"] = llformat("%d", cost); |
360 | args["CURRENCY"] = gHippoGridManager->getConnectedGrid()->getCurrencySymbol(); | ||
354 | LLSD payload; | 361 | LLSD payload; |
355 | payload["group_id"] = self->mGroupID; | 362 | payload["group_id"] = self->mGroupID; |
356 | 363 | ||
@@ -730,7 +737,9 @@ void LLPanelGroupGeneral::update(LLGroupChange gc) | |||
730 | 737 | ||
731 | if ( visible ) | 738 | if ( visible ) |
732 | { | 739 | { |
733 | fee_buff = llformat( "Join (L$%d)", gdatap->mMembershipFee); | 740 | fee_buff = llformat( "Join (%s%d)", |
741 | gHippoGridManager->getConnectedGrid()->getCurrencySymbol().c_str(), | ||
742 | gdatap->mMembershipFee); | ||
734 | mBtnJoinGroup->setLabelSelected(fee_buff); | 743 | mBtnJoinGroup->setLabelSelected(fee_buff); |
735 | mBtnJoinGroup->setLabelUnselected(fee_buff); | 744 | mBtnJoinGroup->setLabelUnselected(fee_buff); |
736 | } | 745 | } |