summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterbuy.cpp
diff options
context:
space:
mode:
authorChristian Goetze <cg@lindenlab.com>2007-10-10 00:01:43 +0000
committerChristian Goetze <cg@lindenlab.com>2007-10-10 00:01:43 +0000
commit5ec8bbbe2244ea70d8aa74b5c572351632699425 (patch)
tree12a4e92720c531105a21ef4f9f363b8572d72a3a /indra/newview/llfloaterbuy.cpp
parentb3b62c3b9ef32c4dbcae51cd3ef582734d5717bb (diff)
svn merge -r71238:71367 svn+ssh://svn/svn/linden/branches/maint-ui-qa3
Diffstat (limited to 'indra/newview/llfloaterbuy.cpp')
-rw-r--r--indra/newview/llfloaterbuy.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/indra/newview/llfloaterbuy.cpp b/indra/newview/llfloaterbuy.cpp
index 7767a37ccb..707ec0e852 100644
--- a/indra/newview/llfloaterbuy.cpp
+++ b/indra/newview/llfloaterbuy.cpp
@@ -113,21 +113,23 @@ void LLFloaterBuy::show(const LLSaleInfo& sale_info)
sInstance->center();
LLSelectNode* node = selection->getFirstRootNode();
- if (!node) return;
+ if (!node)
+ return;
// Set title based on sale type
- std::ostringstream title;
+ LLUIString title;
switch (sale_info.getSaleType())
{
- case LLSaleInfo::FS_ORIGINAL:
- title << "Buy " << node->mName; // XUI:translate
+ case LLSaleInfo::FS_ORIGINAL:
+ title = sInstance->childGetText("title_buy_text");
break;
- case LLSaleInfo::FS_COPY:
- default:
- title << "Buy Copy of " << node->mName; // XUI:translate
+ case LLSaleInfo::FS_COPY:
+ default:
+ title = sInstance->childGetText("title_buy_copy_text");
break;
}
- sInstance->setTitle(title.str());
+ title.setArg("[NAME]", node->mName);
+ sInstance->setTitle(title);
LLUUID owner_id;
LLString owner_name;
@@ -163,15 +165,15 @@ void LLFloaterBuy::show(const LLSaleInfo& sale_info)
LLString text = node->mName;
if (!(next_owner_mask & PERM_COPY))
{
- text.append(" (no copy)"); // XUI:translate
+ text.append(sInstance->childGetText("no_copy_text"));
}
if (!(next_owner_mask & PERM_MODIFY))
{
- text.append(" (no modify)"); // XUI:translate
+ text.append(sInstance->childGetText("no_modify_text"));
}
if (!(next_owner_mask & PERM_TRANSFER))
{
- text.append(" (no transfer)"); // XUI:translate
+ text.append(sInstance->childGetText("no_transfer_text"));
}
row["columns"][1]["column"] = "text";