Skip to content

Commit e9a5179

Browse files
committed
Instead of "?object_not_owner" display " (Owner)" appended on Object IM Info Floater
Translators may want to update floater_object_im_info.xml, string "owner" was added.
1 parent a2058bc commit e9a5179

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

indra/newview/llfloaterobjectiminfo.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ BOOL LLFloaterObjectIMInfo::postBuild()
7979
{
8080
getChild<LLUICtrl>("Mute")->setCommitCallback(boost::bind(&LLFloaterObjectIMInfo::onClickMute, this));
8181
getChild<LLTextBox>("OwnerName")->setClickedCallback(boost::bind(boost::ref(mGroupOwned) ? boost::bind(LLGroupActions::show, boost::ref(mOwnerID)) : boost::bind(show_avatar_profile, boost::ref(mOwnerID))));
82-
getChild<LLTextBox>("Slurl")->setClickedCallback(boost::bind(LLUrlAction::showLocationOnMap, "secondlife://" + static_cast<std::string>(boost::ref(mSLurl))));
82+
getChild<LLTextBox>("Slurl")->setClickedCallback(boost::bind(LLUrlAction::executeSLURL, boost::bind(std::plus<std::string>(), "secondlife:///app/worldmap/", boost::ref(mSLurl))));
8383

8484
return true;
8585
}
@@ -104,7 +104,11 @@ void LLFloaterObjectIMInfo::update(const LLSD& data)
104104
childSetVisible("Slurl",have_slurl);
105105

106106
childSetText("ObjectName",mName);
107-
childSetText("Slurl",mSLurl);
107+
std::string slurl(mSLurl);
108+
std::string::size_type i = slurl.rfind("?owner_not_object");
109+
if (i != std::string::npos)
110+
slurl.erase(i) += getString("owner");
111+
childSetText("Slurl", slurl);
108112
childSetText("OwnerName", LLStringUtil::null);
109113
getChildView("ObjectID")->setValue(data["object_id"].asUUID());
110114

indra/newview/skins/default/xui/en-us/floater_object_im_info.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
border_thickness="0" bottom_delta="-10" enabled="true" follows="left|top"
2727
font="SansSerif" height="20" is_unicode="false" left="70" hover="true"
2828
max_length="254" mouse_opaque="true" name="Slurl" font-style="UNDERLINE"
29-
width="200" hover_cursor="UI_CURSOR_HAND" text_color="TextLinkColor" hover_color="TextLinkHoverColor"/>
29+
hover_cursor="UI_CURSOR_HAND" text_color="TextLinkColor" hover_color="TextLinkHoverColor"/>
3030

3131
<!-- A new viewer talking to an old sim will not have a slurl available and will show this. -->
3232
<text bevel_style="none" border_style="line" border_visible="false"
@@ -55,4 +55,5 @@
5555
<button bottom_delta="-28" font="SansSerif" halign="center" height="20" label="Mute Owner"
5656
label_selected="Mute Owner" left="70" mouse_opaque="true" name="Mute"
5757
width="160" />
58+
<string name="owner" value=" (Owner)"/>
5859
</floater>

0 commit comments

Comments
 (0)