active_leonardo 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +2 -0
- data/LICENSE +20 -0
- data/README.rdoc +157 -0
- data/active_template.rb +88 -0
- data/lib/generators/active_leonardo.rb +334 -0
- data/lib/generators/erb/leosca/leosca_generator.rb +122 -0
- data/lib/generators/leolay/USAGE +21 -0
- data/lib/generators/leolay/install_generator.rb +16 -0
- data/lib/generators/leolay/leolay_generator.rb +368 -0
- data/lib/generators/leolay/templates/app/admin/users.rb +63 -0
- data/lib/generators/leolay/templates/app/assets/javascripts/custom.js +10 -0
- data/lib/generators/leolay/templates/app/helpers/layout_helper.rb +27 -0
- data/lib/generators/leolay/templates/app/views/admin/users/_form.html.erb +21 -0
- data/lib/generators/leolay/templates/config.rb +11 -0
- data/lib/generators/leolay/templates/config/locales/en.yml +271 -0
- data/lib/generators/leolay/templates/config/locales/it.yml +298 -0
- data/lib/generators/leolay/templates/lib/development_mail_interceptor.rb +6 -0
- data/lib/generators/leolay/templates/lib/upd_activeadmin.rb +65 -0
- data/lib/generators/leolay/templates/lib/upd_array.rb +25 -0
- data/lib/generators/leolay/templates/styles/active/images/logo.png +0 -0
- data/lib/generators/leolay/templates/styles/active/images/style/Thumbs.db +0 -0
- data/lib/generators/leolay/templates/styles/active/images/style/ico_v.png +0 -0
- data/lib/generators/leolay/templates/styles/active/images/style/ico_x.png +0 -0
- data/lib/generators/leolay/templates/styles/active/stylesheets/app/_enviroment.css.scss +25 -0
- data/lib/generators/leolay/templates/styles/active/stylesheets/app/custom_active_admin.css.scss +23 -0
- data/lib/generators/leolay/templates/styles/active/stylesheets/app/stylesheet.css.scss +51 -0
- data/lib/generators/leolay/templates/styles/active/views/layout/_message.html.erb +3 -0
- data/lib/generators/leolay/templates/styles/active/views/layout/_session.html.erb +10 -0
- data/lib/generators/leolay/templates/styles/active/views/layout/application.html.erb +45 -0
- data/lib/generators/leosca/USAGE +23 -0
- data/lib/generators/leosca/install_generator.rb +16 -0
- data/lib/generators/rails/leosca/USAGE +40 -0
- data/lib/generators/rails/leosca/leosca_generator.rb +56 -0
- data/lib/generators/rails/leosca/templates/leosca.css +56 -0
- data/lib/generators/rails/leosca_controller/USAGE +23 -0
- data/lib/generators/rails/leosca_controller/leosca_controller_generator.rb +197 -0
- data/lib/generators/rails/leosca_controller/templates/controller.rb +3 -0
- metadata +117 -0
@@ -0,0 +1,63 @@
|
|
1
|
+
ActiveAdmin.register <%= options[:auth_class].capitalize %> do
|
2
|
+
menu :if => proc{ can?(:manage, <%= options[:auth_class].capitalize %>) }
|
3
|
+
controller.authorize_resource
|
4
|
+
|
5
|
+
config.sort_order = 'order asc'
|
6
|
+
|
7
|
+
controller do
|
8
|
+
def update
|
9
|
+
unless params[:<%= options[:auth_class].downcase %>]['password'] && params[:<%= options[:auth_class].downcase %>]['password'].size > 0
|
10
|
+
params[:<%= options[:auth_class].downcase %>].delete 'password'
|
11
|
+
params[:<%= options[:auth_class].downcase %>].delete 'password_confirmation'
|
12
|
+
end
|
13
|
+
super do
|
14
|
+
#do something
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
index do
|
20
|
+
id_column
|
21
|
+
#column :name
|
22
|
+
column :email
|
23
|
+
#column :login_ldap
|
24
|
+
#column :gruppo, :sortable => :gruppo_id
|
25
|
+
column :current_sign_in_at
|
26
|
+
column :current_sign_in_ip
|
27
|
+
#column :created_at
|
28
|
+
default_actions
|
29
|
+
end
|
30
|
+
|
31
|
+
form :partial => "form"
|
32
|
+
|
33
|
+
show do
|
34
|
+
attributes_table do
|
35
|
+
#row :gruppo do |<%= options[:auth_class].downcase %>|
|
36
|
+
# <%= options[:auth_class].downcase %>.gruppo ? <%= options[:auth_class].downcase %>.gruppo.try(:name) : "Unknown"
|
37
|
+
#end
|
38
|
+
#row :name
|
39
|
+
row :email
|
40
|
+
#row :login_ldap
|
41
|
+
row :current_sign_in_at
|
42
|
+
row :last_sign_in_at
|
43
|
+
row :sign_in_count
|
44
|
+
row :current_sign_in_ip
|
45
|
+
row :roles do |user|
|
46
|
+
user.roles.join ", "
|
47
|
+
end
|
48
|
+
row :created_at
|
49
|
+
row :updated_at
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
|
54
|
+
csv do
|
55
|
+
column :email
|
56
|
+
#column("Name") { |<%= options[:auth_class].downcase %>| <%= options[:auth_class].downcase %>.name }
|
57
|
+
#column("Group") { |<%= options[:auth_class].downcase %>| <%= options[:auth_class].downcase %>.group.try(:name) }
|
58
|
+
#column :login_ldap
|
59
|
+
column(I18n.t('attributes.<%= options[:auth_class].downcase %>.roles')) { |<%= options[:auth_class].downcase %>| <%= options[:auth_class].downcase %>.roles.join ", " }
|
60
|
+
column(I18n.t('attributes.created_at')) { |<%= options[:auth_class].downcase %>| <%= options[:auth_class].downcase %>.created_at.strftime("%d/%m/%Y") }
|
61
|
+
column(I18n.t('attributes.<%= options[:auth_class].downcase %>.last_sign_in_at')) { |<%= options[:auth_class].downcase %>| <%= options[:auth_class].downcase %>.last_sign_in_at.strftime("%d/%m/%Y") if <%= options[:auth_class].downcase %>.last_sign_in_at }
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
// Leonardo
|
2
|
+
// Use this file to add your javascript
|
3
|
+
|
4
|
+
$(document).ready(function() {
|
5
|
+
//Add this class to an input form to auto submit on change
|
6
|
+
$('.autosubmit').live('change', function() {
|
7
|
+
setTimeout("$('#"+this.id+"').parents('form:first').submit();", 300);
|
8
|
+
return false;
|
9
|
+
});
|
10
|
+
});
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# These helper methods can be called in your template to set variables to be used in the layout
|
2
|
+
# This module should be included in all views globally,
|
3
|
+
# to do so you may need to add this line to your ApplicationController
|
4
|
+
# helper :layout
|
5
|
+
module LayoutHelper
|
6
|
+
def title(page_title, show_title = true)
|
7
|
+
content_for(:title) { page_title.to_s }
|
8
|
+
@show_title = show_title
|
9
|
+
end
|
10
|
+
|
11
|
+
def show_title?
|
12
|
+
@show_title
|
13
|
+
end
|
14
|
+
|
15
|
+
def stylesheet(*args)
|
16
|
+
content_for(:head) { stylesheet_link_tag(*args) }
|
17
|
+
end
|
18
|
+
|
19
|
+
def javascript(*args)
|
20
|
+
content_for(:head) { javascript_include_tag(*args) }
|
21
|
+
end
|
22
|
+
|
23
|
+
#Search image from style path
|
24
|
+
def style_image_tag(name,args={})
|
25
|
+
image_tag("styles/#{CONFIG[:default_style]}/#{name}",args)
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<%%= semantic_form_for [:admin, @<%= options[:auth_class].downcase %>] do |f| %>
|
2
|
+
<%%= f.inputs do %>
|
3
|
+
<%%#= f.input :group %>
|
4
|
+
<%%= f.input :email, :input_html => { :maxlength => 100 } %>
|
5
|
+
<%%= f.input :password %>
|
6
|
+
<%%= f.input :password_confirmation %>
|
7
|
+
<li>
|
8
|
+
<%%= f.label :roles %>
|
9
|
+
<%% for role in <%= options[:auth_class].downcase.classify %>::ROLES %>
|
10
|
+
<%%= check_box_tag "<%= options[:auth_class].downcase %>[roles][]", role, @<%= options[:auth_class].downcase %>.roles.include?(role) %>
|
11
|
+
<%%= h role.humanize %>
|
12
|
+
<%% end %>
|
13
|
+
<%%= hidden_field_tag "<%= options[:auth_class].downcase %>[roles][]"%>
|
14
|
+
</li>
|
15
|
+
<%% end %>
|
16
|
+
<%%#= f.inputs "Optional informations" do %>
|
17
|
+
<%%#= f.input :name %>
|
18
|
+
<%%#= f.input :login_ldap %>
|
19
|
+
<%%# end %>
|
20
|
+
<%%= f.buttons :commit %>
|
21
|
+
<%% end %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Put here application's params
|
2
|
+
|
3
|
+
CONFIG = {
|
4
|
+
:application => {
|
5
|
+
:name => "<%= app_name %>",
|
6
|
+
:version => "0.0.1",
|
7
|
+
:started_at => "<%= Time.now.strftime('%d/%m/%Y') %>",
|
8
|
+
:updated_at => "<%= Time.now.strftime('%d/%m/%Y') %>"
|
9
|
+
},
|
10
|
+
:default_style => "<%= style_name %>"
|
11
|
+
}
|
@@ -0,0 +1,271 @@
|
|
1
|
+
en:
|
2
|
+
date:
|
3
|
+
formats:
|
4
|
+
# Use the strftime parameters for formats.
|
5
|
+
# When no format has been given, it uses default.
|
6
|
+
# You can provide other formats here if you like!
|
7
|
+
default: "%d-%m-%Y"
|
8
|
+
short: "%d %b"
|
9
|
+
long: "%d %B %Y"
|
10
|
+
only_day: "%e"
|
11
|
+
day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
|
12
|
+
abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
|
13
|
+
# Don't forget the nil at the beginning; there's no such thing as a 0th month
|
14
|
+
month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December]
|
15
|
+
abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
|
16
|
+
# Used in date_select and datetime_select.
|
17
|
+
order:
|
18
|
+
- :year
|
19
|
+
- :month
|
20
|
+
- :day
|
21
|
+
time:
|
22
|
+
formats:
|
23
|
+
default: "%a, %d %b %Y %H:%M:%S %z"
|
24
|
+
short: "%d %b %H:%M"
|
25
|
+
long: "%B %d, %Y %H:%M"
|
26
|
+
am: "am"
|
27
|
+
pm: "pm"
|
28
|
+
# Used in array.to_sentence.
|
29
|
+
support:
|
30
|
+
array:
|
31
|
+
words_connector: ", "
|
32
|
+
two_words_connector: " and "
|
33
|
+
last_word_connector: ", and "
|
34
|
+
number:
|
35
|
+
# Used in number_with_delimiter()
|
36
|
+
# These are also the defaults for 'currency', 'percentage', 'precision', and 'human'
|
37
|
+
format:
|
38
|
+
# Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5)
|
39
|
+
separator: "."
|
40
|
+
# Delimits thousands (e.g. 1,000,000 is a million) (always in groups of three)
|
41
|
+
delimiter: ","
|
42
|
+
# Number of decimals, behind the separator (the number 1 with a precision of 2 gives: 1.00)
|
43
|
+
precision: 3
|
44
|
+
# If set to true, precision will mean the number of significant digits instead
|
45
|
+
# of the number of decimal digits (1234 with precision 2 becomes 1200, 1.23543 becomes 1.2)
|
46
|
+
significant: false
|
47
|
+
# If set, the zeros after the decimal separator will always be stripped (eg.: 1.200 will be 1.2)
|
48
|
+
strip_insignificant_zeros: false
|
49
|
+
|
50
|
+
# Used in number_to_currency()
|
51
|
+
currency:
|
52
|
+
format:
|
53
|
+
# Where is the currency sign? %u is the currency unit, %n the number (default: $5.00)
|
54
|
+
format: "%u %n"
|
55
|
+
unit: "$"
|
56
|
+
# These five are to override number.format and are optional
|
57
|
+
separator: "."
|
58
|
+
delimiter: ","
|
59
|
+
precision: 2
|
60
|
+
significant: false
|
61
|
+
strip_insignificant_zeros: false
|
62
|
+
|
63
|
+
# Used in number_to_percentage()
|
64
|
+
percentage:
|
65
|
+
format:
|
66
|
+
# These five are to override number.format and are optional
|
67
|
+
# separator:
|
68
|
+
delimiter: ""
|
69
|
+
# precision:
|
70
|
+
# significant: false
|
71
|
+
# strip_insignificant_zeros: false
|
72
|
+
|
73
|
+
# Used in number_to_precision()
|
74
|
+
precision:
|
75
|
+
format:
|
76
|
+
# These five are to override number.format and are optional
|
77
|
+
# separator:
|
78
|
+
delimiter: ""
|
79
|
+
# precision:
|
80
|
+
# significant: false
|
81
|
+
# strip_insignificant_zeros: false
|
82
|
+
|
83
|
+
# Used in number_to_human_size() and number_to_human()
|
84
|
+
human:
|
85
|
+
format:
|
86
|
+
# These five are to override number.format and are optional
|
87
|
+
# separator:
|
88
|
+
delimiter: ""
|
89
|
+
precision: 3
|
90
|
+
significant: true
|
91
|
+
strip_insignificant_zeros: true
|
92
|
+
# Used in number_to_human_size()
|
93
|
+
storage_units:
|
94
|
+
# Storage units output formatting.
|
95
|
+
# %u is the storage unit, %n is the number (default: 2 MB)
|
96
|
+
format: "%n %u"
|
97
|
+
units:
|
98
|
+
byte:
|
99
|
+
one: "Byte"
|
100
|
+
other: "Bytes"
|
101
|
+
kb: "KB"
|
102
|
+
mb: "MB"
|
103
|
+
gb: "GB"
|
104
|
+
tb: "TB"
|
105
|
+
# Used in number_to_human()
|
106
|
+
decimal_units:
|
107
|
+
format: "%n %u"
|
108
|
+
# Decimal units output formatting
|
109
|
+
# By default we will only quantify some of the exponents
|
110
|
+
# but the commented ones might be defined or overridden
|
111
|
+
# by the user.
|
112
|
+
units:
|
113
|
+
# femto: Quadrillionth
|
114
|
+
# pico: Trillionth
|
115
|
+
# nano: Billionth
|
116
|
+
# micro: Millionth
|
117
|
+
# mili: Thousandth
|
118
|
+
# centi: Hundredth
|
119
|
+
# deci: Tenth
|
120
|
+
unit: ""
|
121
|
+
# ten:
|
122
|
+
# one: Ten
|
123
|
+
# other: Tens
|
124
|
+
# hundred: Hundred
|
125
|
+
thousand: "Thousand"
|
126
|
+
million: "Million"
|
127
|
+
billion: "Billion"
|
128
|
+
trillion: "Trillion"
|
129
|
+
quadrillion: "Quadrillion"
|
130
|
+
|
131
|
+
# Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
|
132
|
+
datetime:
|
133
|
+
distance_in_words:
|
134
|
+
half_a_minute: "half a minute"
|
135
|
+
less_than_x_seconds:
|
136
|
+
one: "less than 1 second"
|
137
|
+
other: "less than %{count} seconds"
|
138
|
+
x_seconds:
|
139
|
+
one: "1 second"
|
140
|
+
other: "%{count} seconds"
|
141
|
+
less_than_x_minutes:
|
142
|
+
one: "less than a minute"
|
143
|
+
other: "less than %{count} minutes"
|
144
|
+
x_minutes:
|
145
|
+
one: "1 minute"
|
146
|
+
other: "%{count} minutes"
|
147
|
+
about_x_hours:
|
148
|
+
one: "about 1 hour"
|
149
|
+
other: "about %{count} hours"
|
150
|
+
x_days:
|
151
|
+
one: "1 day"
|
152
|
+
other: "%{count} days"
|
153
|
+
about_x_months:
|
154
|
+
one: "about 1 month"
|
155
|
+
other: "about %{count} months"
|
156
|
+
x_months:
|
157
|
+
one: "1 month"
|
158
|
+
other: "%{count} months"
|
159
|
+
about_x_years:
|
160
|
+
one: "about 1 year"
|
161
|
+
other: "about %{count} years"
|
162
|
+
over_x_years:
|
163
|
+
one: "over 1 year"
|
164
|
+
other: "over %{count} years"
|
165
|
+
almost_x_years:
|
166
|
+
one: "almost 1 year"
|
167
|
+
other: "almost %{count} years"
|
168
|
+
prompts:
|
169
|
+
year: "Year"
|
170
|
+
month: "Month"
|
171
|
+
day: "Day"
|
172
|
+
hour: "Hour"
|
173
|
+
minute: "Minute"
|
174
|
+
second: "Seconds"
|
175
|
+
|
176
|
+
helpers:
|
177
|
+
select:
|
178
|
+
# Default value for :prompt => true in FormOptionsHelper
|
179
|
+
prompt: "Please select"
|
180
|
+
# Default translation keys for submit FormHelper
|
181
|
+
submit: &actions
|
182
|
+
create: "Create %{model}"
|
183
|
+
update: "Update"
|
184
|
+
submit: "Proceed"
|
185
|
+
|
186
|
+
activerecord: &activerecord
|
187
|
+
models: &models
|
188
|
+
attributes: &attributes
|
189
|
+
id: "Id"
|
190
|
+
created_at: "Created at"
|
191
|
+
updated_at: "Updated at"
|
192
|
+
#Attributes zone - do not remove
|
193
|
+
|
194
|
+
formtastic:
|
195
|
+
titles:
|
196
|
+
labels:
|
197
|
+
<<: *attributes
|
198
|
+
hints:
|
199
|
+
actions:
|
200
|
+
<<: *actions
|
201
|
+
authentication:
|
202
|
+
sign_in: "Sign in"
|
203
|
+
sign_in_with: "Sign in with"
|
204
|
+
sign_out: "Sign out"
|
205
|
+
sign_up: "Sign up"
|
206
|
+
signed_in_as: "Signed in as"
|
207
|
+
not_you: "Not you?"
|
208
|
+
remember_me: "Remember me"
|
209
|
+
password_confirmation: "Password confirmation"
|
210
|
+
forgot_password?: "Forgot your password?"
|
211
|
+
didnt_receive_confirmation_instruction?: "Didn't receive confirmation instructions?"
|
212
|
+
didnt_receive_unlock_instruction?: "Didn't receive unlock instructions?"
|
213
|
+
cancel_my_account: "Cancel my account"
|
214
|
+
send_me_reset_password_instruction: "Send me reset password instructions"
|
215
|
+
change_password: "Change password"
|
216
|
+
current_password: "Current password"
|
217
|
+
new_password: "New password"
|
218
|
+
states:
|
219
|
+
generic:
|
220
|
+
new: "New"
|
221
|
+
waiting: "Waiting"
|
222
|
+
working: "Working"
|
223
|
+
canceled: "Canceled"
|
224
|
+
completed: "Completed"
|
225
|
+
closed: "Closed"
|
226
|
+
|
227
|
+
unknown_request: "Sorry, this request is unknown and cannot be processed"
|
228
|
+
generic_error: "An error was occured and doesn't permit to execute this operation"
|
229
|
+
permission_denied: "You don't have authorization to perform this request."
|
230
|
+
created: "%{model} was successfully created."
|
231
|
+
created_ko: "An error prohibited %{model} to be created."
|
232
|
+
created_multiple: "%{model} were successfully created."
|
233
|
+
created_multiple_ko: "An error prohibited %{model} to be created."
|
234
|
+
updated: "%{model} was successfully updated."
|
235
|
+
updated_ko: "An error prohibited %{model} to be updated."
|
236
|
+
updated_multiple: "%{model} were successfully updated."
|
237
|
+
updated_multiple_ko: "An error prohibited %{model} to be updated."
|
238
|
+
deleted: "%{model} was successfully deleted."
|
239
|
+
deleted_ko: "An error prohibited %{model} to be deleted."
|
240
|
+
deleted_multiple: "%{model} were successfully deleted."
|
241
|
+
deleted_multiple_ko: "An error prohibited %{model} to be deleted."
|
242
|
+
search_found: "%{found} found"
|
243
|
+
search_not_found: "The search did not get any results"
|
244
|
+
select_rows_from_list: "Select the rows from the list before proceeding"
|
245
|
+
|
246
|
+
<<: *activerecord
|
247
|
+
<<: *actions
|
248
|
+
|
249
|
+
list: "List"
|
250
|
+
save: "Save"
|
251
|
+
create: "Create"
|
252
|
+
update: "Update"
|
253
|
+
edit: "Edit"
|
254
|
+
delete: "Delete"
|
255
|
+
destroy: "Destroy"
|
256
|
+
new: "New"
|
257
|
+
copy: "Copy"
|
258
|
+
back: "Back"
|
259
|
+
back_to_list: "Back to List"
|
260
|
+
show: "Show"
|
261
|
+
show_all: "Show all"
|
262
|
+
sure?: "Are you sure?"
|
263
|
+
add: "Add"
|
264
|
+
create: "Create"
|
265
|
+
update: "Update"
|
266
|
+
search: "Search"
|
267
|
+
radio-yes: "Yes"
|
268
|
+
radio-no: "No"
|
269
|
+
radio-all: "All"
|
270
|
+
loading: "Loading..."
|
271
|
+
choose_language: "Choose language"
|
@@ -0,0 +1,298 @@
|
|
1
|
+
it:
|
2
|
+
date:
|
3
|
+
formats:
|
4
|
+
# Use the strftime parameters for formats.
|
5
|
+
# When no format has been given, it uses default.
|
6
|
+
# You can provide other formats here if you like!
|
7
|
+
default: "%d-%m-%Y"
|
8
|
+
short: "%d %b"
|
9
|
+
long: "%d %B %Y"
|
10
|
+
only_day: "%e"
|
11
|
+
day_names: [Domenica, Lunedì, Martedì, Mercoledì, Giovedì, Venerdì, Sabato]
|
12
|
+
abbr_day_names: [Dom, Lun, Mar, Mer, Gio, Ven, Sab]
|
13
|
+
# Don't forget the nil at the beginning; there's no such thing as a 0th month
|
14
|
+
month_names: [~, Gennaio, Febbraio, Marzo, Aprile, Maggio, Giugno, Luglio, Agosto, Settembre, Ottobre, Novembre, Dicembre]
|
15
|
+
abbr_month_names: [~, Gen, Feb, Mar, Apr, Mag, Giu, Lug, Ago, Set, Ott, Nov, Dic]
|
16
|
+
# Used in date_select and datetime_select.
|
17
|
+
order:
|
18
|
+
- :year
|
19
|
+
- :month
|
20
|
+
- :day
|
21
|
+
time:
|
22
|
+
formats:
|
23
|
+
default: "%a %d %b %Y, %H:%M:%S %z"
|
24
|
+
time: "%H:%M"
|
25
|
+
short: "%d %b %H:%M"
|
26
|
+
long: "%d %B %Y %H:%M"
|
27
|
+
only_second: "%S"
|
28
|
+
datetime:
|
29
|
+
formats:
|
30
|
+
default: "%d-%m-%YT%H:%M:%S%Z"
|
31
|
+
am: 'am'
|
32
|
+
pm: 'pm'
|
33
|
+
# Used in array.to_sentence.
|
34
|
+
support:
|
35
|
+
array:
|
36
|
+
words_connector: ", "
|
37
|
+
two_words_connector: " e "
|
38
|
+
last_word_connector: ", e "
|
39
|
+
number:
|
40
|
+
# Used in number_with_delimiter()
|
41
|
+
# These are also the defaults for 'currency', 'percentage', 'precision', and 'human'
|
42
|
+
format:
|
43
|
+
# Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5)
|
44
|
+
separator: ","
|
45
|
+
# Delimits thousands (e.g. 1,000,000 is a million) (always in groups of three)
|
46
|
+
delimiter: "."
|
47
|
+
# Number of decimals, behind the separator (the number 1 with a precision of 2 gives: 1.00)
|
48
|
+
precision: 3
|
49
|
+
# If set to true, precision will mean the number of significant digits instead
|
50
|
+
# of the number of decimal digits (1234 with precision 2 becomes 1200, 1.23543 becomes 1.2)
|
51
|
+
significant: false
|
52
|
+
# If set, the zeros after the decimal separator will always be stripped (eg.: 1.200 will be 1.2)
|
53
|
+
strip_insignificant_zeros: false
|
54
|
+
currency:
|
55
|
+
format:
|
56
|
+
# Where is the currency sign? %u is the currency unit, %n the number (default: $5.00)
|
57
|
+
format: "%n %u"
|
58
|
+
unit: "€"
|
59
|
+
# These five are to override number.format and are optional
|
60
|
+
separator: ","
|
61
|
+
delimiter: "."
|
62
|
+
precision: 2
|
63
|
+
significant: false
|
64
|
+
strip_insignificant_zeros: false
|
65
|
+
# Used in number_to_percentage()
|
66
|
+
percentage:
|
67
|
+
format:
|
68
|
+
# These five are to override number.format and are optional
|
69
|
+
# separator:
|
70
|
+
delimiter: ""
|
71
|
+
# precision:
|
72
|
+
# significant: false
|
73
|
+
# strip_insignificant_zeros: false
|
74
|
+
|
75
|
+
# Used in number_to_precision()
|
76
|
+
precision:
|
77
|
+
format:
|
78
|
+
# These five are to override number.format and are optional
|
79
|
+
# separator:
|
80
|
+
delimiter: ""
|
81
|
+
# precision:
|
82
|
+
# significant: false
|
83
|
+
# strip_insignificant_zeros: false
|
84
|
+
|
85
|
+
# Used in number_to_human_size() and number_to_human()
|
86
|
+
human:
|
87
|
+
format:
|
88
|
+
# These five are to override number.format and are optional
|
89
|
+
# separator:
|
90
|
+
delimiter: ""
|
91
|
+
precision: 3
|
92
|
+
significant: true
|
93
|
+
strip_insignificant_zeros: true
|
94
|
+
# Used in number_to_human_size()
|
95
|
+
storage_units:
|
96
|
+
# Storage units output formatting.
|
97
|
+
# %u is the storage unit, %n is the number (default: 2 MB)
|
98
|
+
format: "%n %u"
|
99
|
+
units:
|
100
|
+
byte:
|
101
|
+
one: "Byte"
|
102
|
+
other: "Bytes"
|
103
|
+
kb: "KB"
|
104
|
+
mb: "MB"
|
105
|
+
gb: "GB"
|
106
|
+
tb: "TB"
|
107
|
+
# Used in number_to_human()
|
108
|
+
decimal_units:
|
109
|
+
format: "%n %u"
|
110
|
+
# Decimal units output formatting
|
111
|
+
# By default we will only quantify some of the exponents
|
112
|
+
# but the commented ones might be defined or overridden
|
113
|
+
# by the user.
|
114
|
+
units:
|
115
|
+
# femto: Quadrillionth
|
116
|
+
# pico: Trillionth
|
117
|
+
# nano: Billionth
|
118
|
+
# micro: Millionth
|
119
|
+
# mili: Thousandth
|
120
|
+
# centi: Hundredth
|
121
|
+
# deci: Tenth
|
122
|
+
unit: ""
|
123
|
+
# ten:
|
124
|
+
# one: Ten
|
125
|
+
# other: Tens
|
126
|
+
# hundred: Hundred
|
127
|
+
thousand: "Migliaia"
|
128
|
+
million: "Milioni"
|
129
|
+
billion: "Bilioni"
|
130
|
+
trillion: "Trilioni"
|
131
|
+
quadrillion: "Quadrilioni"
|
132
|
+
# Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
|
133
|
+
datetime:
|
134
|
+
distance_in_words:
|
135
|
+
half_a_minute: "mezzo minuto"
|
136
|
+
less_than_x_seconds:
|
137
|
+
one: "meno di un secondo"
|
138
|
+
other: "meno di {{count} secondi"
|
139
|
+
x_seconds:
|
140
|
+
one: "1 secondo"
|
141
|
+
other: "{{count} secondi"
|
142
|
+
less_than_x_minutes:
|
143
|
+
one: "meno di un minuto"
|
144
|
+
other: "meno di {{count} minuti"
|
145
|
+
x_minutes:
|
146
|
+
one: "1 minuto"
|
147
|
+
other: "{{count} minuti"
|
148
|
+
about_x_hours:
|
149
|
+
one: "circa un'ora"
|
150
|
+
other: "circa {{count} ore"
|
151
|
+
x_days:
|
152
|
+
one: "1 giorno"
|
153
|
+
other: "{{count} giorni"
|
154
|
+
about_x_months:
|
155
|
+
one: "circa un mese"
|
156
|
+
other: "circa {{count} mesi"
|
157
|
+
x_months:
|
158
|
+
one: "1 mese"
|
159
|
+
other: "{{count} mesi"
|
160
|
+
about_x_years:
|
161
|
+
one: "circa un anno"
|
162
|
+
other: "circa {{count} anni"
|
163
|
+
over_x_years:
|
164
|
+
one: "oltre un anno"
|
165
|
+
other: "oltre {{count} anni"
|
166
|
+
prompts:
|
167
|
+
year: "Anno"
|
168
|
+
month: "Mese"
|
169
|
+
day: "Giorno"
|
170
|
+
hour: "Ora"
|
171
|
+
minute: "Minuto"
|
172
|
+
second: "Secondo"
|
173
|
+
|
174
|
+
helpers:
|
175
|
+
select:
|
176
|
+
# Default value for :prompt => true in FormOptionsHelper
|
177
|
+
prompt: "Seleziona ..."
|
178
|
+
# Default translation keys for submit FormHelper
|
179
|
+
submit: &actions
|
180
|
+
create: "Crea %{model}"
|
181
|
+
update: "Aggiorna"
|
182
|
+
submit: "Procedi"
|
183
|
+
|
184
|
+
activerecord: &activerecord
|
185
|
+
models: &models
|
186
|
+
attributes: &attributes
|
187
|
+
id: "Id"
|
188
|
+
created_at: "Data creazione"
|
189
|
+
updated_at: "Data modifica"
|
190
|
+
#Attributes zone - do not remove
|
191
|
+
errors:
|
192
|
+
template:
|
193
|
+
header:
|
194
|
+
one: "Non posso salvare questo %{model}: 1 errore"
|
195
|
+
other: "Non posso salvare questo %{model}: %{count} errori."
|
196
|
+
body: "Per favore ricontrolla i seguenti campi:"
|
197
|
+
messages:
|
198
|
+
inclusion: "non è incluso nella lista"
|
199
|
+
exclusion: "è riservato"
|
200
|
+
invalid: "non è valido"
|
201
|
+
confirmation: "non coincide con la conferma"
|
202
|
+
accepted: "deve essere accettata"
|
203
|
+
empty: "non può essere vuoto"
|
204
|
+
blank: "non può essere lasciato in bianco"
|
205
|
+
too_long: "è troppo lungo (il massimo è %{count} lettere)"
|
206
|
+
too_short: "è troppo corto (il minimo è %{count} lettere)"
|
207
|
+
wrong_length: "è della lunghezza sbagliata (deve essere di %{count} lettere)"
|
208
|
+
taken: "è già in uso"
|
209
|
+
not_a_number: "non è un numero"
|
210
|
+
greater_than: "deve essere superiore a %{count}"
|
211
|
+
greater_than_or_equal_to: "deve essere superiore o uguale a %{count}"
|
212
|
+
equal_to: "deve essere uguale a %{count}"
|
213
|
+
less_than: "deve essere meno di %{count}"
|
214
|
+
less_than_or_equal_to: "deve essere meno o uguale a %{count}"
|
215
|
+
odd: "deve essere dispari"
|
216
|
+
even: "deve essere pari"
|
217
|
+
template:
|
218
|
+
header:
|
219
|
+
one: "un errore impedisce il salvataggio di: %{model}"
|
220
|
+
other: "%{count} errori impediscono il salvataggio di: %{model}"
|
221
|
+
# The variable :count is also available
|
222
|
+
body: "Ci sono stati problemi con i seguenti campi:"
|
223
|
+
formtastic:
|
224
|
+
titles:
|
225
|
+
labels:
|
226
|
+
<<: *attributes
|
227
|
+
hints:
|
228
|
+
actions:
|
229
|
+
<<: *actions
|
230
|
+
authentication:
|
231
|
+
sign_in: "Accedi"
|
232
|
+
sign_in_with: "Accedi con"
|
233
|
+
sign_out: "Disconnetti"
|
234
|
+
sign_up: "Registrati"
|
235
|
+
signed_in_as: "Sei connesso come"
|
236
|
+
not_you: "Non sei tu?"
|
237
|
+
remember_me: "Memorizza i miei dati"
|
238
|
+
password_confirmation: "Conferma la password"
|
239
|
+
forgot_password?: "Password dimenticata?"
|
240
|
+
didnt_receive_confirmation_instruction?: "Non hai ricevuto le istruzioni per la conferma?"
|
241
|
+
didnt_receive_unlock_instruction?: "Non hai ricevuto le istruzioni per lo sblocco?"
|
242
|
+
cancel_my_account: "Cancella il mio profilo"
|
243
|
+
send_me_reset_password_instruction: "Inviami le istruzioni per il reset password"
|
244
|
+
change_password: "Cambia la password"
|
245
|
+
current_password: "Password attuale"
|
246
|
+
new_password: "Nuova password"
|
247
|
+
states:
|
248
|
+
generic:
|
249
|
+
new: "Nuovo"
|
250
|
+
waiting: "Attesa"
|
251
|
+
working: "Lavorazione"
|
252
|
+
canceled: "Eliminato"
|
253
|
+
completed: "Completato"
|
254
|
+
closed: "Chiuso"
|
255
|
+
|
256
|
+
unknown_request: "Spiacente, richiesta sconosciuta, non è possibile eseguirla"
|
257
|
+
generic_error: "Un errore impedisce di svolgere questa operazione"
|
258
|
+
permission_denied: "Non hai i privilegi per svolgere questa operazione."
|
259
|
+
created: "L'oggetto %{model} è stato creato correttamente."
|
260
|
+
created_ko: "Un errore ha impedito la creazione dell'oggetto %{model}."
|
261
|
+
created_multiple: "La creazione di %{model} è stata completata con successo."
|
262
|
+
created_multiple_ko: "Un errore ha impedito la creazione di %{model}."
|
263
|
+
updated: "L'oggetto %{model} è stato modificato correttamente."
|
264
|
+
updated_ko: "Un errore ha impedito la modifica dell'oggetto %{model}."
|
265
|
+
updated_multiple: "La modifica di %{model} è avvenuta con successo."
|
266
|
+
updated_multiple_ko: "Un errore ha impedito la modifica di %{model}."
|
267
|
+
deleted: "L'oggetto %{model} è stato eliminato."
|
268
|
+
updated_ko: "Un errore ha impedito l'eliminazione dell'oggetto %{model}."
|
269
|
+
deleted_multiple: "L'eliminazione di %{model} è avvenuta con successo."
|
270
|
+
deleted_multiple_ko: "Un errore ha impedito l'eliminazione di %{model}."
|
271
|
+
search_found: "La ricerca ha trovato %{found}"
|
272
|
+
search_not_found: "La ricerca non ha ottenuto risultati"
|
273
|
+
select_rows_from_list: "Seleziona le righe dalla lista prima di procedere"
|
274
|
+
|
275
|
+
<<: *activerecord
|
276
|
+
<<: *actions
|
277
|
+
|
278
|
+
list: "Lista"
|
279
|
+
save: "Salva"
|
280
|
+
edit: "Modifica"
|
281
|
+
delete: "Cancella"
|
282
|
+
destroy: "Elimina"
|
283
|
+
new: "Nuovo"
|
284
|
+
copy: "Copia"
|
285
|
+
back: "Indietro"
|
286
|
+
back_to_list: "Torna alla Lista"
|
287
|
+
show: "Visualizza"
|
288
|
+
show_all: "Mostra tutti"
|
289
|
+
sure?: "Sei sicuro?"
|
290
|
+
add: "Aggiungi"
|
291
|
+
create: "Crea"
|
292
|
+
update: "Aggiorna"
|
293
|
+
search: "Cerca"
|
294
|
+
radio-yes: "Si"
|
295
|
+
radio-no: "No"
|
296
|
+
radio-all: "Tutto"
|
297
|
+
loading: "Attendere..."
|
298
|
+
choose_language: "Scegli la lingua"
|