Add missing translation in DateHelper

This commit is contained in:
SkyFox
2017-12-20 22:30:43 +01:00
committed by fguillot
parent 8e6476b402
commit b4d5ddb832
31 changed files with 93 additions and 1 deletions

View File

@@ -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);
}
/**