Merge pull request #40 from g-plane/master

working on i18n of setup
This commit is contained in:
printempw 2016-12-30 16:05:22 +08:00 committed by GitHub
commit 2c4d2f9189
16 changed files with 209 additions and 97 deletions

View File

@ -128,6 +128,13 @@
pid: 'Texture ID',
pidNotice: 'Please enter the tid of texture',
changePlayerTexture: 'Change textures of :player'
// Index
textureUpload: 'Texture Upload',
registration: 'Registration'
// Plugins
deletionConfirmation: 'Really delete this plugin?'
},
utils: {
fatalError: 'Fatal Error (Please contact the author)'

View File

@ -1,5 +1,6 @@
database:
connection-error: Unable to connect to MySQL server, please check your configuration. :msg
connection-success: Successfully connected to :server , just click NEXT to start installation.
file:
permission-error: Unable to create textures folder, please check the directory permissions or place one manually.
@ -7,3 +8,51 @@ file:
permissions:
storage: Unable to write to storage directory, please check the permissions.
locked:
title: Installed
text: You appear to have already installed Blessing Skin Server. To reinstall please clear your old database tables first, or use a new database table prefix.
back-to-index: Back to index
updates:
master:
title: Blessing Skin Server Updating Wizard
welcome:
title: Just one step
tip-welcome: Welcome to updating Blessing Skin Server
tip-next: We need to update your database, just click NEXT.
button: Next
success:
title: Updated successfully
tip-success: Database updated successfully. Welcome to Blessing Skin Server.
tip-update: Tips of updating
wizard:
info:
title: Providing information
button: Start installation
tip-info: Please provide the following information. Don't worry, you can always change these settings later.
admin-email: E-mail address of administrator
super-admin: This is the only one administrator account, which can ADD or CANCEL other administrators.
password: Password
tip-important: 'Important:'
password-saving: You will need this password to log in. Please store it in a secure location.
password-confirmation: Confirm password
site-name: Site name
site-name-show: will be showed in index and title.
welcome:
title: Welcom
button: Next
welcome: Welcome to Blessing Skin Server
master:
title: Blessing Skin Server Installation
finish:
title: Success!
success: Blessing Skin Server has been installed. Thank you, and enjoy!
email: E-mail
password: Password

View File

@ -128,6 +128,13 @@
pid: '材质 ID',
pidNotice: '输入要更换的材质的 TID',
changePlayerTexture: '更换角色 :player 的材质'
// Index
textureUpload: '材质上传',
registration: '用户注册'
// Plugins
deletionConfirmation: '真的要删除这个插件吗?'
},
utils: {
fatalError: '严重错误(请联系作者)'

View File

@ -1,5 +1,6 @@
database:
connection-error: 无法连接至 MySQL 服务器,请检查你的配置 :msg
connection-success: 成功连接至 MySQL 服务器 :server ,点击下一步以开始安装。
file:
permission-error: textures 文件夹创建失败,请确认目录权限是否正确,或者手动放置一个。
@ -7,3 +8,51 @@ file:
permissions:
storage: 无法写入 storage 目录,请检查目录权限是否正确
locked:
title: 已安装过
text: 看起来已经安装妥当。如果想重新安装,请删除数据库中的旧数据表,或者换一个数据表前缀。
back-to-index: 返回首页
updates:
master:
title: Blessing Skin Server 升级程序
welcome:
title: 还差一小步
tip-welcome: 欢迎升级至 Blessing Skin Server
tip-next: 我们需要升级您的数据库,点击下一步以继续。
button: 下一步
success:
title: 升级成功
tip-success: 数据库升级成功,欢迎使用 Blessing Skin Server
tip-update: 升级提示:
wizard:
info:
title: 填写信息
button: 开始安装
tip-info: 您需要填写一些基本信息。无需担心填错,这些信息以后可以再次修改。
admin-email: 管理员邮箱
super-admin: 这是唯一的超级管理员账号,可 添加/取消 其他管理员。
password: 密码
tip-important: 重要:
password-saving: 您将需要此密码来登录管理皮肤站,请将其保存在安全的位置。
password-confirmation: 重复密码
site-name: 站点名称
site-name-show: 将会显示在首页以及标题栏
welcome:
title: 欢迎
button: 下一步
welcome: 欢迎使用 Blessing Skin Server
master:
title: Blessing Skin Server 安装程序
finish:
title: 成功!
success: Blessing Skin Server 安装完成。您是否还沉浸在愉悦的安装过程中?很遗憾,一切皆已完成! :)
email: 邮箱
password: 密码

View File

@ -25,64 +25,64 @@
<div class="col-md-3">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">更改配色</h3>
<h3 class="box-title">{{ trans('admin.customize.change-color') }}</h3>
</div><!-- /.box-header -->
<div class="box-body no-padding">
<table id="layout-skins-list" class="table table-striped bring-up nth-2-center">
<tbody>
<tr>
<td>蓝色主题(默认)</td>
<td>{{ trans('admin.customize.color.blue') }}</td>
<td><a href="#" data-skin="skin-blue" class="btn btn-primary btn-xs"><i class="fa fa-eye"></i></a></td>
</tr>
<tr>
<td>蓝色主题-白色侧边栏</td>
<td>{{ trans('admin.customize.color.blue-white-sidebar') }}</td>
<td><a href="#" data-skin="skin-blue-light" class="btn btn-primary btn-xs"><i class="fa fa-eye"></i></a></td>
</tr>
<tr>
<td>黄色主题</td>
<td>{{ trans('admin.customize.color.yellow') }}</td>
<td><a href="#" data-skin="skin-yellow" class="btn btn-warning btn-xs"><i class="fa fa-eye"></i></a></td>
</tr>
<tr>
<td>黄色主题-白色侧边栏</td>
<td>{{ trans('admin.customize.color.yellow-white-sidebar') }}</td>
<td><a href="#" data-skin="skin-yellow-light" class="btn btn-warning btn-xs"><i class="fa fa-eye"></i></a></td>
</tr>
<tr>
<td>绿色主题</td>
<td>{{ trans('admin.customize.color.green') }}</td>
<td><a href="#" data-skin="skin-green" class="btn btn-success btn-xs"><i class="fa fa-eye"></i></a></td>
</tr>
<tr>
<td>绿色主题-白色侧边栏</td>
<td>{{ trans('admin.customize.color.green-white-sidebar') }}</td>
<td><a href="#" data-skin="skin-green-light" class="btn btn-success btn-xs"><i class="fa fa-eye"></i></a></td>
</tr>
<tr>
<td>基佬紫</td>
<td>{{ trans('admin.customize.color.purple') }}</td>
<td><a href="#" data-skin="skin-purple" class="btn bg-purple btn-xs"><i class="fa fa-eye"></i></a></td>
</tr>
<tr>
<td>紫色主题-白色侧边栏</td>
<td>{{ trans('admin.customize.color.purple-white-sidebar') }}</td>
<td><a href="#" data-skin="skin-purple-light" class="btn bg-purple btn-xs"><i class="fa fa-eye"></i></a></td>
</tr>
<tr>
<td>喜庆红(笑)</td>
<td>{{ trans('admin.customize.color.red') }}</td>
<td><a href="#" data-skin="skin-red" class="btn btn-danger btn-xs"><i class="fa fa-eye"></i></a></td>
</tr>
<tr>
<td>红色主题-白色侧边栏</td>
<td>{{ trans('admin.customize.color.red-white-sidebar') }}</td>
<td><a href="#" data-skin="skin-red-light" class="btn btn-danger btn-xs"><i class="fa fa-eye"></i></a></td>
</tr>
<tr>
<td>高端黑</td>
<td>{{ trans('admin.customize.color.black') }}</td>
<td><a href="#" data-skin="skin-black" class="btn bg-black btn-xs"><i class="fa fa-eye"></i></a></td>
</tr>
<tr>
<td>黑色主题-白色侧边栏</td>
<td>{{ trans('admin.customize.color.black-white-sidebar') }}</td>
<td><a href="#" data-skin="skin-black-light" class="btn bg-black btn-xs"><i class="fa fa-eye"></i></a></td>
</tr>
</tbody>
</table>
</div><!-- /.box-body -->
<div class="box-footer">
<button id="color-submit" class="btn btn-primary">提交</button>
<button id="color-submit" class="btn btn-primary">{{ trans('general.submit') }}</button>
</div>
</div><!-- /.box -->

View File

@ -25,7 +25,7 @@
<a href="{{ url('admin/users') }}">
<span class="info-box-icon bg-aqua"><i class="fa fa-users"></i></span>
<div class="info-box-content">
<span class="info-box-text">注册用户</span>
<span class="info-box-text">{{ trans('admin.index.users-count') }}</span>
<span class="info-box-number">{{ App\Models\User::all()->count() }}</span>
</div><!-- /.info-box-content -->
</a>
@ -37,7 +37,7 @@
<a href="{{ url('admin/players') }}">
<span class="info-box-icon bg-green"><i class="fa fa-gamepad"></i></span>
<div class="info-box-content">
<span class="info-box-text">角色总数</span>
<span class="info-box-text">{{ trans('admin.index.players-count') }}</span>
<span class="info-box-number">{{ App\Models\Player::all()->count() }}</span>
</div><!-- /.info-box-content -->
</a>
@ -48,7 +48,7 @@
<div class="info-box">
<span class="info-box-icon bg-aqua" style="background-color: #605ca8 !important;"><i class="fa fa-files-o"></i></span>
<div class="info-box-content">
<span class="info-box-text">上传材质总数</span>
<span class="info-box-text">{{ trans('admin.index.textures-count') }}</span>
<span class="info-box-number">{{ \Database::table('textures')->getRecordNum() }}</span>
</div><!-- /.info-box-content -->
</div><!-- /.info-box -->
@ -56,7 +56,7 @@
<div class="info-box">
<span class="info-box-icon bg-yellow"><i class="fa fa-hdd-o"></i></span>
<div class="info-box-content">
<span class="info-box-text">占用空间大小</span>
<span class="info-box-text">{{ trans('admin.index.usage') }}</span>
<?php $size = \Database::table('textures')->fetchArray("SELECT SUM(`size`) AS total_size FROM `{table}` WHERE 1")['total_size'] ?: 0; ?>
<span class="info-box-number">{{ $size > 1024 ? round($size / 1024, 1)."MB" : $size."KB" }}</span>
</div><!-- /.info-box-content -->
@ -65,7 +65,7 @@
<div class="col-md-6">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">概览</h3>
<h3 class="box-title">{{ trans('admin.index.overview') }}</h3>
<div class="box-tools pull-right">
<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
<button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
@ -113,7 +113,7 @@
labels: {!! json_encode($labels) !!},
datasets: [
{
label: "材质上传",
label: trans("admin.textureUpload"),
fillColor: "rgba(210, 214, 222, 1)",
strokeColor: "rgba(210, 214, 222, 1)",
pointColor: "rgba(210, 214, 222, 1)",
@ -123,7 +123,7 @@
data: {!! json_encode($data['texture_upload']) !!}
},
{
label: "用户注册",
label: trans("admin.registration"),
fillColor: "rgba(60,141,188,0.9)",
strokeColor: "rgba(60,141,188,0.8)",
pointColor: "#3b8bba",

View File

@ -32,12 +32,12 @@ td#description {
<table class="table table-hover">
<thead>
<tr>
<th>名称</th>
<th>描述</th>
<th>作者</th>
<th>版本</th>
<th>状态</th>
<th>操作</th>
<th>{{ trans('admin.plugins.name') }}</th>
<th>{{ trans('admin.plugins.description') }}</th>
<th>{{ trans('admin.plugins.author') }}</th>
<th>{{ trans('admin.plugins.version') }}</th>
<th>{{ trans('admin.plugins.status') }}</th>
<th>{{ trans('admin.plugins.opration') }}</th>
</tr>
</thead>
@ -50,33 +50,33 @@ td#description {
<td id="version">{{ $plugin->version }}</td>
<td id="status">
@if ($plugin->isEnabled())
已启用
{{ trans('admin.plugins.enabled') }}
@else
已禁用
{{ trans('admin.plugins.disabled') }}
@endif
</td>
<td>
@if ($plugin->isEnabled())
<a class="btn btn-warning btn-sm" href="?action=disable&id={{ $plugin->name }}">禁用插件</a>
<a class="btn btn-warning btn-sm" href="?action=disable&id={{ $plugin->name }}">{{ trans('admin.plugins.disable-plugin') }}</a>
@else
<a class="btn btn-primary btn-sm" href="?action=enable&id={{ $plugin->name }}">启用插件</a>
<a class="btn btn-primary btn-sm" href="?action=enable&id={{ $plugin->name }}">{{ trans('admin.plugins.enable-plugin') }}</a>
@endif
@if ($plugin->isEnabled() && $plugin->hasConfigView())
<a class="btn btn-default btn-sm" href="?action=config&id={{ $plugin->name }}">插件配置</a>
<a class="btn btn-default btn-sm" href="?action=config&id={{ $plugin->name }}">{{ trans('admin.plugins.plugin-config') }}</a>
@else
<a class="btn btn-default btn-sm" disabled="disabled" title="插件已被禁用或无配置页" data-toggle="tooltip" data-placement="top">插件配置</a>
<a class="btn btn-default btn-sm" disabled="disabled" title="{{ trans('admin.plugins.no-config') }}" data-toggle="tooltip" data-placement="top">{{ trans('admin.plugins.no-config') }}</a>
@endif
<a class="btn btn-danger btn-sm" href="javascript:deletePlugin('{{ $plugin->name }}');">删除插件</a>
<a class="btn btn-danger btn-sm" href="javascript:deletePlugin('{{ $plugin->name }}');">{{ trans('admin.plugins.delete-plugin') }}</a>
</td>
</tr>
@empty
<tr>
<td>0</td>
<td>无结果</td>
<td>{{ trans('admin.plugins.no-result') }}</td>
<td>(´・ω・`)</td>
</tr>
@endforelse
@ -105,7 +105,7 @@ td#description {
function deletePlugin(name) {
swal({
text: '真的要删除这个插件吗?',
text: trans('admin.deletionConfirmation'),
type: 'warning',
showCancelButton: true
}).then(function() {

View File

@ -27,67 +27,67 @@
<div class="col-md-6">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">更新信息</h3>
<h3 class="box-title">{{ trans('admin.update.update-info') }}</h3>
</div><!-- /.box-header -->
<div class="box-body">
@if ($info['new_version_available'])
<div class="callout callout-info">有更新可用。</div>
<div class="callout callout-info">{{ trans('admin.update.update-available') }}</div>
<table class="table">
<tbody>
<tr>
<td class="key">最新版本:</td>
<td class="key">{{ trans('admin.update.latest-version') }}</td>
<td class="value">
v{{ $info['latest_version'] }}
</td>
</tr>
<tr>
<td class="key">当前版本:</td>
<td class="key">{{ trans('admin.update.current-version') }}</td>
<td class="value">
v{{ $info['current_version'] }}
</td>
</tr>
<tr>
<td class="key">发布时间:</td>
<td class="key">{{ trans('admin.update.release-time') }}</td>
<td class="value">
{{ Utils::getTimeFormatted($info['release_time']) }}
</td>
</tr>
<tr>
<td class="key">更新日志:</td>
<td class="key">{{ trans('admin.update.change-log') }}</td>
<td class="value">
{!! nl2br($info['release_note']) ?: "无内容" !!}
{!! nl2br($info['release_note']) ?: "{{ trans('admin.update.no-log') }}" !!}
</td>
</tr>
<tr>
<td class="key">下载地址:</td>
<td class="key">{{ trans('admin.update.download-link') }}</td>
<td class="value">
<a href="{!! $info['release_url'] !!}">点击下载完整安装包</a>
<a href="{!! $info['release_url'] !!}">{{ trans('admin.update.download-full') }}</a>
</td>
</tr>
@if($info['pre_release'])
<div class="callout callout-warning">本次更新为预发布版,请谨慎选择是否更新。</div>
<div class="callout callout-warning">{{ trans('admin.update.pre-release-warning') }}</div>
@endif
</tbody>
</table>
@else
<div class="callout callout-success">已更新至最新版本。</div>
<div class="callout callout-success">{{ trans('admin.update.latest-now') }}</div>
<table class="table">
<tbody>
<tr>
<td class="key">当前版本:</td>
<td class="key">{{ trans('admin.update.current-version') }}</td>
<td class="value">
v{{ $info['current_version'] }}
</td>
</tr>
<tr>
<td class="key">发布时间:</td>
<td class="key">{{ trans('admin.update.release-time') }}</td>
<td class="value">
@if (isset($info['release_time']))
{{ Utils::getTimeFormatted($info['release_time']) }}
@else
当前版本为未发布测试版
{{ trans('admin.update.pre-release') }}
@endif
</td>
</tr>
@ -96,18 +96,18 @@
@endif
</div><!-- /.box-body -->
<div class="box-footer">
<a class="btn btn-primary" id="update-button" {!! !$info['new_version_available'] ? 'disabled="disabled"' : 'href="javascript:downloadUpdates();"' !!}>马上升级</a>
<a href="http://www.mcbbs.net/thread-552877-1-1.html" style="float: right;" class="btn btn-default">查看 MCBBS 发布贴</a>
<a class="btn btn-primary" id="update-button" {!! !$info['new_version_available'] ? 'disabled="disabled"' : 'href="javascript:downloadUpdates();"' !!}>{{ trans('admin.update.button') }}</a>
<a href="{{ trans('admin.update.forum-url') }}" style="float: right;" class="btn btn-default">{{ trans('admin.update.check-forum') }}</a>
</div>
</div>
<div class="box box-default">
<div class="box-header with-border">
<h3 class="box-title">注意事项</h3>
<h3 class="box-title">{{ trans('admin.update.caution') }}</h3>
</div><!-- /.box-header -->
<div class="box-body">
<p>请根据你的主机所在位置(国内/国外)选择更新源。</p>
<p>如错选至相对于你的主机速度较慢的源,可能会造成检查/下载更新页面长时间无响应。</p>
<p>{{ trans('admin.update.choose-source') }}</p>
<p>{{ trans('admin.update.choose-wrong') }}</p>
</div><!-- /.box-body -->
</div>
</div>
@ -115,7 +115,7 @@
<div class="col-md-6">
<div class="box box-default">
<div class="box-header with-border">
<h3 class="box-title">更新选项</h3>
<h3 class="box-title">{{ trans('admin.update.update-options') }}</h3>
</div><!-- /.box-header -->
<form method="post">
<div class="box-body">
@ -128,40 +128,40 @@
Option::set($key, $value);
}
echo '<div class="callout callout-success">设置已保存。</div>';
echo '<div class="callout callout-success">{{ trans('admin.update.config-saved') }}</div>';
}
try {
$response = file_get_contents(option('update_source'));
} catch (Exception $e) {
echo '<div class="callout callout-danger">无法访问当前更新源。详细信息:'.$e->getMessage().'</div>';
echo '<div class="callout callout-danger">{{ trans('admin.update.connection-error') }}'.$e->getMessage().'</div>';
}
?>
<table class="table">
<tbody>
<tr>
<td class="key">检查更新</td>
<td class="key">{{ trans('admin.update.check-update') }}</td>
<td class="value">
<label for="check_update">
<input {{ (option('check_update') == '1') ? 'checked="true"' : '' }} type="checkbox" id="check_update" name="check_update" value="1"> 自动检查更新并提示
<input {{ (option('check_update') == '1') ? 'checked="true"' : '' }} type="checkbox" id="check_update" name="check_update" value="1"> {{ trans('admin.update.auto-check') }}
</label>
</td>
</tr>
<tr>
<td class="key">更新源</td>
<td class="key">{{ trans('admin.update.source') }}</td>
<td class="value">
<input type="text" class="form-control" name="update_source" value="{{ option('update_source') }}">
<p class="description">可用的更新源列表可以在这里查看:<a href="https://github.com/printempw/blessing-skin-server/wiki/%E6%9B%B4%E6%96%B0%E6%BA%90%E5%88%97%E8%A1%A8">@GitHub Wiki</a></p>
<p class="description">{{ trans('admin.update.source-list') }}<a href="https://github.com/printempw/blessing-skin-server/wiki/%E6%9B%B4%E6%96%B0%E6%BA%90%E5%88%97%E8%A1%A8">@GitHub Wiki</a></p>
</td>
</tr>
</tbody>
</table>
</div><!-- /.box-body -->
<div class="box-footer">
<button type="submit" name="submit" class="btn btn-primary">提交</button>
<button type="submit" name="submit" class="btn btn-primary">{{ trans('general.submit') }}</button>
</div>
</form>
</div>
@ -176,10 +176,10 @@
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">正在下载更新包</h4>
<h4 class="modal-title">{{ trans('admin.update.downloading') }}</h4>
</div>
<div class="modal-body">
<p>更新包大小:<span id="file-size">0</span> Bytes</p>
<p>{{ trans('admin.update.size') }}<span id="file-size">0</span> Bytes</p>
<div class="progress">
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%">
<span id="imported-progress">0</span>%

View File

@ -1,10 +1,10 @@
@extends('setup.wizard.master')
@section('content')
<h1>已安装过</h1>
<h1>{{ trans('setup.locked.title') }}</h1>
<p>Blessing Skin Server 看起来已经安装妥当。如果想重新安装,请删除数据库中的旧数据表,或者换一个数据表前缀。</p>
<p>Blessing Skin Server {{ trans('setup.locked.text') }}</p>
<p class="step">
<a href="{{ url('/') }}" class="button button-large">返回首页</a>
<a href="{{ url('/') }}" class="button button-large">{{ trans('setup.locked.back-to-index') }}</a>
</p>
@endsection

View File

@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex,nofollow" />
<title>Blessing Skin Server 升级程序</title>
<title>{{ trans('setup.updates.master.title') }}</title>
<link rel="shortcut icon" href="../resources/assets/images/favicon.ico">
<link rel="stylesheet" type="text/css" href="../resources/assets/dist/css/install.css">
</head>

View File

@ -1,13 +1,13 @@
@extends('setup.updates.master')
@section('content')
<h1>升级成功</h1>
<h1>{{ trans('setup.updates.success.title') }}</h1>
<p>数据库升级成功,欢迎使用 Blessing Skin Server {{ config('app.version') }}</p>
<p>{{ trans('setup.updates.success.tip-success') }} {{ config('app.version') }}</p>
{{-- if any tip is given --}}
@if (!empty($tips))
<p><b>升级提示:</b></p>
<p><b>{{ trans('setup.updates.success.tip-update') }}</b></p>
<ul>
@foreach ($tips as $tip)
<li><p>{{ $tip }}</p></li>
@ -16,6 +16,6 @@
@endif
<p class="step">
<a href="{{ url('/') }}" class="button button-large">首页</a>
<a href="{{ url('/') }}" class="button button-large">{{ trans('general.index') }}</a>
</p>
@endsection

View File

@ -1,14 +1,14 @@
@extends('setup.updates.master')
@section('content')
<h1>还差一小步</h1>
<h1>{{ trans('setup.updates.welcome.title') }}</h1>
<p>欢迎升级至 Blessing Skin Server {{ config('app.version') }}</p>
<p>我们需要升级您的数据库,点击下一步以继续。</p>
<p>{{ trans('setup.updates.welcome.tip-welcome') }} {{ config('app.version') }}</p>
<p>{{ trans('setup.updates.welcome.tip-next') }}</p>
<form method="post" action="" novalidate="novalidate">
<p class="step">
<input type="submit" name="submit" class="button button-large" value="下一步" />
<input type="submit" name="submit" class="button button-large" value="{{ trans('setup.updates.welcome.button') }}" />
</p>
</form>
@endsection

View File

@ -1,21 +1,21 @@
@extends('setup.wizard.master')
@section('content')
<h1>成功!</h1>
<h1>{{ trans('setup.wizard.finish.title') }}</h1>
<p>Blessing Skin Server 安装完成。您是否还沉浸在愉悦的安装过程中?很遗憾,一切皆已完成! :)</p>
<p>{{ trans('setup.wizard.finish.success') }}</p>
<table class="form-table install-success">
<tr>
<th>邮箱</th>
<th>{{ trans('setup.wizard.finish.email') }}</th>
<td>{{ $email }}</td>
</tr>
<tr>
<th>密码</th>
<th>{{ trans('setup.wizard.finish.password') }}</th>
<td><p><em>{{ $password }}</em></p></td>
</tr>
</table>
<p class="step">
<a href="../" class="button button-large">首页</a>
<a href="../" class="button button-large">{{ trans('general.index') }}</a>
</p>
@endsection

View File

@ -1,42 +1,42 @@
@extends('setup.wizard.master')
@section('content')
<h1>填写信息</h1>
<p>您需要填写一些基本信息。无需担心填错,这些信息以后可以再次修改。</p>
<h1>{{ trans('setup.wizard.info.title') }}</h1>
<p>{{ trans('setup.wizard.info.tip-info') }}</p>
<form id="setup" method="post" action="{{ url('setup/finish') }}" novalidate="novalidate">
<table class="form-table">
<tr>
<th scope="row"><label for="email">管理员邮箱</label></th>
<th scope="row"><label for="email">{{ trans('setup.wizard.info.admin-email') }}</label></th>
<td>
<input name="email" type="email" id="email" size="25" value="" />
<p>这是唯一的超级管理员账号,可 添加/取消 其他管理员。</p>
<p>{{ trans('setup.wizard.info.super-admin') }}</p>
</td>
</tr>
<tr class="form-field form-required">
<th scope="row"><label for="password">密码</label></th>
<th scope="row"><label for="password">{{ trans('setup.wizard.info.password') }}</label></th>
<td>
<input type="password" name="password" id="password" class="regular-text" autocomplete="off" />
<p>
<span class="description important">
<b>重要:</b>您将需要此密码来登录管理皮肤站,请将其保存在安全的位置。
<b>{{ trans('setup.wizard.info.tip-important') }}</b>{{ trans('setup.wizard.info.password-saving') }}
</span>
</p>
</td>
</tr>
<tr class="form-field form-required">
<th scope="row"><label for="password_confirmation">重复密码</label></th>
<th scope="row"><label for="password_confirmation">{{ trans('setup.wizard.info.password-confirmation') }}</label></th>
<td>
<input type="password" name="password_confirmation" id="password_confirmation" autocomplete="off" />
</td>
</tr>
<tr>
<th scope="row"><label for="site_name">站点名称</label></th>
<th scope="row"><label for="site_name">{{ trans('setup.wizard.info.site-name') }}</label></th>
<td>
<input name="site_name" type="text" id="site_name" size="25" value="Blessing Skin Server" />
<p>
<span class="description important">
将会显示在首页以及标题栏
{{ trans('setup.wizard.info.site-name-show') }}
</span>
</p>
</td>
@ -54,7 +54,7 @@
@endif
<p class="step">
<input type="submit" name="submit" id="submit" class="button button-large" value="开始安装" />
<input type="submit" name="submit" id="submit" class="button button-large" value="{{ trans('setup.wizard.info.button') }}" />
</p>
</form>
@endsection

View File

@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex,nofollow" />
<title>Blessing Skin Server 安装程序</title>
<title>{{ trans('setup.wizard.master.title') }}</title>
<link rel="shortcut icon" href="../resources/assets/images/favicon.ico">
<link rel="stylesheet" type="text/css" href="../resources/assets/dist/css/install.css">
</head>

View File

@ -1,12 +1,12 @@
@extends('setup.wizard.master')
@section('content')
<h1>欢迎</h1>
<h1>{{ trans('setup.wizard.welcome.title') }}</h1>
<p>欢迎使用 Blessing Skin Server v{{ config('app.version') }}</p>
<p>成功连接至 MySQL 服务器 {{ $server }},点击下一步以开始安装。</p>
<p>{{ trans('setup.wizard.welcome.welcome') }} v{{ config('app.version') }}</p>
<p>{{ trans('setup.wizard.database.connection-success', ['server' => $server]) }}</p>
<p class="step">
<a href="{{ url('setup/info') }}" class="button button-large">下一步</a>
<a href="{{ url('setup/info') }}" class="button button-large">{{ trans('setup.wizard.welcome.button') }}</a>
</p>
@endsection