diff options
| author | angela <angela@lindenlab.com> | 2009-10-23 20:07:53 +0800 | 
|---|---|---|
| committer | angela <angela@lindenlab.com> | 2009-10-23 20:07:53 +0800 | 
| commit | 312cf3cf88a1a36c1ad75101f91327852e40d9f1 (patch) | |
| tree | 570c24df25419641b694f29d2b56cedafc4d9a1c | |
| parent | c8485374dd1d3e0340d7821915f490c636f1b28c (diff) | |
EXT-1698  I18N: the string (worn) or (worn on left hand) wont honor its translation
| -rw-r--r-- | indra/newview/llinventorybridge.cpp | 7 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/strings.xml | 1 | 
2 files changed, 6 insertions, 2 deletions
| diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index d876647692..466558ecce 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -3884,7 +3884,10 @@ std::string LLObjectBridge::getLabelSuffix() const  	{  		std::string attachment_point_name = avatar->getAttachedPointName(mUUID);  		LLStringUtil::toLower(attachment_point_name); -		return LLItemBridge::getLabelSuffix() + std::string(" (worn on ") + attachment_point_name + std::string(")"); +		 +		LLStringUtil::format_map_t args; +		args["[ATTACHMENT_POINT]"] =  attachment_point_name.c_str(); +		return LLItemBridge::getLabelSuffix() + LLTrans::getString("WornOnAttachmentPoint", args);  	}  	else  	{ @@ -4303,7 +4306,7 @@ std::string LLWearableBridge::getLabelSuffix() const  {  	if( gAgentWearables.isWearingItem( mUUID ) )  	{ -		return LLItemBridge::getLabelSuffix() + " (worn)"; +		return LLItemBridge::getLabelSuffix() + LLTrans::getString("worn");  	}  	else  	{ diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml index a57c9cd97f..4c19b22ac5 100644 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -1819,6 +1819,7 @@ this texture in your inventory  	<string name="broken_link" value=" (broken_link)" />  	<string name="LoadingContents">Loading contents...</string>  	<string name="NoContents">No contents</string> +	<string name="WornOnAttachmentPoint"> (worn on [ATTACHMENT_POINT])</string>  	<!-- Gestures labels -->      <!-- use value="" because they have preceding spaces --> | 
