EXT-7320 FIXED Moved date time stamp template to localized xml.
reviewed by Mike Antipov at https://codereview.productengine.com/secondlife/r/406/ --HG-- branch : product-enginemeow-7.2.2
parent
7f4680c8c2
commit
08a6474909
|
|
@ -646,9 +646,12 @@ void LLPanelLandGeneral::refresh()
|
|||
}
|
||||
|
||||
// Display claim date
|
||||
// *TODO:Localize (Time format may need Translating)
|
||||
time_t claim_date = parcel->getClaimDate();
|
||||
mTextClaimDate->setText(formatted_time(claim_date));
|
||||
std::string claim_date_str = getString("time_stamp_template");
|
||||
LLSD substitution;
|
||||
substitution["datetime"] = (S32) claim_date;
|
||||
LLStringUtil::format (claim_date_str, substitution);
|
||||
mTextClaimDate->setText(claim_date_str);
|
||||
mTextClaimDate->setEnabled(is_leased);
|
||||
|
||||
BOOL enable_auction = (gAgent.getGodLevel() >= GOD_LIAISON)
|
||||
|
|
|
|||
|
|
@ -108,6 +108,9 @@
|
|||
name="no_selection_text">
|
||||
No parcel selected.
|
||||
</panel.string>
|
||||
<panel.string name="time_stamp_template">
|
||||
[wkday,datetime,local] [mth,datetime,local] [day,datetime,local] [hour,datetime,local]:[min,datetime,local]:[second,datetime,local] [year,datetime,local]
|
||||
</panel.string>
|
||||
<text
|
||||
type="string"
|
||||
length="1"
|
||||
|
|
|
|||
Loading…
Reference in New Issue