spree_banner 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/config/locales/en.yml +79 -0
- data/config/locales/it.yml +79 -0
- data/config/routes.rb +5 -0
- data/db/migrate/20120116204313_create_banners.rb +18 -0
- metadata +8 -4
@@ -0,0 +1,79 @@
|
|
1
|
+
---
|
2
|
+
en:
|
3
|
+
activerecord:
|
4
|
+
errors: &errors
|
5
|
+
format: "%{attribute} %{message}\n"
|
6
|
+
|
7
|
+
messages: &errors_messages
|
8
|
+
inclusion: "is not included in the list"
|
9
|
+
exclusion: "is reserved"
|
10
|
+
invalid: "is invalid"
|
11
|
+
confirmation: "doesn't match confirmation"
|
12
|
+
record_invalid: "Validation failed: %{errors}"
|
13
|
+
taken: has already been taken
|
14
|
+
accepted: "must be accepted"
|
15
|
+
empty: "can't be empty"
|
16
|
+
blank: "can't be blank"
|
17
|
+
too_long:
|
18
|
+
one: "is too long (maximum is 1 character)"
|
19
|
+
other: "is too long (maximum is %{count} characters)"
|
20
|
+
too_short:
|
21
|
+
one: "is too short (minimum is 1 character)"
|
22
|
+
other: "is too short (minimum is %{count} characters)"
|
23
|
+
wrong_length:
|
24
|
+
one: "is the wrong length (should be 1 character)"
|
25
|
+
other: "is the wrong length (should be %{count} characters)"
|
26
|
+
not_a_number: "is not a number"
|
27
|
+
not_an_integer: "must be an integer"
|
28
|
+
greater_than: "must be greater than %{count}"
|
29
|
+
greater_than_or_equal_to: "must be greater than or equal to %{count}"
|
30
|
+
equal_to: "must be equal to %{count}"
|
31
|
+
less_than: "must be less than %{count}"
|
32
|
+
less_than_or_equal_to: "must be less than or equal to %{count}"
|
33
|
+
odd: "must be odd"
|
34
|
+
even: "must be even"
|
35
|
+
|
36
|
+
models:
|
37
|
+
banner:
|
38
|
+
attributes:
|
39
|
+
banner:
|
40
|
+
category: Category
|
41
|
+
enabled: Enable?
|
42
|
+
url: Link to product or taxonomy or to external website
|
43
|
+
attachment_width: Width image
|
44
|
+
attachment_height: Height image
|
45
|
+
attachment: Image
|
46
|
+
attachment_file_name: Image Name
|
47
|
+
position: Position (if there are other banners with the same category)
|
48
|
+
attributes:
|
49
|
+
banner:
|
50
|
+
category: Category
|
51
|
+
enabled: Enable?
|
52
|
+
url: Link to product or taxonomy or to external website
|
53
|
+
attachment_width: Width image
|
54
|
+
attachment_height: Height image
|
55
|
+
attachment: Image
|
56
|
+
position: Position (if there are other banners with the same category)
|
57
|
+
models:
|
58
|
+
banner:
|
59
|
+
one: Banner
|
60
|
+
many: Banners
|
61
|
+
|
62
|
+
banner:
|
63
|
+
one: Banner
|
64
|
+
many: Banners
|
65
|
+
enable: Enable?
|
66
|
+
enabled: Enable?
|
67
|
+
category: Category
|
68
|
+
no_image: No Image Yet
|
69
|
+
attachment_width: Width image
|
70
|
+
attachment_height: Height image
|
71
|
+
position: Position (if there are other banners with the same category)
|
72
|
+
url: Link to product or taxonomy or to external website
|
73
|
+
image:
|
74
|
+
one: Image
|
75
|
+
many: Images
|
76
|
+
banner_desc: Manage banner.
|
77
|
+
new_banner: New banner
|
78
|
+
editing_banner: Edit banner
|
79
|
+
confirm_delete: Are you sure?
|
@@ -0,0 +1,79 @@
|
|
1
|
+
---
|
2
|
+
it:
|
3
|
+
activerecord:
|
4
|
+
errors: &errors
|
5
|
+
format: "%{attribute} %{message}\n"
|
6
|
+
|
7
|
+
messages: &errors_messages
|
8
|
+
inclusion: "non è incluso nella lista"
|
9
|
+
exclusion: "è riservato"
|
10
|
+
invalid: "non è valido"
|
11
|
+
confirmation: "non coincide con la conferma"
|
12
|
+
record_invalid: "Validazione fallita: %{errors}"
|
13
|
+
taken: è già in uso
|
14
|
+
accepted: "deve essere accettata"
|
15
|
+
empty: "non può essere vuoto"
|
16
|
+
blank: "non può essere lasciato in bianco"
|
17
|
+
too_long:
|
18
|
+
one: "è troppo lungo (il massimo è 1 carattere)"
|
19
|
+
other: "è troppo lungo (il massimo è %{count} caratteri)"
|
20
|
+
too_short:
|
21
|
+
one: "è troppo corto (il minimo è 1 carattere)"
|
22
|
+
other: "è troppo corto (il minimo è %{count} caratteri)"
|
23
|
+
wrong_length:
|
24
|
+
one: "è della lunghezza sbagliata (deve essere di 1 carattere)"
|
25
|
+
other: "è della lunghezza sbagliata (deve essere di %{count} caratteri)"
|
26
|
+
not_a_number: "non è un numero"
|
27
|
+
not_an_integer: "non è un intero"
|
28
|
+
greater_than: "deve essere superiore a %{count}"
|
29
|
+
greater_than_or_equal_to: "deve essere superiore o uguale a %{count}"
|
30
|
+
equal_to: "deve essere uguale a %{count}"
|
31
|
+
less_than: "deve essere meno di %{count}"
|
32
|
+
less_than_or_equal_to: "deve essere meno o uguale a %{count}"
|
33
|
+
odd: "deve essere dispari"
|
34
|
+
even: "deve essere pari"
|
35
|
+
|
36
|
+
models:
|
37
|
+
banner:
|
38
|
+
attributes:
|
39
|
+
banner:
|
40
|
+
category: Categoria
|
41
|
+
enabled: Attivo?
|
42
|
+
url: Link a prodotto o tassonomia o a sito esterno
|
43
|
+
attachment_width: Larghezza immagine
|
44
|
+
attachment_height: Altezza immagine
|
45
|
+
attachment: Immagine
|
46
|
+
attachment_file_name: Nome immagine
|
47
|
+
position: Posizione (se esistono altri banner con la stessa categoria)
|
48
|
+
attributes:
|
49
|
+
banner:
|
50
|
+
category: Categoria
|
51
|
+
enabled: Attivo?
|
52
|
+
url: Link a prodotto o tassonomia o a sito esterno
|
53
|
+
attachment_width: Larghezza immagine
|
54
|
+
attachment_height: Altezza immagine
|
55
|
+
attachment: Immagine
|
56
|
+
position: Posizione (se esistono altri banner con la stessa categoria)
|
57
|
+
models:
|
58
|
+
banner:
|
59
|
+
one: Banner
|
60
|
+
many: Banners
|
61
|
+
|
62
|
+
banner:
|
63
|
+
one: Banner
|
64
|
+
many: Banners
|
65
|
+
enable: Attivo?
|
66
|
+
category: Categoria
|
67
|
+
no_image: Nessuna immagine caricata
|
68
|
+
attachment_width: Larghezza immagine banner
|
69
|
+
attachment_height: Altezza immagine banner
|
70
|
+
position: Posizione (se esistono altri banner con la stessa categoria)
|
71
|
+
enabled: Attivo?
|
72
|
+
url: Link a prodotto o tassonomia o a sito esterno
|
73
|
+
image:
|
74
|
+
one: Immagine
|
75
|
+
many: Immagini
|
76
|
+
banner_desc: Gestione banner.
|
77
|
+
new_banner: Nuovo banner
|
78
|
+
editing_banner: Modifica banner
|
79
|
+
confirm_delete: Sei sicuro?
|
data/config/routes.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
class CreateBanners < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :spree_banners do |t|
|
4
|
+
t.string :title, :url
|
5
|
+
t.string :category
|
6
|
+
t.integer :position
|
7
|
+
t.boolean :enabled
|
8
|
+
|
9
|
+
t.string :attachment_content_type, :attachment_file_name, :attachment_content_type
|
10
|
+
t.datetime :attachment_updated_at
|
11
|
+
t.integer :attachment_width, :attachment_height, :default => 100
|
12
|
+
t.integer :attachment_size, :position
|
13
|
+
t.string :type, :limit => 75
|
14
|
+
|
15
|
+
t.timestamps
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_banner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Damiano Giacomello
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-03-
|
18
|
+
date: 2012-03-22 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: spree_core
|
@@ -115,6 +115,10 @@ files:
|
|
115
115
|
- app/views/spree/admin/banners/edit.html.erb
|
116
116
|
- app/views/spree/admin/banners/index.html.erb
|
117
117
|
- app/views/spree/admin/banners/new.html.erb
|
118
|
+
- db/migrate/20120116204313_create_banners.rb
|
119
|
+
- config/locales/en.yml
|
120
|
+
- config/locales/it.yml
|
121
|
+
- config/routes.rb
|
118
122
|
homepage:
|
119
123
|
licenses: []
|
120
124
|
|