locomotive_cms 2.1.4 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. data/Gemfile +1 -5
  2. data/app/assets/images/locomotive/icons/flags/zh-CN.png +0 -0
  3. data/app/assets/javascripts/aloha/plugins/custom/inputcontrol/css/inputcontrol.css +3 -0
  4. data/app/assets/javascripts/aloha/plugins/custom/inputcontrol/lib/inputcontrol-plugin.js +94 -0
  5. data/app/assets/javascripts/aloha/plugins/custom/inputcontrol/package.json +1 -0
  6. data/app/assets/javascripts/locomotive.js +2 -1
  7. data/app/assets/javascripts/locomotive/models/content_type.js.coffee +6 -2
  8. data/app/assets/javascripts/locomotive/models/page.js.coffee +1 -1
  9. data/app/assets/javascripts/locomotive/models/site.js.coffee +1 -1
  10. data/app/assets/javascripts/locomotive/utils/aloha_settings.js.coffee +17 -7
  11. data/app/assets/javascripts/locomotive/utils/tinymce_settings.js.coffee +6 -0
  12. data/app/assets/javascripts/locomotive/views/application_view.js.coffee +13 -2
  13. data/app/assets/javascripts/locomotive/views/content_entries/_form_view.js.coffee +19 -2
  14. data/app/assets/javascripts/locomotive/views/content_entries/_popup_form_view.js.coffee +1 -1
  15. data/app/assets/javascripts/locomotive/views/content_entries/index_view.js.coffee +2 -2
  16. data/app/assets/javascripts/locomotive/views/content_types/_form_view.js.coffee +2 -1
  17. data/app/assets/javascripts/locomotive/views/content_types/custom_field_entry_view.js.coffee +3 -0
  18. data/app/assets/javascripts/locomotive/views/current_site/edit_view.js.coffee +2 -1
  19. data/app/assets/javascripts/locomotive/views/editable_elements/edit_all_view.js.coffee +3 -6
  20. data/app/assets/javascripts/locomotive/views/editable_elements/text_view.js.coffee +47 -0
  21. data/app/assets/javascripts/locomotive/views/inline_editor/toolbar_view.js.coffee +1 -1
  22. data/app/assets/javascripts/locomotive/views/pages/_form_view.js.coffee +2 -1
  23. data/app/assets/javascripts/locomotive/views/pages/list_view.js.coffee +2 -2
  24. data/app/assets/javascripts/locomotive/views/shared/fields/belongs_to_view.js.coffee +32 -0
  25. data/app/assets/javascripts/locomotive/views/shared/fields/has_many_view.js.coffee +2 -2
  26. data/app/assets/javascripts/locomotive/views/shared/fields/many_to_many_view.js.coffee +2 -2
  27. data/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee +2 -0
  28. data/app/assets/javascripts/locomotive/views/snippets/_form_view.js.coffee +2 -1
  29. data/app/assets/javascripts/locomotive/views/theme_assets/_form_view.js.coffee +2 -1
  30. data/app/assets/javascripts/locomotive/views/theme_assets/index_view.js.coffee +0 -1
  31. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/es.js +1 -0
  32. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/et.js +1 -0
  33. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/it.js +1 -0
  34. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/ja.js +1 -0
  35. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/nb.js +1 -0
  36. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/nl.js +1 -0
  37. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/no.js +1 -0
  38. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/pl.js +1 -0
  39. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/pt.js +1 -0
  40. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/zh-cn.js +1 -0
  41. data/app/assets/stylesheets/locomotive.css +1 -0
  42. data/app/assets/stylesheets/locomotive/backoffice/codemirror_changes.css.scss +2 -0
  43. data/app/assets/stylesheets/locomotive/backoffice/formtastic_changes.css.scss +17 -3
  44. data/app/controllers/locomotive/content_entries_controller.rb +6 -2
  45. data/app/controllers/locomotive/public/content_entries_controller.rb +6 -0
  46. data/app/helpers/locomotive/base_helper.rb +8 -0
  47. data/app/helpers/locomotive/sites_helper.rb +6 -0
  48. data/app/models/locomotive/content_entry.rb +35 -5
  49. data/app/models/locomotive/content_type.rb +26 -8
  50. data/app/models/locomotive/editable_element.rb +15 -1
  51. data/app/models/locomotive/editable_file.rb +0 -2
  52. data/app/models/locomotive/editable_long_text.rb +3 -3
  53. data/app/models/locomotive/editable_short_text.rb +3 -64
  54. data/app/models/locomotive/editable_text.rb +84 -0
  55. data/app/models/locomotive/extensions/content_entry/csv.rb +7 -3
  56. data/app/models/locomotive/extensions/page/editable_elements.rb +3 -5
  57. data/app/models/locomotive/extensions/site/locales.rb +20 -0
  58. data/app/models/locomotive/extensions/site/timezone.rb +35 -0
  59. data/app/models/locomotive/site.rb +20 -16
  60. data/app/models/locomotive/theme_asset.rb +1 -1
  61. data/app/presenters/locomotive/content_entry_presenter.rb +1 -1
  62. data/app/presenters/locomotive/{editable_short_text_presenter.rb → editable_text_presenter.rb} +14 -2
  63. data/app/views/locomotive/current_site/_form.html.haml +1 -0
  64. data/app/views/locomotive/custom_fields/types/_belongs_to.html.haml +6 -5
  65. data/app/views/locomotive/pages/_editable_elements.html.haml +1 -1
  66. data/app/views/locomotive/shared/_head.html.haml +2 -0
  67. data/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml +1 -0
  68. data/config/locales/admin_ui.de.yml +1 -0
  69. data/config/locales/admin_ui.en.yml +1 -0
  70. data/config/locales/admin_ui.et.yml +1 -0
  71. data/config/locales/admin_ui.fr.yml +1 -0
  72. data/config/locales/admin_ui.ja.yml +1 -0
  73. data/config/locales/admin_ui.nb.yml +2 -0
  74. data/config/locales/admin_ui.pl.yml +1 -0
  75. data/config/locales/admin_ui.pt-BR.yml +2 -1
  76. data/config/locales/admin_ui.ru.yml +24 -4
  77. data/config/locales/admin_ui.zh-CN.yml +347 -0
  78. data/config/locales/carrierwave.zh-CN.yml +4 -0
  79. data/config/locales/default.zh-CN.yml +116 -0
  80. data/config/locales/devise.nb.yml +1 -0
  81. data/config/locales/devise.zh-CN.yml +64 -0
  82. data/config/locales/flash.zh-CN.yml +115 -0
  83. data/config/locales/formtastic.en.yml +1 -0
  84. data/config/locales/formtastic.ru.yml +4 -1
  85. data/config/locales/formtastic.zh-CN.yml +112 -0
  86. data/features/backoffice/content_types/localized.feature +63 -0
  87. data/features/backoffice/pages.feature +3 -1
  88. data/features/backoffice/site.feature +7 -0
  89. data/features/public/contact_form.feature +11 -0
  90. data/features/public/content_entries.feature +13 -0
  91. data/features/public/pages.feature +24 -0
  92. data/features/step_definitions/page_steps.rb +6 -0
  93. data/features/step_definitions/web_steps.rb +24 -7
  94. data/lib/generators/locomotive/install/templates/locomotive.rb +2 -2
  95. data/lib/generators/locomotive/install/templates/mongoid.yml +23 -29
  96. data/lib/locomotive.rb +1 -4
  97. data/lib/locomotive/configuration.rb +3 -3
  98. data/lib/locomotive/dependencies.rb +1 -0
  99. data/lib/locomotive/engine.rb +2 -1
  100. data/lib/locomotive/liquid/drops/page.rb +1 -1
  101. data/lib/locomotive/liquid/filters/date.rb +3 -1
  102. data/lib/locomotive/liquid/filters/misc.rb +4 -0
  103. data/lib/locomotive/liquid/filters/text.rb +4 -0
  104. data/lib/locomotive/liquid/tags/editable.rb +1 -2
  105. data/lib/locomotive/liquid/tags/editable/text.rb +79 -0
  106. data/lib/locomotive/liquid/tags/inline_editor.rb +1 -1
  107. data/lib/locomotive/liquid/tags/link_to.rb +72 -13
  108. data/lib/locomotive/liquid/tags/with_scope.rb +3 -3
  109. data/lib/locomotive/middlewares.rb +0 -1
  110. data/lib/locomotive/mongoid/patches.rb +0 -16
  111. data/lib/locomotive/render.rb +1 -1
  112. data/lib/locomotive/version.rb +1 -1
  113. data/lib/tasks/locomotive.rake +15 -9
  114. data/mongodb/migrate/20130326201349_rename_entry_to_content_entry.rb +1 -1
  115. data/mongodb/migrate/20130621135025_create_editable_texts.rb +42 -0
  116. data/mongodb/migrate/20130627101548_localize_slugs_of_content_entries.rb +43 -0
  117. data/spec/dummy/config/initializers/locomotive.rb +1 -1
  118. data/spec/dummy/config/initializers/session_store.rb +1 -1
  119. data/spec/lib/locomotive/liquid/drops/page_spec.rb +1 -1
  120. data/spec/lib/locomotive/liquid/filters/misc_spec.rb +26 -0
  121. data/spec/lib/locomotive/liquid/tags/editable/text_spec.rb +85 -0
  122. data/spec/lib/locomotive/liquid/tags/link_to_spec.rb +111 -0
  123. data/spec/lib/locomotive/liquid/tags/with_scope_spec.rb +6 -0
  124. data/spec/models/locomotive/content_entry_spec.rb +27 -7
  125. data/spec/models/locomotive/{editable_short_text_spec.rb → editable_text_spec.rb} +53 -8
  126. data/spec/models/locomotive/extensions/page/editable_elements_spec.rb +6 -6
  127. data/spec/models/locomotive/site_spec.rb +52 -32
  128. data/vendor/assets/images/select2-spinner.gif +0 -0
  129. data/vendor/assets/images/select2.png +0 -0
  130. data/vendor/assets/images/select2x2.png +0 -0
  131. data/vendor/assets/javascripts/locomotive/liquid_mode.js +1 -1
  132. data/vendor/assets/javascripts/select2/select2.js +3054 -0
  133. data/vendor/assets/stylesheets/select2/select2.css.scss +652 -0
  134. metadata +77 -33
  135. data/app/assets/javascripts/locomotive/views/editable_elements/long_text_view.js.coffee +0 -36
  136. data/app/assets/javascripts/locomotive/views/editable_elements/short_text_view.js.coffee +0 -22
  137. data/app/presenters/locomotive/editable_long_text_presenter.rb +0 -5
  138. data/lib/locomotive/liquid/tags/editable/long_text.rb +0 -33
  139. data/lib/locomotive/liquid/tags/editable/short_text.rb +0 -41
  140. data/lib/locomotive/middlewares/fonts.rb +0 -42
  141. data/lib/locomotive/session_store.rb +0 -64
  142. data/spec/lib/locomotive/liquid/tags/editable/short_text_spec.rb +0 -46
  143. data/spec/models/locomotive/editable_long_text_spec.rb +0 -50
@@ -0,0 +1,4 @@
1
+ zh-CN:
2
+ carrierwave:
3
+ errors:
4
+ integrity: '是一个不允许的文件类型。'
@@ -0,0 +1,116 @@
1
+ zh-CN:
2
+ date:
3
+ formats:
4
+ default: "%m/%d/%Y"
5
+ short: "%b %d"
6
+ long: "%B %d, %Y"
7
+
8
+ day_names: [星期日, 星期一, 星期二, 星期三, 星期四, 星期五, 星期六]
9
+ abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
10
+
11
+ # Don't forget the nil at the beginning; there's no such thing as a 0th month
12
+ month_names: [~, 一月, 二月, 三月, 四月, 五月, 六月, 七月, 八月, 九月, 十月, 十一月, 十二月]
13
+ abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
14
+ # Used in date_select and datetime_select.
15
+ order:
16
+ - :year
17
+ - :month
18
+ - :day
19
+ time:
20
+ formats:
21
+ default: "%a, %d %b %Y %H:%M:%S %z"
22
+ short: "%d %b %H:%M"
23
+ long: "%B %d, %Y %H:%M"
24
+ am: "am"
25
+ pm: "pm"
26
+ datetime:
27
+ distance_in_words:
28
+ half_a_minute: "半分钟"
29
+ less_than_x_seconds:
30
+ one: "少于1秒"
31
+ other: "少于%{count}秒"
32
+ x_seconds:
33
+ one: "1秒"
34
+ other: "%{count}秒"
35
+ less_than_x_minutes:
36
+ one: "少于一分钟"
37
+ other: "少于%{count}分钟"
38
+ x_minutes:
39
+ one: "1分钟"
40
+ other: "%{count}分钟"
41
+ about_x_hours:
42
+ one: "大约1小时"
43
+ other: "大约%{count}小时"
44
+ x_days:
45
+ one: "1天"
46
+ other: "%{count}天"
47
+ about_x_months:
48
+ one: "大约一个月"
49
+ other: "大约%{count}个月"
50
+ x_months:
51
+ one: "1个月"
52
+ other: "%{count}月"
53
+ about_x_years:
54
+ one: "大约1年"
55
+ other: "大约%{count}年"
56
+ over_x_years:
57
+ one: "超过1年"
58
+ other: "超过%{count}年"
59
+ almost_x_years:
60
+ one: "几乎1年"
61
+ other: "几乎%{count}年"
62
+ prompts:
63
+ year: "年"
64
+ month: "月"
65
+ day: "日"
66
+ hour: "时"
67
+ minute: "分"
68
+ second: "秒"
69
+
70
+ support:
71
+ array:
72
+ words_connector: ","
73
+ two_words_connector: ""
74
+ last_word_connector: ","
75
+
76
+ mongoid:
77
+ errors:
78
+ messages:
79
+ blank_in_locale: "不能为空"
80
+ attributes:
81
+ locomotive/content_entry:
82
+ created_at: 创建于
83
+
84
+ errors:
85
+ messages:
86
+ domain_taken: "%{value} 已经被占用"
87
+ invalid_domain: "%{value} 不正确"
88
+ needs_admin_account: "至少需要一个管理员账户"
89
+ protected_page: "你不能删除index和404页面"
90
+ extname_changed: "新的文件没有原来的扩展名"
91
+ array_too_short: "太小了(最少的元素数量是 %{count})"
92
+ invalid_theme_file: "不能为空或不是一个zip文件"
93
+ site:
94
+ default_locale_removed: 先前的默认语言不能被正确删除。
95
+ page:
96
+ liquid_syntax: "Liquid 语法错误('%{error}' on '%{fullpath}')"
97
+ liquid_extend: "页面 '%{fullpath}' 扩展了一个不存在的模板"
98
+ liquid_translation: "页面 '%{fullpath}' 扩展了一个未被翻译的模板"
99
+ too_few_custom_fields: "至少需要一个自定义字段"
100
+ security: "存在一个安全问题"
101
+
102
+ attributes:
103
+ defaults:
104
+ pages:
105
+ index:
106
+ title: "首页"
107
+ body: "首页内容"
108
+ "404":
109
+ title: "页面找不到"
110
+ body: "404页面内容"
111
+ other:
112
+ body: "{% extends 'parent' %}"
113
+
114
+ pagination:
115
+ previous: "« 前一页"
116
+ next: "后一页 »"
@@ -7,6 +7,7 @@ nb:
7
7
 
8
8
  devise:
9
9
  failure:
10
+ already_authenticated: "Allerede innlogget"
10
11
  locomotive_account:
11
12
  unauthenticated: 'Du må logge inn eller registrere deg før du kan fortsette.'
12
13
  unconfirmed: 'Kontoen må aktiveres før du kan fortsette.'
@@ -0,0 +1,64 @@
1
+ zh-CN:
2
+ errors:
3
+ messages:
4
+ not_found: "找不到"
5
+ already_confirmed: "已经被确认"
6
+ not_locked: "未被锁定"
7
+
8
+ devise:
9
+ failure:
10
+ locomotive_account:
11
+ unauthenticated: '继续之前你需要先登录或注册。'
12
+ unconfirmed: '继续之前你必须验证你的账户。'
13
+ locked: '你的账户已被锁定。'
14
+ invalid: '错误的邮箱或密码。'
15
+ not_found_in_database: '错误的邮箱或密码。'
16
+ no_membership: '你的账户不是这个网站的成员,请联系这个网站的管理员让你获得访问的权限。'
17
+ invalid_token: '无效的认证token。'
18
+ timeout: '你的会话已经过期,请重新登录。'
19
+ inactive: '你的账户还没有被激活。'
20
+ sessions:
21
+ locomotive_account:
22
+ signed_in: '登录成功'
23
+ signed_out: '退出成功'
24
+ passwords:
25
+ locomotive_account:
26
+ send_instructions: '几分钟后你将收到一封说明如何重置你的密码的邮件。'
27
+ updated: '你的密码更改成功。现在你已登录。'
28
+ confirmations:
29
+ locomotive_account:
30
+ send_instructions: '几分钟后你将收到一封说明关于符合验证你的账户的邮件。'
31
+ confirmed: '你的账户验证成功。现在你已登录。'
32
+ registrations:
33
+ locomotive_account:
34
+ signed_up: '你已注册成功。'
35
+ updated: '你的账户更新成功。'
36
+ destroyed: '再见! 你的账户注销成功。我们希望你再次回来。'
37
+ unlocks:
38
+ locomotive_account:
39
+ send_instructions: '几分钟后你将收到一封说明关于如何解锁你的账户的邮件。'
40
+ unlocked: '你的账户成功解锁。现在你已登录。'
41
+ mailer:
42
+ locomotive_account:
43
+ confirmation_instructions: '验证说明'
44
+ reset_password_instructions: '重置密码说明'
45
+ unlock_instructions: '解锁说明'
46
+
47
+
48
+ locomotive_account:
49
+ devise_mailer:
50
+ common:
51
+ hello: 你好
52
+
53
+ confirmation_instructions:
54
+ you_can_confirm_your_account_through_the_link_below: "你能通过如下链接验证你的账户:"
55
+ confirm_my_account: "验证我的账户"
56
+ reset_password_instructions:
57
+ reset_password_instruction: "某人已经请求一个链接来更改你的密码,你可以通过如下链接来进行:"
58
+ change_my_password: "更改我的密码"
59
+ wrong_request_instruction: "如果你没有请求这个,请忽略这个邮件。"
60
+ unchange_password_message: "你的密码将不被更改直到你访问了上面的链接并且创建了一个新的。"
61
+ unlock_instructions:
62
+ locked_account_message: "你的账户已被锁定,因为失败登录的次数过多。"
63
+ unlock_account_instruction: "点击下面的链接来解锁你的账户:"
64
+ unlock_my_account: "解锁我的账户"
@@ -0,0 +1,115 @@
1
+ zh-CN:
2
+ flash:
3
+ locomotive:
4
+ pages:
5
+ create:
6
+ notice: "页面创建成功。"
7
+ alert: "页面创建失败。"
8
+ update:
9
+ notice: "页面更新成功。"
10
+ alert: "页面更新失败。"
11
+ sort:
12
+ notice: "页面排序成功。"
13
+ destroy:
14
+ notice: "页面删除成功。"
15
+
16
+ content_entries:
17
+ create:
18
+ notice: "条目创建成功。"
19
+ alert: "条目创建失败。"
20
+ update:
21
+ notice: "条目更新成功。"
22
+ alert: "条目更新失败。"
23
+ sort:
24
+ notice: "条目排序成功。"
25
+ destroy:
26
+ notice: "条目删除成功。"
27
+
28
+ content_types:
29
+ create:
30
+ notice: "内容类型创建成功。"
31
+ alert: "内容类型创建失败。"
32
+ update:
33
+ notice: "内容类型更新成功。"
34
+ alert: "内容类型更新失败。"
35
+ destroy:
36
+ notice: "内容类型删除成功。"
37
+
38
+ current_site:
39
+ update:
40
+ notice: "我的网站更新成功。"
41
+ alert: "我的网站更新失败。"
42
+
43
+ snippets:
44
+ create:
45
+ notice: "片段创建成功。"
46
+ alert: "片段创建失败。"
47
+ update:
48
+ notice: "片段更新成功。"
49
+ alert: "片段更新失败。"
50
+ destroy:
51
+ notice: "片段删除成功。"
52
+
53
+ accounts:
54
+ create:
55
+ notice: "账户创建成功。"
56
+ alert: "账户创建失败。"
57
+
58
+ my_account:
59
+ update:
60
+ notice: "我的账户更新成功。"
61
+ alert: "我的账户更新失败。"
62
+
63
+ sites:
64
+ create:
65
+ notice: "网站创建成功。"
66
+ alert: "网站创建失败。"
67
+ destroy:
68
+ notice: "网站删除成功。"
69
+
70
+ memberships:
71
+ create:
72
+ notice: "成员创建成功。"
73
+ alert: "成员创建失败。"
74
+ already_created: "账户已经被添加到这个网站。"
75
+
76
+ assets:
77
+ create:
78
+ notice: "资产创建成功。"
79
+ alert: "资产创建失败。"
80
+ update:
81
+ notice: "资产更新成功。"
82
+ alert: "资产更新失败。"
83
+
84
+ theme_assets:
85
+ create:
86
+ notice: "文件创建成功。"
87
+ alert: "文件创建失败。"
88
+ update:
89
+ notice: "文件更新成功。"
90
+ alert: "文件更新失败。"
91
+ destroy:
92
+ notice: "文件删除成功。"
93
+ translations:
94
+ create:
95
+ notice: "翻译创建成功。"
96
+ alert: "翻译创建失败。"
97
+ update:
98
+ notice: "翻译更新成功。"
99
+ alert: "翻译更新失败。"
100
+ destroy:
101
+ notice: "翻译删除成功。"
102
+
103
+ custom_fields:
104
+ update:
105
+ alert: "字段更新成功"
106
+
107
+ cross_domain_sessions:
108
+ create:
109
+ alert: "你需要登录"
110
+
111
+ import:
112
+ create:
113
+ done: "你的网站更新成功。"
114
+ notice: "你的网站正在被更新。"
115
+ alert: "导入失败。"
@@ -53,6 +53,7 @@ en:
53
53
  target_klass_name: Model
54
54
  site:
55
55
  locales: Languages
56
+ timezone_name: Timezone
56
57
  new:
57
58
  locales: First language
58
59
 
@@ -48,9 +48,12 @@ ru:
48
48
  password_confirmation: Подтверждение нового пароля
49
49
  page:
50
50
  seo_title: Название
51
- target_klass_name: Model
51
+ target_klass_name: Модель
52
52
  site:
53
53
  locales: Языки
54
+ timezone_name: Часовой пояс
55
+ new:
56
+ locales: Первый язык
54
57
 
55
58
  hints:
56
59
  page:
@@ -0,0 +1,112 @@
1
+ zh-CN:
2
+ formtastic:
3
+ titles:
4
+ information: 基本信息
5
+ advanced_options: 高级选项
6
+ meta: SEO 元信息
7
+ seo: SEO 设置
8
+ robots_txt: Robots.txt 文件
9
+ code: 代码
10
+ raw_template: 模板
11
+ credentials: 证件
12
+ language: 语言
13
+ sites: 网站
14
+ access_points: 接入点
15
+ memberships: 账户
16
+ membership_email: 账户邮件
17
+ file: 文件
18
+ preview: 预览
19
+ options: 高级选项
20
+ custom_fields: 自定义字段
21
+ other_fields: 其他信息
22
+ presentation: 表示
23
+ attributes: 属性
24
+ upload: 上传
25
+ labels:
26
+ theme_asset:
27
+ plain_text_name: 文件名
28
+ content_type: 文件类型
29
+ new:
30
+ source: 文件
31
+ edit:
32
+ source: 替换文件
33
+ custom_fields:
34
+ field:
35
+ name: 别名
36
+ content_type:
37
+ raw_item_template: 条目模板
38
+ public_submission_enabled: 公开提交
39
+ public_submission_accounts: 被通知账户
40
+ "custom_fields/field":
41
+ select_options: "选项"
42
+ content_entry:
43
+ _slug: 永久链接
44
+ _visible: 可见
45
+ account:
46
+ api_key: API key
47
+ edit:
48
+ locale: UI 语言
49
+ password: 新密码
50
+ password_confirmation: 新密码确认
51
+ page:
52
+ seo_title: 标题
53
+ target_klass_name: 内容类型
54
+ site:
55
+ locales: 语言
56
+ timezone_name: 时区
57
+ new:
58
+ locales: 第一语言
59
+
60
+ hints:
61
+ page:
62
+ handle: "唯一识别码用来在一个外部的controller实例中取得这个页面"
63
+ published: "只有验证的账户才能看未发布的页面"
64
+ cache_strategy: "缓存页面获得高性能。\"简单\"选项是一个好的折中。"
65
+ templatized: "Use the page as a template for a model you defined."
66
+ listed: "控制页面是否显示在生成的菜单中。"
67
+ target_klass_name: "这个页面是哪个内容类型的模板"
68
+ seo_title: "定义一个页面标题用在html head部分的title标签处。如果你想用默认的网站设置请把这个留空。"
69
+ meta_keywords: "覆盖网站的meta关键字用在页面的html head部分。关键字用逗号分割。"
70
+ meta_description: "覆盖网站的meta 描述,用在页面的html head部分。"
71
+ snippet:
72
+ slug: "你必须知道它, 已便插入片段到一个页面"
73
+ site:
74
+ locales: "拖动一面旗到第一个位置来使它成为默认的一个。"
75
+ seo_title: "在这里定义一个全局的值作为html head部分的title标签的值。"
76
+ meta_keywords: "Meta 关键字用在html head部分,他们用逗号分割。SEO需要这个。"
77
+ meta_description: "Meta 描述用在html head部分。SEO需要这个"
78
+ domain_name: "例如: locomotiveapp.org"
79
+ robots_txt: "<span class='code'>/robots.txt</span>文件内容. 查阅下面的<a href='http://www.w3.org/TR/html4/appendix/notes.html#h-B.4.1.1'>url</a> 获得更多信息."
80
+ new:
81
+ locales: "一旦你的网站被创建你可以添加其他的语言。"
82
+ theme_asset:
83
+ slug: "你不需要添加扩展文件(.css 或 .js)"
84
+ edit:
85
+ source: "你可以通过拥有相同扩展名的文件替换它"
86
+ translation:
87
+ key: "不要使用划线,用下划线替换划线。例如: welcome_message."
88
+ asset:
89
+ source: "所有可接受的文件类型。"
90
+ edit:
91
+ source: "当前的文件通过这个地址获得 %{url}"
92
+ update:
93
+ source: "当前的文件通过这个地址获得 %{url}"
94
+ content_entry:
95
+ _slug: "这个属性用来生成作为内容类型的页面模板的地址(例如:\"template_page/{{ your_object._permalink }}\")。"
96
+ _visible: "条目默认将被显示到网站上。因此它可以被作为一个发布的属性。"
97
+ seo_title: "你填写的值将替换作为内容类型模板的SEO的标题。"
98
+ meta_keywords: "覆盖网站的meta关键字,用在html head部分, 他们用逗号分割。"
99
+ meta_description: "覆盖网站的meta描述,用在html head部分。"
100
+ import:
101
+ source: "一个包含database.yml, 资产,模板的zip文件。"
102
+ samples: "如果启用,导入过程也将复制内容和资产"
103
+ reset: "如果启用,在导入新的网站之前你网站的所有数据将被删除。"
104
+ content_type:
105
+ name: "我们建议你输入内容类型的复数形式。例如: Projects, Recipes, Posts, Articles等"
106
+ slug: "它将在liquid模板里被用作集合的名称。 例如: <span class='code'>{{ contents.my_projects }}</span>"
107
+ raw_item_template: "你可以为列表中的每个条目自定义文本显示。 Liquid简单的使用例如: <span class='code'>{{ entry.name }})</span>"
108
+ public_submission_enabled: "他是用来让外部的人来创建新的条目(例如: 在一个联系表单里的消息)"
109
+ public_submission_accounts: "如果公开的提交选项是启用的,当有一个条目被创建,将发送一个通知邮件到上面列出的账户。"
110
+ "custom_fields/field":
111
+ name: "用在liquid模板中的属性的名称。例如: <span class='code'>&#123;&#123; your_object.&lt;name_of_your_field&gt; &#125;&#125;</span>"
112
+ hint: "在内容类型表单的字段下面显示的提示文本"