Merge pull request #1125 from phecho/master

Improved zh-CN localization
This commit is contained in:
James Brooks
2015-11-11 09:24:59 +00:00
16 changed files with 101 additions and 75 deletions

View File

@@ -49,7 +49,7 @@ class ComponentController extends Controller
'components' => [
'title' => trans('dashboard.components.components'),
'url' => route('dashboard.components.index'),
'icon' => 'ion-outlet',
'icon' => 'ion-ios-browsers',
'active' => false,
],
'groups' => [

View File

@@ -70,7 +70,9 @@ class ScheduleController extends Controller
{
$schedule = Incident::scheduled()->orderBy('created_at')->get();
return View::make('dashboard.schedule.index')->withSchedule($schedule);
return View::make('dashboard.schedule.index')
->withPageTitle(trans('dashboard.schedule.schedule').' - '.trans('dashboard.dashboard'))
->withSchedule($schedule);
}
/**
@@ -83,6 +85,7 @@ class ScheduleController extends Controller
$incidentTemplates = IncidentTemplate::all();
return View::make('dashboard.schedule.add')
->withPageTitle(trans('dashboard.schedule.add.title').' - '.trans('dashboard.dashboard'))
->withIncidentTemplates($incidentTemplates);
}
@@ -123,6 +126,7 @@ class ScheduleController extends Controller
$incidentTemplates = IncidentTemplate::all();
return View::make('dashboard.schedule.edit')
->withPageTitle(trans('dashboard.schedule.edit.title').' - '.trans('dashboard.dashboard'))
->withIncidentTemplates($incidentTemplates)
->withSchedule($schedule);
}

View File

@@ -100,7 +100,7 @@ class SettingsController extends Controller
Session::flash('redirect_to', $this->subMenu['setup']['url']);
return View::make('dashboard.settings.app-setup')
->withPageTitle('Application Setup - Dashboard')
->withPageTitle(trans('dashboard.settings.app-setup.app-setup').' - '.trans('dashboard.dashboard'))
->withSubMenu($this->subMenu);
}
@@ -116,7 +116,7 @@ class SettingsController extends Controller
Session::flash('redirect_to', $this->subMenu['analytics']['url']);
return View::make('dashboard.settings.analytics')
->withPageTitle('Analytics - Dashboard')
->withPageTitle(trans('dashboard.settings.analytics.analytics').' - '.trans('dashboard.dashboard'))
->withSubMenu($this->subMenu);
}
@@ -132,7 +132,7 @@ class SettingsController extends Controller
Session::flash('redirect_to', $this->subMenu['localization']['url']);
return View::make('dashboard.settings.localization')
->withPageTitle('Localization - Dashboard')
->withPageTitle(trans('dashboard.settings.localization.localization').' - '.trans('dashboard.dashboard'))
->withSubMenu($this->subMenu);
}
@@ -148,7 +148,7 @@ class SettingsController extends Controller
Session::flash('redirect_to', $this->subMenu['theme']['url']);
return View::make('dashboard.settings.theme')
->withPageTitle('Theme - Dashboard')
->withPageTitle(trans('dashboard.settings.theme.theme').' - '.trans('dashboard.dashboard'))
->withSubMenu($this->subMenu);
}
@@ -166,7 +166,7 @@ class SettingsController extends Controller
Session::flash('redirect_to', $this->subMenu['security']['url']);
return View::make('dashboard.settings.security')
->withPageTitle('Security - Dashboard')
->withPageTitle(trans('dashboard.settings.security.security').' - '.trans('dashboard.dashboard'))
->withSubMenu($this->subMenu)
->withUnsecureUsers($unsecureUsers);
}
@@ -183,7 +183,7 @@ class SettingsController extends Controller
Session::flash('redirect_to', $this->subMenu['stylesheet']['url']);
return View::make('dashboard.settings.stylesheet')
->withPageTitle('Stylesheet - Dashboard')
->withPageTitle(trans('dashboard.settings.stylesheet.stylesheet').' - '.trans('dashboard.dashboard'))
->withSubMenu($this->subMenu);
}

View File

@@ -0,0 +1,28 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/
'failed' => '登录凭证无效。',
'throttle' => '登录次数过多,请于 :seconds 秒后再试。',
];

View File

@@ -30,9 +30,9 @@ return [
'scheduled' => '计划维护',
'scheduled_at' => ',计划于 :timestamp',
'status' => [
0 => '计划中', // TODO: Hopefully remove this.
0 => '计划中', // TODO: Hopefully remove this.
1 => '调查中',
2 => '已定位',
2 => '已确认',
3 => '观察中',
4 => '已修复',
],
@@ -46,15 +46,15 @@ return [
'api' => [
'regenerate' => '重新生成 API 密钥',
'revoke' => '销 API 密钥',
'revoke' => '销 API 密钥',
],
// Metrics
'metrics' => [
'filter' => [
'hourly' => 'Last 12 Hours',
'weekly' => 'Week',
'monthly' => 'Month',
'hourly' => '最近12小时',
'weekly' => '',
'monthly' => '',
],
],
@@ -64,7 +64,7 @@ return [
'button' => '订阅',
'email' => [
'subscribe' => '订阅电子邮件更新。',
'subscribed' => '已经订阅电子邮件通知,请检查您的电子邮件,确认您的订阅。',
'subscribed' => '已经订阅电子邮件通知,请检查您的电子邮件,确认您的订阅。',
'verified' => '您的电子邮件订阅已确认。谢谢!',
'unsubscribe' => '取消电子邮件订阅。',
'unsubscribed' => '您的电子邮件订阅已被取消。',
@@ -87,6 +87,25 @@ return [
],
],
'users' => [
'email' => [
'invite' => [
'text' => "您已被邀请加入 :app_name 团队的状态页, 请点击以下链接进行注册。\n:link\n谢谢, :app_name",
'html-preheader' => '您已被邀请加入 :app_name.',
'html' => '<p>您已被邀请加入 :app_name 团队的状态页, 请点击以下链接进行注册。</p><p><a href=":link">:link</a></p><p>谢谢, :app_name</p>',
],
],
],
'signup' => [
'title' => '注册',
'username' => '用户名',
'email' => '邮箱',
'password' => '密码',
'success' => '您的账号已注册成功。',
'failure' => '注册失败。',
],
// Other
'powered_by' => ':app 应用状态页面由 <a href="https://cachethq.io">Cachet</a>提供支持。',
'about_this_site' => '关于此站点',

View File

@@ -21,12 +21,12 @@ return [
'incident-create-template' => '创建模板',
'incident-templates' => '事件模板',
'add' => [
'title' => '添加一个事件',
'title' => '添加事件',
'success' => '事件已添加',
'failure' => '事件添加失败。',
],
'edit' => [
'title' => '编辑一个事件',
'title' => '编辑事件',
'success' => '事件已更新。',
'failure' => '事件编辑失败。',
],
@@ -35,7 +35,7 @@ return [
'templates' => [
'title' => '事件模板',
'add' => [
'title' => '创建一个事件模板',
'title' => '添加事件模板',
'success' => '模板已创建。',
'failure' => '创建模板失败。',
],
@@ -49,20 +49,20 @@ return [
// Incident Maintenance
'schedule' => [
'schedule' => '计划维护',
'schedule' => '维护计划',
'scheduled_at' => '计划在 :timestamp',
'add' => [
'title' => '添加维护计划',
'success' => '计划已添加。',
'failure' => '计划添加失败。',
'success' => '维护计划已添加。',
'failure' => '维护计划添加失败。',
],
'edit' => [
'title' => '编辑维护计划',
'success' => '计划已更新!',
'failure' => '计划更新失败。',
'success' => '维护计划已更新!',
'failure' => '维护计划更新失败。',
],
'delete' => [
'success' => '维护计划已被删除,它将从的状态页上消失。',
'success' => '维护计划已被删除,它将从的状态页上消失。',
'failure' => '无法删除该维护计划。请再试一次。',
],
],
@@ -73,24 +73,24 @@ return [
'component_statuses' => '组件状态',
'listed_group' => '根据 :name 分组',
'add' => [
'title' => '添加一个组件',
'message' => '应该添加一个组件。',
'success' => '组件已创建。',
'title' => '添加组件',
'message' => '应该添加一个组件。',
'success' => '组件已添加。',
'failure' => '组件添加失败。',
],
'edit' => [
'title' => '编辑一个组件',
'title' => '编辑组件',
'success' => '组件已更新。',
'failure' => '组件编辑失败。',
],
// Component groups
'groups' => [
'groups' => '件分组|件分组',
'groups' => '件分组|件分组',
'no_components' => '您应添加一个组件分组。',
'add' => [
'title' => '添加一个分组',
'success' => '件分组已添加。',
'title' => '添加组件分组',
'success' => '件分组已添加。',
'failure' => '分组添加失败。',
],
'edit' => [
@@ -105,7 +105,7 @@ return [
'metrics' => [
'metrics' => '图表',
'add' => [
'title' => '添加一个图表',
'title' => '添加图表',
'success' => '图表已创建。',
'failure' => '图表创建失败。',
],
@@ -123,7 +123,7 @@ return [
'verified' => '已认证',
'not_verified' => '未认证',
'add' => [
'title' => '添加一个订阅者',
'title' => '添加订阅者',
'success' => '订阅者已添加成功.',
'failure' => '订阅者添加失败.',
],
@@ -141,7 +141,7 @@ return [
'profile' => '更改资料',
'description' => '团队成员将能够添加、修改和编辑组件和事件。',
'add' => [
'title' => '添加一个新团队成员',
'title' => '添加团队成员',
'success' => '团队成员已添加。',
'failure' => '添加组件失败。',
],
@@ -167,7 +167,7 @@ return [
'app-setup' => [
'app-setup' => '系统设置',
'images-only' => '只能上传图像。',
'too-big' => '上传的文件太大了。上传的图像大小应小于:size',
'too-big' => '上传的文件太大了。上传的图像大小应小于:size',
],
'analytics' => [
'analytics' => '第三方统计',
@@ -183,7 +183,7 @@ return [
'stylesheet' => '自定义样式',
],
'theme' => [
'theme' => '主题',
'theme' => '主题设置',
],
'edit' => [
'success' => '设置已保存。',

View File

@@ -1,25 +0,0 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return [
'not-found' => [
'code' => '404',
'title' => '这个页面失踪了!',
'message' => '抱歉,但我们无法找到您要访问的的页面。请检查你的 URL然后重试。',
'link' => '返回主页',
],
'unauthorized' => [
'code' => '401',
'title' => '未授权',
'message' => '很抱歉,您需要管理员权限才能看到此页面。',
'link' => '返回主页',
],
];

View File

@@ -49,7 +49,7 @@ return [
'public' => '公共可见',
'logged_in_only' => '仅登录用户可见',
'templates' => [
'name' => '事件名',
'name' => '事件模板名',
'template' => '模板',
],
],
@@ -58,12 +58,12 @@ return [
'components' => [
'name' => '组件名',
'status' => '状态',
'group' => '件分组',
'group' => '件分组',
'description' => '描述',
'link' => '链接',
'tags' => '标签',
'tags-help' => '以逗号分隔。',
'enabled' => 'Component enabled?',
'enabled' => '启用',
'groups' => [
'name' => '组名',
@@ -140,7 +140,7 @@ return [
'help' => '启用双因素身份验证会增加您的帐户安全。您将需要下载 <a href="https://support.google.com/accounts/answer/1066447?hl=en">Google Authenticator</a> 或类似的应用到您的移动设备。当您登录时将会要求您提供由应用程序生成的一个短码。',
],
'team' => [
'description' => '请输入要邀请的团队成员的邮件地址:',
'description' => '请输入要邀请的团队成员的邮件地址:',
'email' => 'Email #:id',
],
],

View File

@@ -23,8 +23,8 @@ return [
*/
'password' => '密码至少应有六个字符 并且与“确认密码”相匹配',
'user' => '我们没有找到使用这个邮箱地址的用户',
'token' => '这个密码重置凭据无效',
'user' => '找到使用邮箱地址的用户',
'token' => '密码重置凭据无效',
'sent' => '已经发送密码重置提示信息!',
'reset' => '密码已重置!',

View File

@@ -10,7 +10,7 @@
*/
return [
'setup' => '设置',
'setup' => '安装设置',
'title' => '安装 Cachet',
'service_details' => '服务细节',
'env_setup' => '环境设置',

View File

@@ -6,7 +6,7 @@
<i class="icon ion-navicon"></i>
</div>
<span class="uppercase">
<i class="icons ion-outlet"></i> {{ trans('dashboard.components.components') }}
<i class="icons ion-ios-browsers"></i> {{ trans('dashboard.components.components') }}
</span>
&gt; <small>{{ trans('dashboard.components.add.title') }}</small>
</div>

View File

@@ -6,7 +6,7 @@
<i class="icon ion-navicon"></i>
</div>
<span class="uppercase">
<i class="icons ion-outlet"></i> {{ trans('dashboard.components.components') }}
<i class="icons ion-ios-browsers"></i> {{ trans('dashboard.components.components') }}
</span>
&gt; <small>{{ trans('dashboard.components.edit.title') }}</small>
</div>

View File

@@ -8,7 +8,7 @@
<div class="content-wrapper">
<div class="header sub-header">
<span class="uppercase">
<i class="icons ion-outlet"></i> {{ trans('dashboard.components.components') }}
<i class="icons ion-ios-browsers"></i> {{ trans('dashboard.components.components') }}
</span>
<a class="btn btn-sm btn-success pull-right" href="{{ route('dashboard.components.add') }}">
{{ trans('dashboard.components.add.title') }}

View File

@@ -6,7 +6,7 @@
<i class="icon ion-navicon"></i>
</div>
<span class="uppercase">
<i class="icon ion-speedometer"></i> {{ trans('dashboard.dashboard') }}
<i class="icon ion-ios-speedometer"></i> {{ trans('dashboard.dashboard') }}
</span>
</div>
<div class="content-wrapper">

View File

@@ -26,7 +26,7 @@
<ul>
<li {!! set_active('dashboard') !!}>
<a href="{{ route('dashboard.index') }}">
<i class="icon ion-speedometer"></i>
<i class="icon ion-ios-speedometer"></i>
<span>{{ trans('dashboard.dashboard') }}</span>
</a>
</li>
@@ -45,7 +45,7 @@
</li>
<li {!! set_active('dashboard/components*') !!}>
<a href="{{ route('dashboard.components.index') }}">
<i class="icons ion-outlet"></i>
<i class="icons ion-ios-browsers"></i>
<span>{{ trans('dashboard.components.components') }}</span>
<span class="label label-info">{{ $component_count }}</span>
</a>

View File

@@ -18,7 +18,7 @@
<div class="row">
<div class="col-md-4 animated fadeInDown">
<a href="{{ route('dashboard.components.add') }}">
<i class="icon ion-outlet"></i>
<i class="icon ion-ios-browsers"></i>
{{ trans('dashboard.welcome.steps.component') }}
</a>
</div>