radiant-copy_move-extension 2.4.5 → 2.4.6
Sign up to get free protection for your applications and to get access to all the features.
- data/config/locales/fr.yml +26 -0
- data/lib/copy_move/model.rb +4 -3
- data/radiant-copy_move-extension.gemspec +3 -2
- metadata +34 -53
@@ -0,0 +1,26 @@
|
|
1
|
+
fr:
|
2
|
+
copy_move:
|
3
|
+
button: "Copier/Déplacer"
|
4
|
+
copy_or_move_page: "Copy or Move Page"
|
5
|
+
copy_page: "Copy Page"
|
6
|
+
copy_page_only: "Copy Page Only"
|
7
|
+
copy_page_description: "This will create a copy of this single page under a new parent"
|
8
|
+
copy_whole_subtree: "Copy Whole Subtree"
|
9
|
+
copy_tree_description: "This will create a copy of this page and all its descendants under a new parent"
|
10
|
+
move_entire_subtree: "Move Entire Subtree"
|
11
|
+
move_tree_description: "This will move this page and all its descendants under a new parent"
|
12
|
+
move_page: "Move Page"
|
13
|
+
move_page_description: "This will move this page under a new parent"
|
14
|
+
copy_with_first_level_children: "Copy With First-level Children"
|
15
|
+
copy_children_description: "This will create a copy of this page and its immediate first-level children under a new parent"
|
16
|
+
|
17
|
+
copied:
|
18
|
+
'A copy of <strong>%{page}</strong> was created under <strong>%{parent}</strong>.'
|
19
|
+
moved:
|
20
|
+
'Page <strong>%{page}</strong> was moved under <strong>%{parent}</strong>.'
|
21
|
+
immediate_children_copied:
|
22
|
+
'Copies of <strong>%{page}</strong> and its immediate children were created under <strong>%{parent}</strong>'
|
23
|
+
descendants_copied:
|
24
|
+
'Copies of <strong>%{page}</strong> and all its descendants were created under <strong>%{parent}</strong>.'
|
25
|
+
descendants_moved:
|
26
|
+
'Page <strong>%{page}</strong> and all its descendants were moved under <strong>%{parent}</strong>.'
|
data/lib/copy_move/model.rb
CHANGED
@@ -5,9 +5,10 @@ module CopyMove
|
|
5
5
|
test_page.parent = parent
|
6
6
|
until test_page.valid?
|
7
7
|
index = (index || 0) + 1
|
8
|
-
|
9
|
-
test_page.
|
10
|
-
test_page.
|
8
|
+
raise "Couldn't generate new slug for #{id} under #{parent.id}: #{test_page.errors.full_messages.inspect}" if index > 100
|
9
|
+
test_page.title = "#{title} Copy #{index}".first(255)
|
10
|
+
test_page.slug = "#{slug}-copy-#{index}".first(100)
|
11
|
+
test_page.breadcrumb = test_page.title.first(160)
|
11
12
|
test_page.errors.clear # Reset error status before revalidating
|
12
13
|
end
|
13
14
|
{:slug => test_page.slug, :title => test_page.title, :breadcrumb => test_page.breadcrumb}
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "radiant-copy_move-extension"
|
8
|
-
s.version = "2.4.
|
8
|
+
s.version = "2.4.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Benny Degezelle", "Andrew vonderLuft"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2015-01-29"
|
13
13
|
s.description = "With this extension you can copy or move a page with or without its children."
|
14
14
|
s.email = "benny@gorilla-webdesign.be"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -35,6 +35,7 @@ Gem::Specification.new do |s|
|
|
35
35
|
"config/locales/de.yml",
|
36
36
|
"config/locales/en.yml",
|
37
37
|
"config/locales/nl.yml",
|
38
|
+
"config/locales/fr.yml",
|
38
39
|
"config/routes.rb",
|
39
40
|
"copy_move_extension.rb",
|
40
41
|
"lib/copy_move.rb",
|
metadata
CHANGED
@@ -1,52 +1,42 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-copy_move-extension
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.4.6
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 2
|
8
|
-
- 4
|
9
|
-
- 5
|
10
|
-
version: 2.4.5
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Benny Degezelle
|
14
9
|
- Andrew vonderLuft
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
13
|
+
date: 2015-01-29 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: radiant
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
24
18
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: -2414235180
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 0
|
32
|
-
- 0
|
33
|
-
- rc
|
34
|
-
- 2
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
35
22
|
version: 1.0.0.rc2
|
36
23
|
type: :runtime
|
37
|
-
|
38
|
-
version_requirements:
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 1.0.0.rc2
|
39
31
|
description: With this extension you can copy or move a page with or without its children.
|
40
32
|
email: benny@gorilla-webdesign.be
|
41
33
|
executables: []
|
42
|
-
|
43
34
|
extensions: []
|
44
|
-
|
45
|
-
extra_rdoc_files:
|
35
|
+
extra_rdoc_files:
|
46
36
|
- LICENSE
|
47
37
|
- README.textile
|
48
38
|
- TODO
|
49
|
-
files:
|
39
|
+
files:
|
50
40
|
- HELP.rdoc
|
51
41
|
- LICENSE
|
52
42
|
- README.textile
|
@@ -64,6 +54,7 @@ files:
|
|
64
54
|
- config/locales/de.yml
|
65
55
|
- config/locales/en.yml
|
66
56
|
- config/locales/nl.yml
|
57
|
+
- config/locales/fr.yml
|
67
58
|
- config/routes.rb
|
68
59
|
- copy_move_extension.rb
|
69
60
|
- lib/copy_move.rb
|
@@ -82,36 +73,26 @@ files:
|
|
82
73
|
- spec/spec_helper.rb
|
83
74
|
homepage: https://github.com/jomz/radiant-copy-move
|
84
75
|
licenses: []
|
85
|
-
|
86
76
|
post_install_message:
|
87
77
|
rdoc_options: []
|
88
|
-
|
89
|
-
require_paths:
|
78
|
+
require_paths:
|
90
79
|
- lib
|
91
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
92
81
|
none: false
|
93
|
-
requirements:
|
94
|
-
- -
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
|
97
|
-
|
98
|
-
- 0
|
99
|
-
version: "0"
|
100
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
87
|
none: false
|
102
|
-
requirements:
|
103
|
-
- -
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
|
106
|
-
segments:
|
107
|
-
- 0
|
108
|
-
version: "0"
|
88
|
+
requirements:
|
89
|
+
- - ! '>='
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
109
92
|
requirements: []
|
110
|
-
|
111
93
|
rubyforge_project:
|
112
|
-
rubygems_version: 1.8.
|
94
|
+
rubygems_version: 1.8.23
|
113
95
|
signing_key:
|
114
96
|
specification_version: 3
|
115
97
|
summary: Copy/Move extension for Radiant CMS
|
116
98
|
test_files: []
|
117
|
-
|