diff options
author | SkyFox <skyfox277@gmail.com> | 2017-12-20 22:30:43 +0100 |
---|---|---|
committer | fguillot <fred@kanboard.net> | 2017-12-20 13:30:43 -0800 |
commit | b4d5ddb83271fb1c27c58533a99f629eb5f6d87a (patch) | |
tree | aac9cc31f7aa8976365a8d6cd2b20927ac8aa396 /app/Helper | |
parent | 8e6476b4028e44687e10bf7fb2617a2d2fff97d2 (diff) |
Add missing translation in DateHelper
Diffstat (limited to 'app/Helper')
-rw-r--r-- | app/Helper/DateHelper.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Helper/DateHelper.php b/app/Helper/DateHelper.php index 3bc85b76..98de9a83 100644 --- a/app/Helper/DateHelper.php +++ b/app/Helper/DateHelper.php @@ -72,7 +72,9 @@ class DateHelper extends Base $dtF = new DateTime("@0"); $dtT = new DateTime("@$seconds"); - return $dtF->diff($dtT)->format('%a days, %h hours, %i minutes and %s seconds'); + + $format = sprintf("%%d %s, %%h %s, %%i %s, %%s %s", t('days'), t('hours'), t('minutes'), t('seconds')); + return $dtF->diff($dtT)->format($format); } /** |