mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 10:08:31 -05:00
(Update) fine tune translation 🌎
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user