Skip to content

Commit

Permalink
Replaced translation keys for error page
Browse files Browse the repository at this point in the history
  • Loading branch information
promatik committed Sep 12, 2023
1 parent 4cd8e5d commit d5932e7
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/resources/lang/en/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
'welcome' => 'Welcome!',
'use_sidebar' => 'Use the sidebar to the left to create, edit or delete content.',

'error' => [
'error_page' => [
'title' => 'Error :error',
'button' => 'Take me home',
'message_4xx' => 'Please <a :href_back>go back</a> or return to <a :href_homepage>our homepage</a>.',
Expand Down
2 changes: 1 addition & 1 deletion src/resources/lang/pt/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
'welcome' => 'Bem-vindo!',
'use_sidebar' => 'Use a barra lateral à esquerda para criar, editar ou apagar conteúdo.',

'error' => [
'error_page' => [
'title' => 'Erro :error',
'button' => 'Voltar ao início',
],
Expand Down
4 changes: 2 additions & 2 deletions src/resources/views/ui/errors/4xx.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
@endphp

@section('title')
{{ trans('backpack::base.error.'.$error_number) }}
{{ trans('backpack::base.error_page.'.$error_number) }}
@endsection

@section('description')
{!! $exception?->getMessage() ? e($exception->getMessage()) : trans('backpack::base.error.message_4xx', [
{!! $exception?->getMessage() ? e($exception->getMessage()) : trans('backpack::base.error_page.message_4xx', [
'href_back' => 'href="javascript:history.back()"',
'href_homepage' => 'href="'.url('').'"',
]) !!}
Expand Down
4 changes: 2 additions & 2 deletions src/resources/views/ui/errors/500.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
@endphp

@section('title')
{{ trans('backpack::base.error.500') }}
{{ trans('backpack::base.error_page.500') }}
@endsection

@section('description')
{!! $exception?->getMessage() ? e($exception->getMessage()) : trans('backpack::base.error.message_500') !!}
{!! $exception?->getMessage() ? e($exception->getMessage()) : trans('backpack::base.error_page.message_500') !!}
@endsection
4 changes: 2 additions & 2 deletions src/resources/views/ui/errors/503.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
@endphp

@section('title')
{{ trans('backpack::base.error.503') }}
{{ trans('backpack::base.error_page.503') }}
@endsection

@section('description')
{!! $exception?->getMessage() ? e($exception->getMessage()) : trans('backpack::base.error.message_503') !!}
{!! $exception?->getMessage() ? e($exception->getMessage()) : trans('backpack::base.error_page.message_503') !!}
@endsection
2 changes: 1 addition & 1 deletion src/resources/views/ui/errors/blank.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ trans('backpack::base.error.title', ['error' => $error_number]) }}</title>
<title>{{ trans('backpack::base.error_page.title', ['error' => $error_number]) }}</title>
<style>
.error_number {
font-size: 156px;
Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/ui/errors/layout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="row">
<div class="col-md-12 text-center">
<div class="error_number">
<small>{{ strtoupper(trans('backpack::base.error.title', ['error' => ''])) }}</small><br>
<small>{{ strtoupper(trans('backpack::base.error_page.title', ['error' => ''])) }}</small><br>
{{ $error_number }}
<hr>
</div>
Expand Down

0 comments on commit d5932e7

Please sign in to comment.