Skip to content

Commit

Permalink
Merge pull request #7 from IGedeon/Add-Locale-Support
Browse files Browse the repository at this point in the history
Added Locale Support in Views
  • Loading branch information
deeshrestha authored Jan 16, 2019
2 parents df551f8 + 8f5f036 commit 021cb41
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 28 deletions.
10 changes: 5 additions & 5 deletions src/foundation-stubs/views/auth/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{ csrf_field() }}

<div class="email">
<label for="email">E-Mail Address</label>
<label for="email">{{ __('E-Mail Address') }}</label>

<input id="email" type="email" name="email" value="{{ old('email') }}" aria-describedby="emailHelpText" required autofocus>

Expand All @@ -29,7 +29,7 @@
</div>

<div class="password">
<label for="password">Password</label>
<label for="password">{{ __('Password') }}</label>

<input id="password" type="password" name="password" aria-describedby="passwordHelpText" required>

Expand All @@ -42,18 +42,18 @@

<div class="checkbox">
<label>
<input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}> Remember Me
<input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}> {{ __('Remember Me') }}
</label>
</div>

<div class="button-plus-link">
<button type="submit" class="button">
Login
{{ __('Login') }}
</button>

<a href="{{ route('password.request') }}">
&nbsp;
Forgot Your Password?
{{ __('Forgot Your Password?') }}
</a>
</div>
</form>
Expand Down
6 changes: 3 additions & 3 deletions src/foundation-stubs/views/auth/passwords/email.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
</div>

<div class="form-title text-center">
Reset Password
{{ __('Reset Password') }}
</div>

<form class="forgot-password-form" method="POST" action="{{ route('password.email') }}">

{{ csrf_field() }}

<div class="email">
<label for="email">E-Mail Address</label>
<label for="email">{{ __('E-Mail Address') }}</label>

<input id="email" type="email" name="email" value="{{ old('email') }}" aria-describedby="emailHelpText" required autofocus>

Expand All @@ -38,7 +38,7 @@

<div class="send-button">
<button type="submit" class="button">
Send Password Reset Link
{{ __('Send Password Reset Link') }}
</button>
</div>

Expand Down
8 changes: 4 additions & 4 deletions src/foundation-stubs/views/auth/passwords/reset.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</div>

<div class="form-title text-center">
Reset Password
{{ __('Reset Password') }}
</div>

<form class="password-reset-form" method="POST" action="{{ route('password.request') }}">
Expand All @@ -27,7 +27,7 @@
<input type="hidden" name="token" value="{{ $token }}">

<div class="email">
<label for="email">E-Mail Address</label>
<label for="email">{{ __('E-Mail Address') }}</label>

<input id="email" type="email" name="email" value="{{ old('email') }}" aria-describedby="emailHelpText" required autofocus>

Expand All @@ -51,7 +51,7 @@
</div>

<div class="password">
<label for="password-confirm">Confirm Password</label>
<label for="password-confirm">{{ __('Confirm Password') }}</label>

<input id="password-confirm" type="password" name="password_confirmation" aria-describedby="passwordConfirmHelpText" required>

Expand All @@ -64,7 +64,7 @@

<div class="reset-button">
<button type="submit" class="button">
Reset Password
{{ __('Reset Password') }}
</button>
</div>

Expand Down
10 changes: 5 additions & 5 deletions src/foundation-stubs/views/auth/register.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{ csrf_field() }}

<div class="name">
<label for="email">Name</label>
<label for="email">{{ __('Name') }}</label>

<input id="name" type="text" class="form-control" name="name" value="{{ old('name') }}" aria-describedby="nameHelpText" required autofocus>

Expand All @@ -29,7 +29,7 @@
</div>

<div class="email">
<label for="email">E-Mail Address</label>
<label for="email">{{ __('E-Mail Address') }}</label>

<input id="email" type="email" name="email" value="{{ old('email') }}" aria-describedby="emailHelpText" required>

Expand All @@ -41,7 +41,7 @@
</div>

<div class="password">
<label for="password">Password</label>
<label for="password">{{ __('Password') }}</label>

<input id="password" type="password" name="password" aria-describedby="passwordHelpText" required>

Expand All @@ -53,13 +53,13 @@
</div>

<div class="password-confirm">
<label for="password-confirm">Confirm Password</label>
<label for="password-confirm">{{ __('Confirm Password') }}</label>
<input id="password-confirm" type="password" name="password_confirmation" required>
</div>

<div class="register_button">
<button type="submit" class="button">
Register
{{ __('Register') }}
</button>
</div>

Expand Down
4 changes: 2 additions & 2 deletions src/foundation-stubs/views/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<div class="form-container small-6 small-centered columns">

<div class="form-title text-center">
Dashboard
{{ __('Dashboard') }}
</div>

<div class="callout">
You are logged in!
{{ __('You are logged in!') }}
</div>

</div>
Expand Down
18 changes: 9 additions & 9 deletions src/foundation-stubs/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@
@if (Route::has('login'))
<div class="top-right links">
@if (Auth::check())
<a href="{{ url('/home') }}">Home</a>
<a href="{{ url('/home') }}">{{ __('Home') }}</a>
@else
<a href="{{ url('/login') }}">Login</a>
<a href="{{ url('/register') }}">Register</a>
<a href="{{ url('/login') }}">{{ __('Login') }}</a>
<a href="{{ url('/register') }}">{{ __('Register') }}</a>
@endif
</div>
@endif
Expand All @@ -103,15 +103,15 @@

<div class="title m-b-md">
Laravel
<p class="versioninfo">Version {{ app()->version() }}</p>
<p class="versioninfo">{{ __('Version') }} {{ app()->version() }}</p>
</div>

<div class="links">
<a href="https://laravel.com/docs">Documentation</a>
<a href="https://laracasts.com">Laracasts</a>
<a href="https://laravel-news.com">News</a>
<a href="https://forge.laravel.com">Forge</a>
<a href="https://github.com/laravel/laravel">GitHub</a>
<a href="https://laravel.com/docs">{{ __('Documentation') }}</a>
<a href="https://laracasts.com">{{ __('Laracasts') }}</a>
<a href="https://laravel-news.com">{{ __('News') }}</a>
<a href="https://forge.laravel.com">{{ __('Forge') }}</a>
<a href="https://github.com/laravel/laravel">{{ __('GitHub') }}</a>
</div>

<div class="foundation_button_test">
Expand Down

0 comments on commit 021cb41

Please sign in to comment.