mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR More common language in Date->TimeDiff() ("in 2 hours" instead of "2 hours away") (fixes #5402)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@111840 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
96fe7babb9
commit
3f2cc791ac
@ -169,10 +169,10 @@ class Date extends DBField {
|
||||
} else {
|
||||
return sprintf(
|
||||
_t(
|
||||
'Date.TIMEDIFFAWAY',
|
||||
"%s away",
|
||||
'Date.TIMEDIFFIN',
|
||||
"in %s",
|
||||
PR_MEDIUM,
|
||||
'Natural language time difference, e.g. 2 hours away'
|
||||
'Natural language time difference, e.g. in 2 hours'
|
||||
),
|
||||
$this->TimeDiff()
|
||||
);
|
||||
|
@ -142,10 +142,10 @@ $lang['en_US']['Date']['TIMEDIFFAGO'] = array(
|
||||
PR_MEDIUM,
|
||||
'Natural language time difference, e.g. 2 hours ago'
|
||||
);
|
||||
$lang['en_US']['Date']['TIMEDIFFAWAY'] = array(
|
||||
'%s away',
|
||||
$lang['en_US']['Date']['TIMEDIFFIN'] = array(
|
||||
'in %s',
|
||||
PR_MEDIUM,
|
||||
'Natural language time difference, e.g. 2 hours away'
|
||||
'Natural language time difference, e.g. in 2 hours'
|
||||
);
|
||||
$lang['en_US']['Date']['YEAR'] = ' year';
|
||||
$lang['en_US']['Date']['YEARS'] = ' years';
|
||||
|
Loading…
x
Reference in New Issue
Block a user