From f2e5b843f93522e9644cf6f1ffaeb78ab9561634 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 26 Feb 2010 00:52:08 -0600 Subject: Rebranded new notifications system for all languages. Changed "Second Life" to "Imprudence", etc. Some URLs and SL-specific things have not been rebranded. Added foundation for dynamically rebranding grid names later. --- linden/indra/llui/llnotifications.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'linden/indra/llui') diff --git a/linden/indra/llui/llnotifications.cpp b/linden/indra/llui/llnotifications.cpp index 6b7dd0a..58ec511 100644 --- a/linden/indra/llui/llnotifications.cpp +++ b/linden/indra/llui/llnotifications.cpp @@ -601,8 +601,14 @@ void LLNotification::init(const std::string& template_name, const LLSD& form_ele if (!mTemplatep) return; // add default substitutions - // TODO: change this to read from the translatable strings file! - mSubstitutions["SECOND_LIFE"] = "Second Life"; + mSubstitutions["[SECOND_LIFE]"] = LLNotifications::instance().getGlobalString("SECOND_LIFE"); + mSubstitutions["[VIEWER_NAME]"] = LLNotifications::instance().getGlobalString("VIEWER_NAME"); + mSubstitutions["[VIEWER_SITE]"] = LLNotifications::instance().getGlobalString("VIEWER_SITE"); + + // TODO: set these based on which grid the user is connected to. + mSubstitutions["[GRID_NAME]"] = LLNotifications::instance().getGlobalString("SECOND_LIFE"); + mSubstitutions["[GRID_SITE]"] = LLNotifications::instance().getGlobalString("SECOND_LIFE_SITE"); + mSubstitutions["_URL"] = getURL(); mSubstitutions["_NAME"] = template_name; // TODO: something like this so that a missing alert is sensible: -- cgit v1.1