admin_help 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +53 -3
- data/README.md +9 -6
- data/admin_help.gemspec +2 -0
- data/app/assets/fonts/iconfont.eot +0 -0
- data/app/assets/fonts/iconfont.svg +68 -0
- data/app/assets/fonts/iconfont.ttf +0 -0
- data/app/assets/fonts/iconfont.woff +0 -0
- data/app/assets/fonts/iconfont.woff2 +0 -0
- data/app/assets/javascripts/admin_help.js +2 -3
- data/app/assets/javascripts/aiui.js +31 -0
- data/app/assets/javascripts/chosen.jquery.js +1359 -0
- data/app/assets/stylesheets/admin_help.scss +2 -0
- data/app/assets/stylesheets/aiui.scss +82 -0
- data/app/assets/stylesheets/alert.scss +34 -0
- data/app/assets/stylesheets/aside.scss +85 -0
- data/app/assets/stylesheets/button.scss +122 -0
- data/app/assets/stylesheets/chosen.css.erb +495 -0
- data/app/assets/stylesheets/form.scss +151 -0
- data/app/assets/stylesheets/icon.scss.erb +72 -0
- data/app/assets/stylesheets/input.scss +52 -0
- data/app/assets/stylesheets/nav.scss +28 -0
- data/app/assets/stylesheets/pagination.scss +49 -0
- data/app/assets/stylesheets/table.scss +73 -0
- data/app/assets/stylesheets/tooltip.scss +38 -0
- data/app/controllers/admin_help_controller.rb +2 -0
- data/app/controllers/frontend_controller.rb +8 -0
- data/app/views/frontend/buttons.html.erb +78 -0
- data/app/views/frontend/index.html.erb +0 -0
- data/app/views/frontend/nav.html.erb +0 -0
- data/app/views/frontend/paginate.html.erb +32 -0
- data/app/views/frontend/table.html.erb +34 -0
- data/{lib/generators/admin_help/templates/layouts → app/views/layouts/frontend}/flash.html.erb +0 -0
- data/app/views/layouts/frontend/frontend.html.erb +30 -0
- data/app/views/layouts/frontend/header.html.erb +3 -0
- data/app/views/layouts/frontend/left_nav.html.erb +29 -0
- data/config/routes.rb +24 -0
- data/lib/admin_help/engine.rb +4 -0
- data/lib/admin_help/version.rb +1 -1
- data/lib/generators/admin/scaffold_controller/templates/views/erb/_form.html.erb.erb +9 -34
- data/lib/generators/admin/scaffold_controller/templates/views/erb/edit.html.erb.erb +2 -5
- data/lib/generators/admin/scaffold_controller/templates/views/erb/index.html.erb.erb +23 -30
- data/lib/generators/admin/scaffold_controller/templates/views/erb/new.html.erb.erb +2 -5
- data/lib/generators/admin/scaffold_controller/templates/views/erb/show.html.erb.erb +20 -21
- data/lib/generators/admin_help/install_generator.rb +12 -4
- data/lib/generators/admin_help/templates/app/controllers/admin/home_controller.rb +4 -0
- data/lib/generators/admin_help/templates/app/views/admin/home/index.html.erb +1 -0
- data/lib/generators/admin_help/templates/app/views/admin/kaminari/_first_page.html.erb +15 -0
- data/lib/generators/admin_help/templates/app/views/admin/kaminari/_gap.html.erb +9 -0
- data/lib/generators/admin_help/templates/app/views/admin/kaminari/_last_page.html.erb +15 -0
- data/lib/generators/admin_help/templates/app/views/admin/kaminari/_next_page.html.erb +12 -0
- data/lib/generators/admin_help/templates/app/views/admin/kaminari/_page.html.erb +12 -0
- data/lib/generators/admin_help/templates/app/views/admin/kaminari/_paginator.html.erb +32 -0
- data/lib/generators/admin_help/templates/app/views/admin/kaminari/_prev_page.html.erb +12 -0
- data/lib/generators/admin_help/templates/{layouts/application.html.erb → app/views/layouts/admin_help.html.erb} +7 -3
- data/lib/generators/admin_help/templates/app/views/layouts/flash.html.erb +6 -0
- data/lib/generators/admin_help/templates/app/views/layouts/header.html.erb +3 -0
- data/lib/generators/admin_help/templates/app/views/layouts/left_nav.html.erb +36 -0
- data/lib/generators/admin_help/templates/config/initializers/locale.rb +4 -0
- data/lib/generators/admin_help/templates/config/locales/models/en.models.yml +7 -0
- data/lib/generators/admin_help/templates/config/locales/models/zh-cn.models.yml +7 -0
- data/lib/generators/admin_help/templates/config/locales/views/en.common.yml +28 -0
- data/lib/generators/admin_help/templates/config/locales/views/zh-cn.common.yml +235 -0
- data/lib/generators/admin_help/templates/config/routes.rb +4 -0
- metadata +68 -16
- data/app/assets/fonts/FontAwesome.otf +0 -0
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +0 -2671
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/app/assets/stylesheets/admin_help.css +0 -4
- data/app/assets/stylesheets/aiui.scss.erb +0 -387
- data/app/assets/stylesheets/font-awesome.css.erb +0 -2342
- data/lib/generators/admin_help/templates/layouts/header.html.erb +0 -41
- data/lib/generators/admin_help/templates/layouts/left_nav.html.erb +0 -13
@@ -4,9 +4,17 @@ class AdminHelp::InstallGenerator < ::Rails::Generators::Base
|
|
4
4
|
desc 'Copy templates for admin scaffold controller.'
|
5
5
|
|
6
6
|
def install
|
7
|
-
copy_file File.expand_path('../templates/layouts/
|
8
|
-
copy_file File.expand_path('../templates/layouts/flash.html.erb', __FILE__), 'app/views/layouts/flash.html.erb'
|
9
|
-
copy_file File.expand_path('../templates/layouts/header.html.erb', __FILE__), 'app/views/layouts/header.html.erb'
|
10
|
-
copy_file File.expand_path('../templates/layouts/left_nav.html.erb', __FILE__), 'app/views/layouts/left_nav.html.erb'
|
7
|
+
copy_file File.expand_path('../templates/app/views/layouts/admin_help.html.erb', __FILE__), 'app/views/layouts/admin_help.html.erb'
|
8
|
+
copy_file File.expand_path('../templates/app/views/layouts/flash.html.erb', __FILE__), 'app/views/layouts/flash.html.erb'
|
9
|
+
copy_file File.expand_path('../templates/app/views/layouts/header.html.erb', __FILE__), 'app/views/layouts/header.html.erb'
|
10
|
+
copy_file File.expand_path('../templates/app/views/layouts/left_nav.html.erb', __FILE__), 'app/views/layouts/left_nav.html.erb'
|
11
|
+
copy_file File.expand_path('../templates/app/controllers/admin/home_controller.rb', __FILE__), 'app/controllers/admin/home_controller.rb'
|
12
|
+
copy_file File.expand_path('../templates/app/views/admin/home/index.html.erb', __FILE__), 'app/views/admin/home/index.html.erb'
|
13
|
+
copy_file File.expand_path('../templates/config/routes.rb', __FILE__), 'config/routes.rb'
|
14
|
+
copy_file File.expand_path('../templates/config/initializers/locale.rb', __FILE__), 'config/initializers/locale.rb'
|
15
|
+
copy_file File.expand_path('../templates/config/locales/models/en.models.yml', __FILE__), 'config/locales/models/en.models.yml'
|
16
|
+
copy_file File.expand_path('../templates/config/locales/models/zh-cn.models.yml', __FILE__), 'config/locales/models/zh-cn.models.yml'
|
17
|
+
copy_file File.expand_path('../templates/config/locales/views/en.common.yml', __FILE__), 'config/locales/views/en.common.yml'
|
18
|
+
copy_file File.expand_path('../templates/config/locales/views/zh-cn.common.yml', __FILE__), 'config/locales/views/zh-cn.common.yml'
|
11
19
|
end
|
12
20
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<h1>Welcome!</h1>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%# Link to the "First" page
|
2
|
+
- available local variables
|
3
|
+
url: url to the first page
|
4
|
+
current_page: a page object for the currently displayed page
|
5
|
+
total_pages: total number of pages
|
6
|
+
per_page: number of items to fetch per page
|
7
|
+
remote: data-remote
|
8
|
+
-%>
|
9
|
+
<!-- <span class="page first">
|
10
|
+
<%= link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, remote: remote %>
|
11
|
+
</span> -->
|
12
|
+
<span class="page prev disable">
|
13
|
+
<!-- <%= link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url, rel: 'prev', remote: remote %> -->
|
14
|
+
<%= link_to url, rel: 'prev', remote: remote do -%><i class="ai ai-prev"></i><% end %>
|
15
|
+
</span>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<%# Non-link tag that stands for skipped pages...
|
2
|
+
- available local variables
|
3
|
+
current_page: a page object for the currently displayed page
|
4
|
+
total_pages: total number of pages
|
5
|
+
per_page: number of items to fetch per page
|
6
|
+
remote: data-remote
|
7
|
+
-%>
|
8
|
+
<!-- <span class="page gap"><%= t('views.pagination.truncate').html_safe %></span> -->
|
9
|
+
<span class="page gap"><i class="ai ai-shenglve"></i></span>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%# Link to the "Last" page
|
2
|
+
- available local variables
|
3
|
+
url: url to the last page
|
4
|
+
current_page: a page object for the currently displayed page
|
5
|
+
total_pages: total number of pages
|
6
|
+
per_page: number of items to fetch per page
|
7
|
+
remote: data-remote
|
8
|
+
-%>
|
9
|
+
<!-- <span class="page last">
|
10
|
+
<%= link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, remote: remote %>
|
11
|
+
</span> -->
|
12
|
+
<span class="page next disable">
|
13
|
+
<!-- <%= link_to_unless current_page.last?, t('views.pagination.next').html_safe, url, rel: 'next', remote: remote %> -->
|
14
|
+
<%= link_to url, remote: remote do -%><i class="ai ai-next"></i><% end %>
|
15
|
+
</span>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<%# Link to the "Next" page
|
2
|
+
- available local variables
|
3
|
+
url: url to the next page
|
4
|
+
current_page: a page object for the currently displayed page
|
5
|
+
total_pages: total number of pages
|
6
|
+
per_page: number of items to fetch per page
|
7
|
+
remote: data-remote
|
8
|
+
-%>
|
9
|
+
<span class="page next">
|
10
|
+
<!-- <%= link_to_unless current_page.last?, t('views.pagination.next').html_safe, url, rel: 'next', remote: remote %> -->
|
11
|
+
<%= link_to url, remote: remote do -%><i class="ai ai-next"></i><% end %>
|
12
|
+
</span>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<%# Link showing page number
|
2
|
+
- available local variables
|
3
|
+
page: a page object for "this" page
|
4
|
+
url: url to this page
|
5
|
+
current_page: a page object for the currently displayed page
|
6
|
+
total_pages: total number of pages
|
7
|
+
per_page: number of items to fetch per page
|
8
|
+
remote: data-remote
|
9
|
+
-%>
|
10
|
+
<span class="page<%= ' current' if page.current? %>">
|
11
|
+
<%= link_to_unless page.current?, page, url, {remote: remote, rel: page.rel} %>
|
12
|
+
</span>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<%# The container tag
|
2
|
+
- available local variables
|
3
|
+
current_page: a page object for the currently displayed page
|
4
|
+
total_pages: total number of pages
|
5
|
+
per_page: number of items to fetch per page
|
6
|
+
remote: data-remote
|
7
|
+
paginator: the paginator that renders the pagination tags inside
|
8
|
+
-%>
|
9
|
+
|
10
|
+
<%= paginator.render do -%>
|
11
|
+
<nav class="pagination" role="navigation" aria-label="pager">
|
12
|
+
<% if current_page.first? %>
|
13
|
+
<%= first_page_tag %>
|
14
|
+
<% else %>
|
15
|
+
<%= prev_page_tag %>
|
16
|
+
<% end %>
|
17
|
+
<% each_page do |page| -%>
|
18
|
+
<% if page.display_tag? -%>
|
19
|
+
<%= page_tag page %>
|
20
|
+
<% elsif !page.was_truncated? -%>
|
21
|
+
<%= gap_tag %>
|
22
|
+
<% end -%>
|
23
|
+
<% end -%>
|
24
|
+
<% unless current_page.out_of_range? %>
|
25
|
+
<% if current_page.last? %>
|
26
|
+
<%= last_page_tag %>
|
27
|
+
<% else %>
|
28
|
+
<%= next_page_tag %>
|
29
|
+
<% end %>
|
30
|
+
<% end %>
|
31
|
+
</nav>
|
32
|
+
<% end -%>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<%# Link to the "Previous" page
|
2
|
+
- available local variables
|
3
|
+
url: url to the previous page
|
4
|
+
current_page: a page object for the currently displayed page
|
5
|
+
total_pages: total number of pages
|
6
|
+
per_page: number of items to fetch per page
|
7
|
+
remote: data-remote
|
8
|
+
-%>
|
9
|
+
<span class="page prev">
|
10
|
+
<!-- <%= link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url, rel: 'prev', remote: remote %> -->
|
11
|
+
<%= link_to url, rel: 'prev', remote: remote do -%><i class="ai ai-prev"></i><% end %>
|
12
|
+
</span>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<title>
|
4
|
+
<title>AdminHelp</title>
|
5
5
|
<%= csrf_meta_tags %>
|
6
6
|
<%= csp_meta_tag %>
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1.0,
|
@@ -17,8 +17,12 @@
|
|
17
17
|
<content>
|
18
18
|
<%= render file: "layouts/left_nav" %>
|
19
19
|
<article>
|
20
|
-
|
21
|
-
|
20
|
+
<div class="panel">
|
21
|
+
<div class="panel-max">
|
22
|
+
<%= render file: "layouts/flash" %>
|
23
|
+
<%= yield %>
|
24
|
+
</div>
|
25
|
+
</div>
|
22
26
|
</article>
|
23
27
|
</content>
|
24
28
|
<%= yield :javascripts %>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<aside>
|
2
|
+
<a class="logo" href="/admin">后台管理</a>
|
3
|
+
<ul>
|
4
|
+
<li class="">
|
5
|
+
<a href="/admin" ><i class="ai ai-home"></i>主页</a>
|
6
|
+
</li>
|
7
|
+
|
8
|
+
<li class="nav-item">
|
9
|
+
<a href="javascript:;"><i class="ai ai-app"></i>应用</a>
|
10
|
+
<dl>
|
11
|
+
<dd class="<%= 'active' if request.fullpath =~ /admin\/products/ %>">
|
12
|
+
<a href="/admin/products">产品详情</a>
|
13
|
+
</dd>
|
14
|
+
<dd class="<%= 'active' if request.fullpath =~ /console/ %>">
|
15
|
+
<a href="#console"></i>控制台</a>
|
16
|
+
</dd>
|
17
|
+
<dd class="<%= 'active' if request.fullpath =~ /home1/ %>">
|
18
|
+
<a href="#home1">页面一</a>
|
19
|
+
</dd>
|
20
|
+
<dd class="<%= 'active' if request.fullpath =~ /home2/ %>">
|
21
|
+
<a href="#home2"></i>页面二</a>
|
22
|
+
</dd>
|
23
|
+
</dl>
|
24
|
+
</li>
|
25
|
+
<li class="">
|
26
|
+
<a href="/admin" ><i class="ai ai-cube"></i>模块</a>
|
27
|
+
</li>
|
28
|
+
</ul>
|
29
|
+
</aside>
|
30
|
+
|
31
|
+
<script>
|
32
|
+
$(".nav-item").click(function(){
|
33
|
+
$(this).toggleClass("nav-item-open");
|
34
|
+
})
|
35
|
+
$(".active").parent().parent().addClass("nav-item-open")
|
36
|
+
</script>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
en:
|
2
|
+
actions:
|
3
|
+
index: Index
|
4
|
+
new: New
|
5
|
+
edit: Edit
|
6
|
+
show: Show
|
7
|
+
destroy: Destroy
|
8
|
+
back: Back
|
9
|
+
buttons:
|
10
|
+
search: Search
|
11
|
+
create: Create
|
12
|
+
next: Next
|
13
|
+
cancel: Cancel
|
14
|
+
submit: Submit
|
15
|
+
save: Save
|
16
|
+
edit: Edit
|
17
|
+
back: Back
|
18
|
+
show: Show
|
19
|
+
new: New
|
20
|
+
update: Update
|
21
|
+
exit: Exit
|
22
|
+
views:
|
23
|
+
pagination:
|
24
|
+
first: First
|
25
|
+
last: Last
|
26
|
+
previous: Previous
|
27
|
+
next: Next
|
28
|
+
truncate: "..."
|
@@ -0,0 +1,235 @@
|
|
1
|
+
zh-cn:
|
2
|
+
actions:
|
3
|
+
index: 列表
|
4
|
+
new: 新增
|
5
|
+
edit: 修改
|
6
|
+
show: 显示
|
7
|
+
destroy: 删除
|
8
|
+
back: 返回
|
9
|
+
buttons:
|
10
|
+
search: 查询
|
11
|
+
create: 保存
|
12
|
+
next: 保存并进行下一步
|
13
|
+
cancel: 取消
|
14
|
+
submit: 提交
|
15
|
+
save: 立即保存
|
16
|
+
edit: 修改
|
17
|
+
back: 返回
|
18
|
+
show: 显示
|
19
|
+
new: 新建
|
20
|
+
update: 更新
|
21
|
+
exit: 退出
|
22
|
+
views:
|
23
|
+
pagination:
|
24
|
+
first: 首页
|
25
|
+
last: 末页
|
26
|
+
previous: 上一页
|
27
|
+
next: 下一页
|
28
|
+
truncate: "..."
|
29
|
+
date:
|
30
|
+
abbr_day_names:
|
31
|
+
- 日
|
32
|
+
- 一
|
33
|
+
- 二
|
34
|
+
- 三
|
35
|
+
- 四
|
36
|
+
- 五
|
37
|
+
- 六
|
38
|
+
abbr_month_names:
|
39
|
+
-
|
40
|
+
- 1月
|
41
|
+
- 2月
|
42
|
+
- 3月
|
43
|
+
- 4月
|
44
|
+
- 5月
|
45
|
+
- 6月
|
46
|
+
- 7月
|
47
|
+
- 8月
|
48
|
+
- 9月
|
49
|
+
- 10月
|
50
|
+
- 11月
|
51
|
+
- 12月
|
52
|
+
day_names:
|
53
|
+
- 星期日
|
54
|
+
- 星期一
|
55
|
+
- 星期二
|
56
|
+
- 星期三
|
57
|
+
- 星期四
|
58
|
+
- 星期五
|
59
|
+
- 星期六
|
60
|
+
formats:
|
61
|
+
default: ! '%Y-%m-%d'
|
62
|
+
long: ! '%Y年%b%d日'
|
63
|
+
short: ! '%b%d日'
|
64
|
+
month: ! '%Y年%m月'
|
65
|
+
month_names:
|
66
|
+
-
|
67
|
+
- 一月
|
68
|
+
- 二月
|
69
|
+
- 三月
|
70
|
+
- 四月
|
71
|
+
- 五月
|
72
|
+
- 六月
|
73
|
+
- 七月
|
74
|
+
- 八月
|
75
|
+
- 九月
|
76
|
+
- 十月
|
77
|
+
- 十一月
|
78
|
+
- 十二月
|
79
|
+
order:
|
80
|
+
- :year
|
81
|
+
- :month
|
82
|
+
- :day
|
83
|
+
datetime:
|
84
|
+
distance_in_words:
|
85
|
+
about_x_hours:
|
86
|
+
one: 大约一小时
|
87
|
+
other: 大约 %{count} 小时
|
88
|
+
about_x_months:
|
89
|
+
one: 大约一个月
|
90
|
+
other: 大约 %{count} 个月
|
91
|
+
about_x_years:
|
92
|
+
one: 大约一年
|
93
|
+
other: 大约 %{count} 年
|
94
|
+
almost_x_years:
|
95
|
+
one: 接近一年
|
96
|
+
other: 接近 %{count} 年
|
97
|
+
half_a_minute: 半分钟
|
98
|
+
less_than_x_minutes:
|
99
|
+
one: 不到一分钟
|
100
|
+
other: 不到 %{count} 分钟
|
101
|
+
less_than_x_seconds:
|
102
|
+
one: 不到一秒
|
103
|
+
other: 不到 %{count} 秒
|
104
|
+
over_x_years:
|
105
|
+
one: 一年多
|
106
|
+
other: ! '%{count} 年多'
|
107
|
+
x_days:
|
108
|
+
one: 一天
|
109
|
+
other: ! '%{count} 天'
|
110
|
+
x_minutes:
|
111
|
+
one: 一分钟
|
112
|
+
other: ! '%{count} 分钟'
|
113
|
+
x_months:
|
114
|
+
one: 一个月
|
115
|
+
other: ! '%{count} 个月'
|
116
|
+
x_seconds:
|
117
|
+
one: 一秒
|
118
|
+
other: ! '%{count} 秒'
|
119
|
+
prompts:
|
120
|
+
day: 日
|
121
|
+
hour: 时
|
122
|
+
minute: 分
|
123
|
+
month: 月
|
124
|
+
second: 秒
|
125
|
+
year: 年
|
126
|
+
errors: &errors
|
127
|
+
format: ! '%{attribute} %{message}'
|
128
|
+
messages:
|
129
|
+
accepted: 必须是可被接受的
|
130
|
+
blank: 不能为空字符
|
131
|
+
confirmation: 与确认值不匹配
|
132
|
+
empty: 不能留空
|
133
|
+
equal_to: 必须等于 %{count}
|
134
|
+
even: 必须为双数
|
135
|
+
exclusion: 是保留关键字
|
136
|
+
greater_than: 必须大于 %{count}
|
137
|
+
greater_than_or_equal_to: 必须大于或等于 %{count}
|
138
|
+
inclusion: 不包含于列表中
|
139
|
+
invalid: 是无效的
|
140
|
+
less_than: 必须小于 %{count}
|
141
|
+
less_than_or_equal_to: 必须小于或等于 %{count}
|
142
|
+
not_a_number: 不是数字
|
143
|
+
not_an_integer: 必须是整数
|
144
|
+
odd: 必须为单数
|
145
|
+
record_invalid: ! '验证失败: %{errors}'
|
146
|
+
taken: 已经被使用
|
147
|
+
too_long: 过长(最长为 %{count} 个字符)
|
148
|
+
too_short: 过短(最短为 %{count} 个字符)
|
149
|
+
wrong_length: 长度非法(必须为 %{count} 个字符)
|
150
|
+
template:
|
151
|
+
body: 如下字段出现错误:
|
152
|
+
header:
|
153
|
+
one: 有 1 个错误发生导致「%{model}」无法被保存。
|
154
|
+
other: 有 %{count} 个错误发生导致「%{model}」无法被保存。
|
155
|
+
helpers:
|
156
|
+
select:
|
157
|
+
prompt: 请选择
|
158
|
+
submit:
|
159
|
+
create: 新增%{model}
|
160
|
+
submit: 储存%{model}
|
161
|
+
update: 更新%{model}
|
162
|
+
number:
|
163
|
+
currency:
|
164
|
+
format:
|
165
|
+
delimiter: ! ','
|
166
|
+
format: ! '%u %n'
|
167
|
+
precision: 2
|
168
|
+
separator: .
|
169
|
+
significant: false
|
170
|
+
strip_insignificant_zeros: false
|
171
|
+
unit: CN¥
|
172
|
+
format:
|
173
|
+
delimiter: ! ','
|
174
|
+
precision: 3
|
175
|
+
separator: .
|
176
|
+
significant: false
|
177
|
+
strip_insignificant_zeros: false
|
178
|
+
human:
|
179
|
+
decimal_units:
|
180
|
+
format: ! '%n %u'
|
181
|
+
units:
|
182
|
+
billion: 十亿
|
183
|
+
million: 百万
|
184
|
+
quadrillion: 千兆
|
185
|
+
thousand: 千
|
186
|
+
trillion: 兆
|
187
|
+
unit: ''
|
188
|
+
format:
|
189
|
+
delimiter: ''
|
190
|
+
precision: 1
|
191
|
+
significant: false
|
192
|
+
strip_insignificant_zeros: false
|
193
|
+
storage_units:
|
194
|
+
format: ! '%n %u'
|
195
|
+
units:
|
196
|
+
byte:
|
197
|
+
one: Byte
|
198
|
+
other: Bytes
|
199
|
+
gb: GB
|
200
|
+
kb: KB
|
201
|
+
mb: MB
|
202
|
+
tb: TB
|
203
|
+
percentage:
|
204
|
+
format:
|
205
|
+
delimiter: ''
|
206
|
+
precision:
|
207
|
+
format:
|
208
|
+
delimiter: ''
|
209
|
+
support:
|
210
|
+
array:
|
211
|
+
last_word_connector: ! ', 和 '
|
212
|
+
two_words_connector: ! ' 和 '
|
213
|
+
words_connector: ! ', '
|
214
|
+
time:
|
215
|
+
am: 上午
|
216
|
+
formats:
|
217
|
+
default: ! '%Y年%b%d日 %A %H:%M:%S %Z'
|
218
|
+
long: ! '%Y年%b%d日 %H:%M'
|
219
|
+
short: ! '%b%d日 %H:%M'
|
220
|
+
pm: 下午
|
221
|
+
# remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
|
222
|
+
activemodel:
|
223
|
+
errors:
|
224
|
+
<<: *errors
|
225
|
+
simple_form:
|
226
|
+
"yes": '是'
|
227
|
+
"no": '否'
|
228
|
+
required:
|
229
|
+
text: '必填项'
|
230
|
+
mark: '*'
|
231
|
+
# You can uncomment the line below if you need to overwrite the whole required html.
|
232
|
+
# When using html, text and mark won't be used.
|
233
|
+
# html: '<abbr title="required">*</abbr>'
|
234
|
+
error_notification:
|
235
|
+
default_message: "请检查下面的错误之后重试:"
|