From 1b28ed39b8ffbd38ab68e99ad08349edfd24d214 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Mon, 23 Aug 2010 08:23:18 -0700 Subject: Added grid info to the title bar along with usernames when allow multiple instances is enabled --- linden/indra/newview/llstartup.cpp | 9 ++++++++- linden/indra/newview/skins/default/xui/en-us/strings.xml | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'linden/indra/newview') diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index b12c253..e438f0c 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp @@ -2173,7 +2173,14 @@ bool idle_startup() // Change the window title to include the avatar name if we're using multiple viewers -- MC if (gSavedSettings.getBOOL("AllowMultipleViewers")) { - gWindowTitle = gSecondLife + " - " + firstname + " " + lastname; + LLStringUtil::format_map_t args; + args["[FIRST_NAME]"] = firstname; + args["[LAST_NAME]"] = lastname; + args["[GRID_NAME]"] = (gHippoGridManager->getConnectedGrid()->getGridName().empty()) ? + gHippoGridManager->getConnectedGrid()->getGridNick() : + gHippoGridManager->getConnectedGrid()->getGridName(); + std::string title_text = LLTrans::getString("TitleBarMultiple", args); + gWindowTitle = gSecondLife + " - " + title_text; LLStringUtil::truncate(gWindowTitle, 255); gViewerWindow->getWindow()->setWindowTitle(gWindowTitle); } diff --git a/linden/indra/newview/skins/default/xui/en-us/strings.xml b/linden/indra/newview/skins/default/xui/en-us/strings.xml index 5bd0924..a17d0de 100644 --- a/linden/indra/newview/skins/default/xui/en-us/strings.xml +++ b/linden/indra/newview/skins/default/xui/en-us/strings.xml @@ -17,6 +17,9 @@ January:February:March:April:May:June:July:August:September:October:November:December + + [FIRST_NAME] [LAST_NAME] on [GRID_NAME] + Logging in. [APP_NAME] may appear frozen. Please wait. -- cgit v1.1