summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Stinson <stinson@lindenlab.com>2012-05-17 15:38:17 -0700
committerTodd Stinson <stinson@lindenlab.com>2012-05-17 15:38:17 -0700
commitcf0a6a61bd44b4becfa81eb3e0c6b16bc42c4c44 (patch)
tree78dbff8f219bd3e4cc2ef98c9f050d5833e360cd
parentecdc5cf7647c0cbbb057dba2f4bdeaafc3f5a93f (diff)
EXP-1928: Minor tweak to ensure that the case of the copy for content type is lower-case.
-rwxr-xr-xindra/newview/llagent.cpp4
-rwxr-xr-xindra/newview/llviewermessage.cpp4
-rw-r--r--indra/newview/skins/default/xui/en/notifications.xml2
3 files changed, 7 insertions, 3 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index 5d5e585563..b109749688 100755
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -3637,8 +3637,10 @@ void LLAgent::handleTeleportFinished()
if (mIsMaturityRatingChangingDuringTeleport)
{
// notify user that the maturity preference has been changed
+ std::string maturityRating = LLViewerRegion::accessToString(mMaturityRatingChange);
+ LLStringUtil::toLower(maturityRating);
LLSD args;
- args["RATING"] = LLViewerRegion::accessToString(mMaturityRatingChange);
+ args["RATING"] = maturityRating;
LLNotificationsUtil::add("PreferredMaturityChanged", args);
mIsMaturityRatingChangingDuringTeleport = false;
}
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index 84de54986f..a2054c1244 100755
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -5508,7 +5508,9 @@ bool handle_special_notification_callback(const LLSD& notification, const LLSD&
bool handle_special_notification(std::string notificationID, LLSD& llsdBlock)
{
U8 regionAccess = static_cast<U8>(llsdBlock["_region_access"].asInteger());
- llsdBlock["REGIONMATURITY"] = LLViewerRegion::accessToString(regionAccess);
+ std::string regionMaturity = LLViewerRegion::accessToString(regionAccess);
+ LLStringUtil::toLower(regionMaturity);
+ llsdBlock["REGIONMATURITY"] = regionMaturity;
bool returnValue = false;
LLNotificationPtr maturityLevelNotification;
diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml
index c76c28579b..0fe320f92b 100644
--- a/indra/newview/skins/default/xui/en/notifications.xml
+++ b/indra/newview/skins/default/xui/en/notifications.xml
@@ -4102,7 +4102,7 @@ Go to the Knowledge Base for more information about maturity Ratings?
name="RegionEntryAccessBlocked_Notify"
type="notifytip">
<tag>fail</tag>
- The region you're trying to visit contains [REGIONMATURITY] content, but your current preferences are set to exclude [REGIONMATURITY] content.
+The region you're trying to visit contains [REGIONMATURITY] content, but your current preferences are set to exclude [REGIONMATURITY] content.
</notification>
<notification