summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@lindenlab.com>2009-06-11 11:14:45 -0700
committerBryan O'Sullivan <bos@lindenlab.com>2009-06-11 11:14:45 -0700
commit02c86086acceb83fcddad763123b532c70641688 (patch)
treea7a220131b5b491d5c0823df1c07ee86a97e2a77 /indra/newview/llviewermessage.cpp
parent5748a14f5d7e85230e74c330a7c2b058856be9cd (diff)
parent9c94b76ec10cb5a323f5f8c5c1e8340f40c3b175 (diff)
Merge with Sabin
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rw-r--r--indra/newview/llviewermessage.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index 520de0e403..bbfd480e0b 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -5246,6 +5246,7 @@ void process_script_dialog(LLMessageSystem* msg, void**)
S32 button_count = msg->getNumberOfBlocks("Buttons");
if (button_count > SCRIPT_DIALOG_MAX_BUTTONS)
{
+ llwarns << "Too many script dialog buttons - omitting some" << llendl;
button_count = SCRIPT_DIALOG_MAX_BUTTONS;
}
@@ -5454,7 +5455,15 @@ void process_covenant_reply(LLMessageSystem* msg, void**)
LLFloaterBuyLand::updateEstateName(estate_name);
// standard message, not from system
- std::string last_modified = std::string("Last Modified ") + formatted_time((time_t)covenant_timestamp);
+ std::string last_modified;
+ if (covenant_timestamp == 0)
+ {
+ last_modified = LLTrans::getString("covenant_never_modified");
+ }
+ else
+ {
+ last_modified = LLTrans::getString("covenant_modified") + " " + formatted_time((time_t)covenant_timestamp);
+ }
LLPanelEstateCovenant::updateLastModified(last_modified);
LLPanelLandCovenant::updateLastModified(last_modified);