(Update) fine tune translation 🌎

This commit is contained in:
Morgan Wong
2019-05-17 04:35:14 +08:00
committed by GitHub
parent cb4e8c8e0c
commit 90aaa2b618
+14 -14
View File
@@ -106,13 +106,13 @@ class StringHelper
$minutes++;
$seconds -= 60;
}
$years = ($years == 0) ? '' : $years.'Y ';
$months = ($months == 0) ? '' : $months.'M ';
$weeks = ($weeks == 0) ? '' : $weeks.'W ';
$days = ($days == 0) ? '' : $days.'D ';
$hours = ($hours == 0) ? '' : $hours.'h ';
$minutes = ($minutes == 0) ? '' : $minutes.'m ';
$seconds = ($seconds == 0) ? '' : $seconds.'s';
$years = ($years == 0) ? '' : $years.trans('common.abbrev-years');
$months = ($months == 0) ? '' : $months.trans('common.abbrev-months');
$weeks = ($weeks == 0) ? '' : $weeks.trans('common.abbrev-weeks');
$days = ($days == 0) ? '' : $days.trans('common.abbrev-days');
$hours = ($hours == 0) ? '' : $hours.trans('common.abbrev-hours');
$minutes = ($minutes == 0) ? '' : $minutes.trans('common.abbrev-minutes');
$seconds = ($seconds == 0) ? '' : $seconds.trans('common.abbrev-seconds');
return $years.$months.$weeks.$days.$hours.$minutes.$seconds;
}
@@ -160,13 +160,13 @@ class StringHelper
$minutes++;
$seconds -= 60;
}
$years = ($years == 0) ? '' : $years.'Y ';
$months = ($months == 0) ? '' : $months.'M ';
$weeks = ($weeks == 0) ? '' : $weeks.'W ';
$days = ($days == 0) ? '' : $days.'D ';
$hours = ($hours == 0) ? '' : $hours.'h ';
$minutes = ($minutes == 0) ? '' : $minutes.'m ';
$seconds = ($seconds == 0) ? '' : $seconds.'s';
$years = ($years == 0) ? '' : $years.trans('common.abbrev-years');
$months = ($months == 0) ? '' : $months.trans('common.abbrev-months');
$weeks = ($weeks == 0) ? '' : $weeks.trans('common.abbrev-weeks');
$days = ($days == 0) ? '' : $days.trans('common.abbrev-days');
$hours = ($hours == 0) ? '' : $hours.trans('common.abbrev-hours');
$minutes = ($minutes == 0) ? '' : $minutes.trans('common.abbrev-minutes');
$seconds = ($seconds == 0) ? '' : $seconds.trans('common.abbrev-seconds');
return $years.$months.$weeks.$days.$hours.$minutes.$seconds;
}