diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 9 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/strings.xml | 3 |
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> |