aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-08-23 08:23:18 -0700
committerMcCabe Maxsted2010-08-28 05:01:17 -0700
commit1b28ed39b8ffbd38ab68e99ad08349edfd24d214 (patch)
treea516a89391141eb6f027b51789d7c459cd6a16ec
parentMake the 'allow anyone to X' checkboxes in the edit window behave like they d... (diff)
downloadmeta-impy-1b28ed39b8ffbd38ab68e99ad08349edfd24d214.zip
meta-impy-1b28ed39b8ffbd38ab68e99ad08349edfd24d214.tar.gz
meta-impy-1b28ed39b8ffbd38ab68e99ad08349edfd24d214.tar.bz2
meta-impy-1b28ed39b8ffbd38ab68e99ad08349edfd24d214.tar.xz
Added grid info to the title bar along with usernames when allow multiple instances is enabled
-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>