From 74c07d83535b5027dcc00735d9d1342510d581bc Mon Sep 17 00:00:00 2001 From: printempw Date: Sun, 25 Sep 2016 10:02:40 +0800 Subject: [PATCH] working on i18n of admin pages --- resources/lang/en/general.yml | 1 + resources/lang/zh-CN/general.yml | 1 + resources/views/admin/customize.tpl | 4 ++-- resources/views/admin/download.tpl | 6 +++--- resources/views/admin/options.tpl | 4 ++-- resources/views/admin/players.tpl | 4 ++-- resources/views/admin/score.tpl | 4 ++-- resources/views/admin/update.tpl | 4 ++-- resources/views/admin/users.tpl | 4 ++-- 9 files changed, 17 insertions(+), 15 deletions(-) diff --git a/resources/lang/en/general.yml b/resources/lang/en/general.yml index e6c6e76b..cff49ea3 100644 --- a/resources/lang/en/general.yml +++ b/resources/lang/en/general.yml @@ -21,6 +21,7 @@ customize: Customize options: Options score-options: Score Options check-update: Check Update +download-update: Download Updates close: Close skin: Skin cape: Cape diff --git a/resources/lang/zh-CN/general.yml b/resources/lang/zh-CN/general.yml index fbf0206b..c61f55ad 100644 --- a/resources/lang/zh-CN/general.yml +++ b/resources/lang/zh-CN/general.yml @@ -21,6 +21,7 @@ customize: 个性化 options: 站点配置 score-options: 积分配置 check-update: 检查更新 +download-update: 下载更新 close: 关闭 skin: 皮肤 cape: 披风 diff --git a/resources/views/admin/customize.tpl b/resources/views/admin/customize.tpl index 06f14395..899ffa71 100644 --- a/resources/views/admin/customize.tpl +++ b/resources/views/admin/customize.tpl @@ -1,6 +1,6 @@ @extends('admin.master') -@section('title', '个性化') +@section('title', trans('general.customize')) @section('style') @@ -13,7 +13,7 @@

- 个性化 + {{ trans('general.customize') }} Customize

diff --git a/resources/views/admin/download.tpl b/resources/views/admin/download.tpl index 1139bb4d..5d8618ba 100644 --- a/resources/views/admin/download.tpl +++ b/resources/views/admin/download.tpl @@ -1,6 +1,6 @@ @extends('admin.master') -@section('title', '下载更新') +@section('title', trans('general.download-update')) @section('content') @@ -9,7 +9,7 @@

- 下载更新 + {{ trans('general.download-update') }} Download Updates

@@ -18,7 +18,7 @@
-

下载更新

+

{{ trans('general.download-update') }}

@@ -16,7 +16,7 @@

- 站点配置 + {{ trans('general.options') }} Options

diff --git a/resources/views/admin/players.tpl b/resources/views/admin/players.tpl index 7adafbc6..2e0ccd4c 100644 --- a/resources/views/admin/players.tpl +++ b/resources/views/admin/players.tpl @@ -1,6 +1,6 @@ @extends('admin.master') -@section('title', '角色管理') +@section('title', trans('general.player-manage')) @section('content') @@ -12,7 +12,7 @@ @if (isset($_GET['q'])) 搜索结果:{{ $_GET['q'] }} @else - 角色管理 + {{ trans('general.player-manage') }} @endif Player Management diff --git a/resources/views/admin/score.tpl b/resources/views/admin/score.tpl index 21c31f37..728fc056 100644 --- a/resources/views/admin/score.tpl +++ b/resources/views/admin/score.tpl @@ -1,6 +1,6 @@ @extends('admin.master') -@section('title', '积分配置') +@section('title', trans('general.score-options')) @section('content') @@ -9,7 +9,7 @@

- 积分配置 + {{ trans('general.score-options') }} Score Options

diff --git a/resources/views/admin/update.tpl b/resources/views/admin/update.tpl index 162a053f..4275b13b 100644 --- a/resources/views/admin/update.tpl +++ b/resources/views/admin/update.tpl @@ -1,6 +1,6 @@ @extends('admin.master') -@section('title', '检查更新') +@section('title', trans('general.check-update')) @section('style')