diff --git a/app/helpers.php b/app/helpers.php index 6894fa1..8fb5c3c 100755 --- a/app/helpers.php +++ b/app/helpers.php @@ -150,7 +150,7 @@ function str_split_ucwords($string) * @param int $bytes File size. * @return string Converted file size with unit. */ -function formatSizeUnits($bytes) +function format_size_units($bytes) { if ($bytes >= 1073741824) { $bytes = number_format($bytes / 1073741824, 2).' GB'; diff --git a/resources/views/backups/index.blade.php b/resources/views/backups/index.blade.php index 8976fdc..d9efab9 100644 --- a/resources/views/backups/index.blade.php +++ b/resources/views/backups/index.blade.php @@ -24,7 +24,7 @@
| {{ trans('app.table_no') }} | -{{ trans('file.file') }} | -{{ trans('file.updated_at') }} | -{{ trans('file.size') }} | -{{ trans('file.download') }} | -{{ trans('app.action') }} | +{{ __('app.table_no') }} | +{{ __('file.file') }} | +{{ __('file.updated_at') }} | +{{ __('file.size') }} | +{{ __('file.download') }} | +{{ __('app.action') }} | @forelse($files as $key => $file) @@ -37,16 +37,16 @@{{ formatSizeUnits($file->getSize()) }} | +{{ format_size_units($file->getSize()) }} | - {!! html_link_to_route('files.download', '', [$file->id], ['icon' => 'file', 'title' => trans('file.download')]) !!} + {!! html_link_to_route('files.download', '', [$file->id], ['icon' => 'file', 'title' => __('file.download')]) !!} | - {!! html_link_to_route('projects.files', '', [$project->id, 'action' => 'edit', 'id' => $file->id], ['icon' => 'edit', 'title' => trans('file.edit')]) !!} + {!! html_link_to_route('projects.files', '', [$project->id, 'action' => 'edit', 'id' => $file->id], ['icon' => 'edit', 'title' => __('file.edit')]) !!} | @empty -
|---|---|---|---|---|---|
| {{ trans('file.empty') }} | |||||
| {{ __('file.empty') }} |