Merge pull request #918 from dcsjapan/extract-views

Extract translations from core blade files.
This commit is contained in:
Toby Zerner 2016-04-07 19:36:30 +09:30
commit 4dc9e7741c
4 changed files with 11 additions and 11 deletions

View File

@ -1,14 +1,14 @@
<div id="flarum-loading" style="display: none">
{{ $translator->trans('core.basic.loading_text') }}
{{ $translator->trans('core.views.content.loading_text') }}
</div>
@if (! $noJs) <noscript> @endif
<div class="Alert">
<div class="container">
@if ($noJs)
{{ $translator->trans('core.basic.load_error_message') }}
{{ $translator->trans('core.views.content.load_error_message') }}
@else
{{ $translator->trans('core.basic.javascript_disabled_message') }}
{{ $translator->trans('core.views.content.javascript_disabled_message') }}
@endif
</div>
</div>

View File

@ -20,10 +20,10 @@ $postsCount = count($discussion->relationships->posts->data);
</div>
@if ($page > 1)
<a href="{{ $url(['page' => $page - 1]) }}">&laquo; {{ $translator->trans('core.basic.previous_page_button') }}</a>
<a href="{{ $url(['page' => $page - 1]) }}">&laquo; {{ $translator->trans('core.views.discussion.previous_page_button') }}</a>
@endif
@if ($page < $postsCount / 20)
<a href="{{ $url(['page' => $page + 1]) }}">{{ $translator->trans('core.basic.next_page_button') }} &raquo;</a>
<a href="{{ $url(['page' => $page + 1]) }}">{{ $translator->trans('core.views.discussion.next_page_button') }} &raquo;</a>
@endif
</div>

View File

@ -2,7 +2,7 @@
$url = app('Flarum\Forum\UrlGenerator');
?>
<div class="container">
<h2>{{ $translator->trans('core.ref.all_discussions') }}</h2>
<h2>{{ $translator->trans('core.views.index.all_discussions_heading') }}</h2>
<ul>
@foreach ($document->data as $discussion)
@ -16,5 +16,5 @@ $url = app('Flarum\Forum\UrlGenerator');
@endforeach
</ul>
<a href="{{ $url->toRoute('index') }}?page={{ $page + 1 }}">{{ $translator->trans('core.basic.next_page_button') }} &raquo;</a>
<a href="{{ $url->toRoute('index') }}?page={{ $page + 1 }}">{{ $translator->trans('core.views.index.next_page_button') }} &raquo;</a>
</div>

View File

@ -9,24 +9,24 @@
</head>
<body>
<h1>Reset Your Password</h1>
<h1>{{ $translator->trans('core.views.reset.title') }}</h1>
<form class="form-horizontal" role="form" method="POST" action="{{ app('Flarum\Forum\UrlGenerator')->toRoute('savePassword') }}">
<input type="hidden" name="csrfToken" value="{{ $csrfToken }}">
<input type="hidden" name="passwordToken" value="{{ $passwordToken }}">
<div class="form-group">
<label class="control-label">Password</label>
<label class="control-label">{{ $translator->trans('core.views.reset.password_label') }}</label>
<input type="password" class="form-control" name="password">
</div>
<div class="form-group">
<label class="control-label">Confirm Password</label>
<label class="control-label">{{ $translator->trans('core.views.reset.confirm_password_label') }}</label>
<input type="password" class="form-control" name="password_confirmation">
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">Reset Password</button>
<button type="submit" class="btn btn-primary">{{ $translator->trans('core.views.reset.submit_button') }}</button>
</div>
</form>
</body>