aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-08-23 08:23:18 -0700
committerMcCabe Maxsted2010-08-26 11:25:47 -0700
commitf7f701589a87e7093a1d00812302467138def4c4 (patch)
treef571fa5acd73fe32e4c879f658e3e3d4aaffcb41 /linden/indra/newview
parentUpdated the about window to include the Cool VL Viewer and mention Kitty as t... (diff)
downloadmeta-impy-f7f701589a87e7093a1d00812302467138def4c4.zip
meta-impy-f7f701589a87e7093a1d00812302467138def4c4.tar.gz
meta-impy-f7f701589a87e7093a1d00812302467138def4c4.tar.bz2
meta-impy-f7f701589a87e7093a1d00812302467138def4c4.tar.xz
Added grid info to the title bar along with usernames when allow multiple instances is enabled
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/llstartup.cpp9
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/strings.xml3
2 files changed, 11 insertions, 1 deletions
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()
2173 // Change the window title to include the avatar name if we're using multiple viewers -- MC 2173 // Change the window title to include the avatar name if we're using multiple viewers -- MC
2174 if (gSavedSettings.getBOOL("AllowMultipleViewers")) 2174 if (gSavedSettings.getBOOL("AllowMultipleViewers"))
2175 { 2175 {
2176 gWindowTitle = gSecondLife + " - " + firstname + " " + lastname; 2176 LLStringUtil::format_map_t args;
2177 args["[FIRST_NAME]"] = firstname;
2178 args["[LAST_NAME]"] = lastname;
2179 args["[GRID_NAME]"] = (gHippoGridManager->getConnectedGrid()->getGridName().empty()) ?
2180 gHippoGridManager->getConnectedGrid()->getGridNick() :
2181 gHippoGridManager->getConnectedGrid()->getGridName();
2182 std::string title_text = LLTrans::getString("TitleBarMultiple", args);
2183 gWindowTitle = gSecondLife + " - " + title_text;
2177 LLStringUtil::truncate(gWindowTitle, 255); 2184 LLStringUtil::truncate(gWindowTitle, 255);
2178 gViewerWindow->getWindow()->setWindowTitle(gWindowTitle); 2185 gViewerWindow->getWindow()->setWindowTitle(gWindowTitle);
2179 } 2186 }
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 @@
17 <string name="StatBarMonthsOfYear"> 17 <string name="StatBarMonthsOfYear">
18 January:February:March:April:May:June:July:August:September:October:November:December 18 January:February:March:April:May:June:July:August:September:October:November:December
19 </string> 19 </string>
20 <string name="TitleBarMultiple">
21 [FIRST_NAME] [LAST_NAME] on [GRID_NAME]
22 </string>
20 23
21 <!-- Login --> 24 <!-- Login -->
22 <string name="LoginInProgress">Logging in. [APP_NAME] may appear frozen. Please wait.</string> 25 <string name="LoginInProgress">Logging in. [APP_NAME] may appear frozen. Please wait.</string>