aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterbuy.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:11 -0500
committerJacek Antonelli2008-08-15 23:45:11 -0500
commit215f423cbe18fe9ca14a26caef918d303bad28ff (patch)
tree0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/newview/llfloaterbuy.cpp
parentSecond Life viewer sources 1.18.3.5-RC (diff)
downloadmeta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloaterbuy.cpp27
1 files changed, 16 insertions, 11 deletions
diff --git a/linden/indra/newview/llfloaterbuy.cpp b/linden/indra/newview/llfloaterbuy.cpp
index 4070ea7..707ec0e 100644
--- a/linden/indra/newview/llfloaterbuy.cpp
+++ b/linden/indra/newview/llfloaterbuy.cpp
@@ -3,6 +3,8 @@
3 * @author James Cook 3 * @author James Cook
4 * @brief LLFloaterBuy class implementation 4 * @brief LLFloaterBuy class implementation
5 * 5 *
6 * $LicenseInfo:firstyear=2004&license=viewergpl$
7 *
6 * Copyright (c) 2004-2007, Linden Research, Inc. 8 * Copyright (c) 2004-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,6 +27,7 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30/** 33/**
@@ -110,21 +113,23 @@ void LLFloaterBuy::show(const LLSaleInfo& sale_info)
110 sInstance->center(); 113 sInstance->center();
111 114
112 LLSelectNode* node = selection->getFirstRootNode(); 115 LLSelectNode* node = selection->getFirstRootNode();
113 if (!node) return; 116 if (!node)
117 return;
114 118
115 // Set title based on sale type 119 // Set title based on sale type
116 std::ostringstream title; 120 LLUIString title;
117 switch (sale_info.getSaleType()) 121 switch (sale_info.getSaleType())
118 { 122 {
119 case LLSaleInfo::FS_ORIGINAL: 123 case LLSaleInfo::FS_ORIGINAL:
120 title << "Buy " << node->mName; // XUI:translate 124 title = sInstance->childGetText("title_buy_text");
121 break; 125 break;
122 case LLSaleInfo::FS_COPY: 126 case LLSaleInfo::FS_COPY:
123 default: 127 default:
124 title << "Buy Copy of " << node->mName; // XUI:translate 128 title = sInstance->childGetText("title_buy_copy_text");
125 break; 129 break;
126 } 130 }
127 sInstance->setTitle(title.str()); 131 title.setArg("[NAME]", node->mName);
132 sInstance->setTitle(title);
128 133
129 LLUUID owner_id; 134 LLUUID owner_id;
130 LLString owner_name; 135 LLString owner_name;
@@ -160,15 +165,15 @@ void LLFloaterBuy::show(const LLSaleInfo& sale_info)
160 LLString text = node->mName; 165 LLString text = node->mName;
161 if (!(next_owner_mask & PERM_COPY)) 166 if (!(next_owner_mask & PERM_COPY))
162 { 167 {
163 text.append(" (no copy)"); // XUI:translate 168 text.append(sInstance->childGetText("no_copy_text"));
164 } 169 }
165 if (!(next_owner_mask & PERM_MODIFY)) 170 if (!(next_owner_mask & PERM_MODIFY))
166 { 171 {
167 text.append(" (no modify)"); // XUI:translate 172 text.append(sInstance->childGetText("no_modify_text"));
168 } 173 }
169 if (!(next_owner_mask & PERM_TRANSFER)) 174 if (!(next_owner_mask & PERM_TRANSFER))
170 { 175 {
171 text.append(" (no transfer)"); // XUI:translate 176 text.append(sInstance->childGetText("no_transfer_text"));
172 } 177 }
173 178
174 row["columns"][1]["column"] = "text"; 179 row["columns"][1]["column"] = "text";