diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 5d5e585563068b737c9b5ce690ac2107e48bcd94..b1097496886008296efefecdaf24c4b6e4124340 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 84de54986f6d8ac04797e926e6879901f0741355..a2054c1244b234cdae0b5ccc503a3b999e227394 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 c76c28579b2936d43f7d7b4047cf263679d8bd69..0fe320f92bc46c3e840b0b5f2c81dcdbee36bacb 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