From b0df2650fe9ecabb7764b972948cae7448332f5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=82=AF=E3=83=8B=E3=82=AB=E3=83=AB=E8=AB=8F?= =?UTF-8?q?=E8=A8=AA=E5=AD=90?= Date: Thu, 25 Jan 2018 04:20:59 +0900 Subject: [PATCH] Finally got the localisations to work. --- resources/views/entry.blade.php | 65 +++++++++++++++++++++++++-------- 1 file changed, 50 insertions(+), 15 deletions(-) diff --git a/resources/views/entry.blade.php b/resources/views/entry.blade.php index 3ba58c2..8bf5e98 100644 --- a/resources/views/entry.blade.php +++ b/resources/views/entry.blade.php @@ -5,38 +5,73 @@
-
__('entry.title', ['name' => 'Some Mod 2.0'], ['user' => 'Someuser'])
+
@lang('entry.title', ['name' => 'Some Mod 2.0', 'user' => 'Someuser'])
- __('entry.download') - | __('entry.update') - | __('entry.remove') - | __('entry.approve') - | __('entry.report') -
- __('entry.views', ['count' => '1000']) - | __('entry.downloads', ['count' => '1000']) - | __('entry.submitted', ['datetime' => '1945/05/05']) - | __('entry.updated', ['datetime' => '2050/12/01']) - | __('entry.filesize', ['size' => '1 TB']) +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ @lang('entry.views', ['count' => '1000']) +
+
+ @lang('entry.downloads', ['count' => '1000']) +
+
+ @lang('entry.submitted', ['datetime' => '1945/05/05']) +
+
+ @lang('entry.updated', ['datetime' => '2050/12/01']) +
+
+ @lang('entry.filesize', ['size' => '1 TB']) +
+
+
-
__('entry.screenshots')
+
@lang('entry.screenshots')
-
__('entry.description')
+
@lang('entry.description')
-
__('entry.changelog', ['version' => '2.0'])
+
@lang('entry.changelog', ['version' => '2.0'])