1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

Translate basic HTML views

app('view') call to set translator is temporary. See #189
This commit is contained in:
Toby Zerner
2015-10-21 11:36:49 +10:30
parent a7c2a7a2d3
commit fc7db914db
4 changed files with 9 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
$url = app('Flarum\Forum\UrlGenerator');
?>
<div class="container">
<h2>All Discussions</h2>
<h2>{{ $translator->trans('core.ref.all_discussions') }}</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 }}">Next Page &raquo;</a>
<a href="{{ $url->toRoute('index') }}?page={{ $page + 1 }}">{{ $translator->trans('core.basic.next_page_button') }} &raquo;</a>
</div>