mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02: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 {
|
} else {
|
||||||
return sprintf(
|
return sprintf(
|
||||||
_t(
|
_t(
|
||||||
'Date.TIMEDIFFAWAY',
|
'Date.TIMEDIFFIN',
|
||||||
"%s away",
|
"in %s",
|
||||||
PR_MEDIUM,
|
PR_MEDIUM,
|
||||||
'Natural language time difference, e.g. 2 hours away'
|
'Natural language time difference, e.g. in 2 hours'
|
||||||
),
|
),
|
||||||
$this->TimeDiff()
|
$this->TimeDiff()
|
||||||
);
|
);
|
||||||
|
@ -142,10 +142,10 @@ $lang['en_US']['Date']['TIMEDIFFAGO'] = array(
|
|||||||
PR_MEDIUM,
|
PR_MEDIUM,
|
||||||
'Natural language time difference, e.g. 2 hours ago'
|
'Natural language time difference, e.g. 2 hours ago'
|
||||||
);
|
);
|
||||||
$lang['en_US']['Date']['TIMEDIFFAWAY'] = array(
|
$lang['en_US']['Date']['TIMEDIFFIN'] = array(
|
||||||
'%s away',
|
'in %s',
|
||||||
PR_MEDIUM,
|
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']['YEAR'] = ' year';
|
||||||
$lang['en_US']['Date']['YEARS'] = ' years';
|
$lang['en_US']['Date']['YEARS'] = ' years';
|
||||||
|
Loading…
Reference in New Issue
Block a user