Browse Source

英文显示时间单位加空格2

master
wanghongjun 1 day ago
parent
commit
af17e56b6a
  1. 8
      app/common.php

8
app/common.php

@ -167,17 +167,17 @@ if (!function_exists('get_time_difference_str')) {
);
}
if (!empty($difference['hours']) || !empty($value)) {
$value .= $difference['hours'] . $str . __(
$value .= $str . $difference['hours'] . $str . __(
'controller.parking_space.hours'
);
}
if (!empty($difference['minutes']) || !empty($value)) {
$value .= $difference['minutes'] . $str . __(
$value .= $str . $difference['minutes'] . $str . __(
'controller.parking_space.minutes'
);
}
if (!empty($difference['seconds']) || !empty($value)) {
$value .= $difference['seconds'] . $str . __(
$value .= $str . $difference['seconds'] . $str . __(
'controller.parking_space.seconds'
);
}
@ -222,7 +222,7 @@ if (!function_exists('get_minutes')) {
'controller.parking_space.minutes'
);
$hoursStr = $hours . $str . __('controller.parking_space.hours');
return $hoursStr . $minutesStr;
return $hoursStr . $str . $minutesStr;
}
}
}

Loading…
Cancel
Save