comfortable_mexican_sofa 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe2c3b16cbc35037c12ef3e0bd63724dae6191fe
4
- data.tar.gz: c480154bd6833e3af69b46e28340ee7cb9a5fb03
3
+ metadata.gz: d9aab08f0f25ef0f202bf5d5f6ff90c49b0cda7c
4
+ data.tar.gz: 517ea8d8c64e602a88397423cfd26eed61ba09ae
5
5
  SHA512:
6
- metadata.gz: f5a3acbc7c9582eb759395d44b0769b934251d143fb82ffccbbeba451b5d1ebf4c5a8a154886c0c36156e27f364e789e86ab5316cb00d53d8d3c86e9f6e734f7
7
- data.tar.gz: 73730d6a99596fabd4093045e0ce90f8b806ec793cb68fd3a07eacf77794043417d99ad36d49ee3fe9c4f4e1742fca4253db1394a51b8eec3116f21b3cda197f
6
+ metadata.gz: 18125e0be51511b721ad3d14312742a9d17db31dbb2294e6765b063b18dc735f7172adb082de34bb879c2dc793cd0d55480aa0fedb9af2e179f0138fc4845049
7
+ data.tar.gz: 1d9886bbaf7c798e01324a3c2bd6dd0f4e401db7a3fdd1742dbae63005ef29edd37e080ef77ede31141f5faf746a0748e06eb600986f14035b98fd908151f41c
@@ -6,7 +6,7 @@ zh-CN:
6
6
  comfy/cms/page: 页面
7
7
  comfy/cms/snippet: 片段
8
8
  comfy/cms/file: 文件
9
- comfy/cms/translation: Translation
9
+ comfy/cms/translation: 翻译
10
10
 
11
11
  attributes:
12
12
  comfy/cms/site:
@@ -26,8 +26,8 @@ zh-CN:
26
26
  comfy/cms/page:
27
27
  label: 页面名称
28
28
  layout_id: 布局
29
- slug: Slug
30
- full_path: Full path
29
+ slug: 缩略路径
30
+ full_path: 完整路径
31
31
  parent_id: 上级
32
32
  target_page_id: 跳转至
33
33
  content: 内容
@@ -41,10 +41,10 @@ zh-CN:
41
41
  label: 标签
42
42
  content: 内容
43
43
  comfy/cms/translation:
44
- locale: Language
45
- label: Label
46
- layout_id: Layout
47
- is_published: Published
44
+ locale: 语言
45
+ label: 标签
46
+ layout_id: 布局
47
+ is_published: 发布
48
48
 
49
49
  comfy:
50
50
  cms:
@@ -57,7 +57,7 @@ zh-CN:
57
57
  cms:
58
58
  base:
59
59
  site_not_found: 没有该站点
60
- seeds_enabled: CMS夹具已经启用,在此处的所有修改将被忽略。
60
+ seeds_enabled: CMS样板已经启用,在此处的所有修改将被忽略。
61
61
 
62
62
  sites: 站点
63
63
  layouts: 布局
@@ -144,7 +144,7 @@ zh-CN:
144
144
  create: 创建页面
145
145
  cancel: 取消
146
146
  update: 更新页面
147
- choose_link: Select page...
147
+ choose_link: 选择页面...
148
148
 
149
149
  fragments:
150
150
  form_fragments:
@@ -153,25 +153,25 @@ zh-CN:
153
153
  编辑内容使其包含一个页面或者field标签。例如: <code>{{cms:wysiwyg content}}</code>
154
154
 
155
155
  translations:
156
- created: Translation created
157
- creation_failure: Failed to create translation
158
- updated: Translation updated
159
- update_failure: Failed to update translation
160
- deleted: Translation deleted
161
- not_found: Translation not found
156
+ created: 翻译创建成功
157
+ creation_failure: 翻译创建失败
158
+ updated: 翻译更新成功
159
+ update_failure: 翻译更新失败
160
+ deleted: 翻译删除成功
161
+ not_found: 翻译不存在
162
162
 
163
163
  new:
164
- title: New Translation
164
+ title: 新翻译
165
165
  edit:
166
- title: Editing Translation
166
+ title: 编辑翻译
167
167
  form:
168
- preview: Preview
169
- create: Create
170
- update: Update
171
- cancel: Return to Page
168
+ preview: 预览
169
+ create: 创建
170
+ update: 更新
171
+ cancel: 取消
172
172
  sidebar:
173
- new: New Translation
174
- confirm: Are you sure?
173
+ new: 新翻译
174
+ confirm: 确定刪除该翻译吗?
175
175
 
176
176
  snippets:
177
177
  created: 片段创建成功
@@ -206,10 +206,10 @@ zh-CN:
206
206
  revision: 修订版本
207
207
  update: 更新到该修订版本
208
208
  cancel: 取消
209
- content: Content
210
- changes: Changes
211
- previous: Previous
212
- current: Current
209
+ content: 内容
210
+ changes: 更改
211
+ previous: 先前
212
+ current: 当前
213
213
  sidebar:
214
214
  revision:
215
215
  zero: '%{count} 修订版本'
@@ -6,7 +6,7 @@ zh-TW:
6
6
  comfy/cms/page: 頁面
7
7
  comfy/cms/snippet: 片段
8
8
  comfy/cms/file: 文件
9
- comfy/cms/translation: Translation
9
+ comfy/cms/translation: 翻譯
10
10
 
11
11
  attributes:
12
12
  comfy/cms/site:
@@ -41,10 +41,10 @@ zh-TW:
41
41
  label: 標籤
42
42
  content: 內容
43
43
  comfy/cms/translation:
44
- locale: Language
45
- label: Label
46
- layout_id: Layout
47
- is_published: Published
44
+ locale: 語言
45
+ label: 標籤
46
+ layout_id: 佈局
47
+ is_published: 發佈
48
48
 
49
49
  comfy:
50
50
  cms:
@@ -57,7 +57,7 @@ zh-TW:
57
57
  cms:
58
58
  base:
59
59
  site_not_found: 沒有該站點
60
- seeds_enabled: CMS 樣板已經啟用,在此處的所有修改將被忽略。
60
+ seeds_enabled: CMS樣板已經啟用,在此處的所有修改將被忽略。
61
61
 
62
62
  sites: 站點
63
63
  layouts: 佈局
@@ -113,7 +113,7 @@ zh-TW:
113
113
  select_parent_layout: 選擇上級佈局
114
114
  select_app_layout: 選擇應用佈局
115
115
  create: 創建佈局
116
- cancel: Cancel
116
+ cancel: 取消
117
117
  update: 更新佈局
118
118
 
119
119
  pages:
@@ -153,25 +153,25 @@ zh-TW:
153
153
  編輯內容使其包含一個頁面或者欄位標記。例如: <code>{{cms:wysiwyg content}}</code>
154
154
 
155
155
  translations:
156
- created: Translation created
157
- creation_failure: Failed to create translation
158
- updated: Translation updated
159
- update_failure: Failed to update translation
160
- deleted: Translation deleted
161
- not_found: Translation not found
156
+ created: 翻譯創建成功
157
+ creation_failure: 翻譯創建失敗
158
+ updated: 翻譯更新成功
159
+ update_failure: 翻譯更新失敗
160
+ deleted: 翻譯刪除成功
161
+ not_found: 翻譯不存在
162
162
 
163
163
  new:
164
- title: New Translation
164
+ title: 新翻譯
165
165
  edit:
166
- title: Editing Translation
166
+ title: 編輯翻譯
167
167
  form:
168
- preview: Preview
169
- create: Create
170
- update: Update
171
- cancel: Return to Page
168
+ preview: 預覽
169
+ create: 創建
170
+ update: 更新
171
+ cancel: 取消
172
172
  sidebar:
173
- new: New Translation
174
- confirm: Are you sure?
173
+ new: 新翻譯
174
+ confirm: 確定刪除該翻譯嗎?
175
175
 
176
176
  snippets:
177
177
  created: 片段創建成功
@@ -24,7 +24,7 @@ class ComfortableMexicanSofa::Content::Tag::Partial < ComfortableMexicanSofa::Co
24
24
  end
25
25
 
26
26
  def content
27
- "<%= render partial: '@path', locals: #{@locals} %>"
27
+ "<%= render partial: \"#{@path}\", locals: #{@locals} %>"
28
28
  end
29
29
 
30
30
  def render
@@ -1,5 +1,5 @@
1
1
  module ComfortableMexicanSofa
2
2
 
3
- VERSION = "2.0.4".freeze
3
+ VERSION = "2.0.5".freeze
4
4
 
5
5
  end
@@ -222,7 +222,7 @@ class ContentRendererTest < ActiveSupport::TestCase
222
222
 
223
223
  def test_render_with_erb_allowed_via_tag
224
224
  out = render_string("{{cms:partial path}}")
225
- assert_equal "<%= render partial: '@path', locals: {} %>", out
225
+ assert_equal "<%= render partial: \"path\", locals: {} %>", out
226
226
  end
227
227
 
228
228
  def test_render_with_nested_tag
@@ -23,12 +23,12 @@ class ContentTagsPartialTest < ActiveSupport::TestCase
23
23
 
24
24
  def test_content
25
25
  tag = ComfortableMexicanSofa::Content::Tag::Partial.new(@page, "path/to/partial, key: val")
26
- assert_equal "<%= render partial: '@path', locals: {\"key\"=>\"val\"} %>", tag.content
26
+ assert_equal "<%= render partial: \"path/to/partial\", locals: {\"key\"=>\"val\"} %>", tag.content
27
27
  end
28
28
 
29
29
  def test_render
30
30
  tag = ComfortableMexicanSofa::Content::Tag::Partial.new(@page, "path/to/partial, key: val")
31
- assert_equal "<%= render partial: '@path', locals: {\"key\"=>\"val\"} %>", tag.render
31
+ assert_equal "<%= render partial: \"path/to/partial\", locals: {\"key\"=>\"val\"} %>", tag.render
32
32
  end
33
33
 
34
34
  def test_render_with_whitelist
@@ -38,7 +38,7 @@ class ContentTagsPartialTest < ActiveSupport::TestCase
38
38
  assert_equal "", tag.render
39
39
 
40
40
  tag = ComfortableMexicanSofa::Content::Tag::Partial.new(@page, "safe/path")
41
- assert_equal "<%= render partial: '@path', locals: {} %>", tag.render
41
+ assert_equal "<%= render partial: \"safe/path\", locals: {} %>", tag.render
42
42
  end
43
43
 
44
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comfortable_mexican_sofa
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Khabarov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-12 00:00:00.000000000 Z
11
+ date: 2017-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_link_to
@@ -697,7 +697,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
697
697
  version: '0'
698
698
  requirements: []
699
699
  rubyforge_project:
700
- rubygems_version: 2.6.11
700
+ rubygems_version: 2.5.1
701
701
  signing_key:
702
702
  specification_version: 4
703
703
  summary: Rails 5.2+ CMS Engine