summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelobjectinventory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llpanelobjectinventory.cpp')
-rw-r--r--indra/newview/llpanelobjectinventory.cpp24
1 files changed, 19 insertions, 5 deletions
diff --git a/indra/newview/llpanelobjectinventory.cpp b/indra/newview/llpanelobjectinventory.cpp
index 63fad7ddfd..68181f12b9 100644
--- a/indra/newview/llpanelobjectinventory.cpp
+++ b/indra/newview/llpanelobjectinventory.cpp
@@ -289,10 +289,24 @@ const std::string& LLTaskInvFVBridge::getName() const
const std::string& LLTaskInvFVBridge::getDisplayName() const
{
LLInventoryItem* item = findItem();
+
if(item)
{
- mDisplayName.assign(item->getName());
-
+ if(item->getParentUUID().isNull())
+ {
+ if(item->getName() == "Contents")
+ {
+ mDisplayName.assign(LLTrans::getString("ViewerObjectContents"));
+ }
+ else
+ {
+ mDisplayName.assign(item->getName());
+ }
+ }
+ else
+ {
+ mDisplayName.assign(item->getName());
+ }
const LLPermissions& perm(item->getPermissions());
BOOL copy = gAgent.allowOperation(PERM_COPY, perm, GP_OBJECT_MANIPULATE);
BOOL mod = gAgent.allowOperation(PERM_MODIFY, perm, GP_OBJECT_MANIPULATE);
@@ -300,15 +314,15 @@ const std::string& LLTaskInvFVBridge::getDisplayName() const
if(!copy)
{
- mDisplayName.append(" (no copy)");
+ mDisplayName.append(LLTrans::getString("no_copy"));
}
if(!mod)
{
- mDisplayName.append(" (no modify)");
+ mDisplayName.append(LLTrans::getString("no_modify"));
}
if(!xfer)
{
- mDisplayName.append(" (no transfer)");
+ mDisplayName.append(LLTrans::getString("no_transfer"));
}
}