Skip to content

Commit f71014a

Browse files
committed
Make page titles translatable.
1 parent 131b51a commit f71014a

8 files changed

+21
-7
lines changed

resources/lang/en/edpaste.php

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
return [
44

5+
'page.title.dashboard' => 'Dashboard',
6+
'page.title.home' => 'Home',
7+
'page.title.notfound' => 'Not found',
8+
'page.title.account' => 'My Account',
9+
'page.title.login' => 'Login',
10+
'page.title.register' => 'Register',
11+
512
'menu.home' => 'Home',
613
'menu.dashboard' => 'Dashboard',
714
'button.yes' => 'Yes',

resources/lang/fr/edpaste.php

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
return [
44

5+
'page.title.dashboard' => 'Tableau de bord',
6+
'page.title.home' => 'Accueil',
7+
'page.title.notfound' => 'Non trouvé',
8+
'page.title.account' => 'Mon compte',
9+
'page.title.login' => 'Authenfitication',
10+
'page.title.register' => 'Enregistrement',
11+
512
'menu.home' => 'Accueil',
613
'menu.dashboard' => 'Tableau de bord',
714
'button.yes' => 'Oui',

resources/views/auth/login.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@extends('default')
22

3-
@section('pagetitle') Login - EdPaste @endsection
3+
@section('pagetitle') {{ __('edpaste.page.title.login') }} - EdPaste @endsection
44

55
@section('navbar')
66
<li class="nav-item"><a href="/" class="nav-link">{{ __('edpaste.menu.home') }}</a></li>

resources/views/auth/register.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@extends('default')
22

3-
@section('pagetitle') Register - EdPaste @endsection
3+
@section('pagetitle') {{ __('edpaste.page.title.register') }} - EdPaste @endsection
44

55
@section('navbar')
66
<li class="nav-item"><a href="/" class="nav-link">{{ __('edpaste.menu.home') }}</a></li>

resources/views/errors/404.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@extends('default')
22

3-
@section('pagetitle') Not found - EdPaste @endsection
3+
@section('pagetitle') {{ __('edpaste.page.title.notfound') }} - EdPaste @endsection
44

55
@section('navbar')
66

resources/views/paste/account.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@extends('default')
22

3-
@section('pagetitle') My Account - EdPaste @endsection
3+
@section('pagetitle') {{ __('edpaste.page.title.account') }} - EdPaste @endsection
44

55
@section('navbar')
66
<li class="nav-item"><a href="/" class="nav-link">{{ __('edpaste.menu.home') }}</a></li>

resources/views/paste/dashboard.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@extends('default')
22

3-
@section('pagetitle') Dashboard - EdPaste @endsection
3+
@section('pagetitle') {{ __('edpaste.page.title.dashboard') }} - EdPaste @endsection
44

55
@section('navbar')
66
<li class="nav-item"><a href="/" class="nav-link">{{ __('edpaste.menu.home') }}</a></li>
@@ -29,7 +29,7 @@
2929
@section('content')
3030
<div class="container">
3131
<div class="row">
32-
<h2 class="text-center display-4">Dashboard</h2>
32+
<h2 class="text-center display-4">{{ __('edpaste.page.title.dashboard') }}</h2>
3333
<table class="table table-striped table-hover">
3434
<thead>
3535
<tr>

resources/views/paste/index.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@extends('default')
22

3-
@section('pagetitle') Home - EdPaste @endsection
3+
@section('pagetitle') {{ __('edpaste.page.title.home') }} - EdPaste @endsection
44

55
@section('navbar')
66
<li class="nav-item active"><a href="#" class="nav-link">{{ __('edpaste.menu.home') }}</a></li>

0 commit comments

Comments
 (0)