More translations

This commit is contained in:
lordwilbur
2018-05-18 16:02:49 +02:00
committed by Nabeel Shahzad
parent 89ebcbdb10
commit 81c148fc4d
7 changed files with 75 additions and 18 deletions

View File

@@ -1,12 +1,13 @@
@extends('app')
@section('title', 'not authorized')
@section('title', __trans('frontend.errors.401title'))
@section('content')
<div class="container registered-page">
<h3>Unauthorized</h3>
<h3>@lang('frontend.errors.401header')</h3>
<p>
Well, this is embarrassing, you are not authorized to access or perform this function.
Click <a href="{{ url()->previous() }}">here</a> to go back to the home page.
@foreach(trans('frontend.errors.401message') as $line)
{!! str_replace(':link', config('app.url'), $line).'<br />' !!}
@endforeach
</p>
</div>
@endsection

View File

@@ -1,12 +1,13 @@
@extends('app')
@section('title', 'not found')
@section('title', trans('frontend.errors.404title'))
@section('content')
<div class="container registered-page">
<h3>Page Not Found</h3>
<h3>@lang('frontend.errors.404header')</h3>
<p>
Well, this is embarrassing, the page you requested does not exist.
Click <a href="{{ url()->previous() }}">here</a> to go back to the home page.
@foreach(trans('frontend.errors.404message') as $line)
{!! str_replace(':link', config('app.url'), $line).'<br />' !!}
@endforeach
{{ $exception->getMessage() }}
</p>
</div>

View File

@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Be right back.</title>
<title>@lang('frontend.errors.503message')</title>
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
@@ -40,7 +40,7 @@
<body>
<div class="container">
<div class="content">
<div class="title">Be right back.</div>
<div class="title">@lang('frontend.errors.503message')</div>
</div>
</div>
</body>

View File

@@ -3,7 +3,7 @@
if (! empty($greeting)) {
echo $greeting, "\n\n";
} else {
echo $level == 'error' ? 'Whoops!' : 'Hello!', "\n\n";
echo $level == 'error' ? trans('frontend.emails.whoops').'!' : trans('frontend.emails.hello').',', "\n\n";
}
if (! empty($introLines)) {
@@ -18,5 +18,5 @@ if (! empty($outroLines)) {
echo implode("\n", $outroLines), "\n\n";
}
echo 'Regards,', "\n";
echo trans('frontend.emails.regards).',', "\n";
echo config('app.name'), "\n";

View File

@@ -85,9 +85,9 @@ $style = [
<!-- Greeting -->
<h1 style="{{ $style['header-1'] }}">
@if ($level == 'error')
Whoops!
@lang('frontend.emails.whoops')!
@else
Hello!
@lang('frontend.emails.hello'),
@endif
</h1>
@@ -136,7 +136,7 @@ $style = [
<!-- Salutation -->
<p style="{{ $style['paragraph'] }}">
Regards,<br>{{ config('app.name') }}
@lang('frontend.emails.regards'),<br>{{ config('app.name') }}
</p>
<!-- Sub Copy -->
@@ -145,8 +145,9 @@ $style = [
<tr>
<td style="{{ $fontFamily }}">
<p style="{{ $style['paragraph-sub'] }}">
If youre having trouble clicking the "{{ $actionText }}" button,
copy and paste the URL below into your web browser:
@foreach(trans('frontend.emails.buttontroubles' as $line)
{{ str_replace(':actiontext', $actionText, $line) }}
@endforeach
</p>
<p style="{{ $style['paragraph-sub'] }}">
@@ -173,7 +174,7 @@ $style = [
<p style="{{ $style['paragraph-sub'] }}">
&copy; {{ date('Y') }}
<a style="{{ $style['anchor'] }}" href="{{ url('/') }}" target="_blank">{{ config('app.name') }}</a>.
All rights reserved.
@lang(frontend.emails.allrightsreserved')
</p>
</td>
</tr>