From 2bff6a080fbe7a37fc490d60b183f0d33ddbd03a Mon Sep 17 00:00:00 2001 From: printempw Date: Sun, 11 Dec 2016 22:04:15 +0800 Subject: [PATCH] add translation for index --- resources/assets/src/sass/index.scss | 71 +++++++++++++--------------- resources/lang/en/index.yml | 16 +++++++ resources/lang/zh-CN/index.yml | 16 +++++++ resources/views/index.tpl | 16 +++---- 4 files changed, 73 insertions(+), 46 deletions(-) create mode 100644 resources/lang/en/index.yml create mode 100644 resources/lang/zh-CN/index.yml diff --git a/resources/assets/src/sass/index.scss b/resources/assets/src/sass/index.scss index 1dcf1f18..4350821b 100644 --- a/resources/assets/src/sass/index.scss +++ b/resources/assets/src/sass/index.scss @@ -2,7 +2,7 @@ * @Author: printempw * @Date: 2016-06-04 20:54:53 * @Last Modified by: printempw - * @Last Modified time: 2016-12-11 15:10:01 + * @Last Modified time: 2016-12-11 21:36:02 */ @import "style.scss"; @@ -18,20 +18,39 @@ body { background-repeat: no-repeat; background-position: center 0; - .main-header .navbar { - transition: color 0.25s ease-in-out, - border-color 0.25s ease-in-out, - background-color 0.25s ease-in-out; - } + .main-header { + .navbar { + transition: color 0.25s ease-in-out, + border-color 0.25s ease-in-out, + background-color 0.25s ease-in-out; - .main-header .navbar-brand { - font-family: Minecraft, 'Segoe UI', 'Microsoft Yahei', 'Microsoft Jhenghei', sans-serif; - border-right: 0; - } + .user-menu .user-image { + border-radius: 10%; + } - .main-header .navbar .navbar-nav { - .user-menu .user-image { - border-radius: 10%; + .navbar-custom-menu .navbar-nav > li { + a.btn.btn-login { + background-color: transparent; + border-radius: 5px; + border: 1px solid #fff; + color: #fff !important; + margin-top: 7px; + margin-left: 10px; + padding: 8px 20px; + transition: border-color 0.25s ease-in-out, + background-color 0.3s ease-in-out; + } + + a.btn.btn-login:hover, + a.btn.btn-login:focus { + background-color: #006acc !important; + } + } + } + + .navbar-brand { + font-family: Minecraft, 'Segoe UI', 'Microsoft Yahei', 'Microsoft Jhenghei', sans-serif; + border-right: 0; } } @@ -68,7 +87,7 @@ body { } .navbar-custom-menu .navbar-nav > li { - a.btn { + a.btn.btn-login { background-color: #0078e7; border: 1px solid #0078e7; } @@ -80,14 +99,6 @@ body { } } - .main-header .navbar .navbar-custom-menu .navbar-nav > li { - a.btn { - border-radius: 5px; - background: transparent; - border: 1px solid #fff; - } - } - .content-wrapper { background-color: transparent; border: none; @@ -157,21 +168,6 @@ body { font-family: Ubuntu, 'Segoe UI', 'Microsoft Yahei', 'Microsoft Jhenghei', sans-serif; } -.navbar-custom-menu .navbar-nav > li { - a.btn.btn-login { - background-color: #0078e7; - color: #fff !important; - margin-top: 7px; - margin-left: 10px; - padding: 8px 20px; - } - - a.btn.btn-login:hover, - a.btn.btn-login:focus { - background-color: #006acc !important; - } -} - /* Mobile phone */ @media (max-width: 48em) { .splash-head { @@ -277,7 +273,6 @@ hr { /* Copyright Wrap */ #copyright { - border-top: #2f2f2f solid 5px; background: #222222; padding: 16px 0 20px; color: white diff --git a/resources/lang/en/index.yml b/resources/lang/en/index.yml new file mode 100644 index 00000000..c021a450 --- /dev/null +++ b/resources/lang/en/index.yml @@ -0,0 +1,16 @@ +features: + multi-player: + name: Multi Player + desc: You can add many players with only one account. + + sharing: + name: Sharing + desc: Explore the skin library, give a 'like' and share them with your friends. + + free: + name: Free + desc: It is free forever. No ads. No subscription fees. + +introduction: :sitename provides the service of uploading and hosting Minecraft skins. By coordinating with skin mods e.g. CustomSkinLoader, you can set skins & capes for your game character, and make it visible to other players. + +start: Join Us diff --git a/resources/lang/zh-CN/index.yml b/resources/lang/zh-CN/index.yml new file mode 100644 index 00000000..e395192e --- /dev/null +++ b/resources/lang/zh-CN/index.yml @@ -0,0 +1,16 @@ +features: + multi-player: + name: 多角色 + desc: 一个账户可绑定多个游戏角色 + + sharing: + name: 分享 + desc: 浏览皮肤库,添加喜爱的皮肤并与好友分享 + + free: + name: 永久免费 + desc: 我们承诺永不收取任何费用 + +introduction: :sitename 提供 Minecraft 角色皮肤的上传以及托管服务。配合 CustomSkinLoader 等换肤 MOD,您可以为您的游戏角色设置皮肤与披风,并让其他玩家在游戏中看到。 + +start: 开始使用 diff --git a/resources/views/index.tpl b/resources/views/index.tpl index 7c89a87b..57604627 100644 --- a/resources/views/index.tpl +++ b/resources/views/index.tpl @@ -106,18 +106,18 @@
-

多角色

-

一个账户可绑定多个游戏角色

+

{{ trans('index.features.multi-player.name') }}

+

{{ trans('index.features.multi-player.desc') }}

-

分享

-

浏览皮肤库,添加喜爱的皮肤并与好友分享

+

{{ trans('index.features.sharing.name') }}

+

{{ trans('index.features.sharing.desc') }}

-

永久免费

-

我们承诺永不收取任何费用

+

{{ trans('index.features.free.name') }}

+

{{ trans('index.features.free.desc') }}


@@ -127,11 +127,11 @@
- {{ option('site_name') }} 提供 Minecraft 角色皮肤的上传以及托管服务。配合 CustomSKinLoader 等换肤 MOD,您可以为您的游戏角色设置皮肤与披风,并让其他玩家在游戏中看到。 + {{ trans('index.introduction', ['sitename' => option('site_name')]) }}