leonardo 1.3.0

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.
Files changed (69) hide show
  1. data/CHANGELOG +58 -0
  2. data/LICENSE +20 -0
  3. data/README.rdoc +115 -0
  4. data/lib/generators/erb/leosca/leosca_generator.rb +73 -0
  5. data/lib/generators/erb/leosca/templates/_form.html.erb +23 -0
  6. data/lib/generators/erb/leosca/templates/_list.erb +47 -0
  7. data/lib/generators/erb/leosca/templates/destroy.js.erb +1 -0
  8. data/lib/generators/erb/leosca/templates/edit.html.erb +11 -0
  9. data/lib/generators/erb/leosca/templates/formtastic/_form.html.erb +10 -0
  10. data/lib/generators/erb/leosca/templates/index.html.erb +35 -0
  11. data/lib/generators/erb/leosca/templates/index.js.erb +1 -0
  12. data/lib/generators/erb/leosca/templates/new.html.erb +7 -0
  13. data/lib/generators/erb/leosca/templates/show.html.erb +13 -0
  14. data/lib/generators/leolay/USAGE +21 -0
  15. data/lib/generators/leolay/leolay_generator.rb +195 -0
  16. data/lib/generators/leolay/templates/app/assets/stylesheets/formtastic.css +145 -0
  17. data/lib/generators/leolay/templates/app/assets/stylesheets/formtastic_changes.css +16 -0
  18. data/lib/generators/leolay/templates/app/views/devise/confirmations/new.html.erb +12 -0
  19. data/lib/generators/leolay/templates/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  20. data/lib/generators/leolay/templates/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  21. data/lib/generators/leolay/templates/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  22. data/lib/generators/leolay/templates/app/views/devise/passwords/edit.html.erb +16 -0
  23. data/lib/generators/leolay/templates/app/views/devise/passwords/new.html.erb +12 -0
  24. data/lib/generators/leolay/templates/app/views/devise/registrations/edit.html.erb +25 -0
  25. data/lib/generators/leolay/templates/app/views/devise/registrations/new.html.erb +18 -0
  26. data/lib/generators/leolay/templates/app/views/devise/sessions/new.html.erb +17 -0
  27. data/lib/generators/leolay/templates/app/views/devise/shared/_links.erb +25 -0
  28. data/lib/generators/leolay/templates/app/views/devise/unlocks/new.html.erb +12 -0
  29. data/lib/generators/leolay/templates/config/locales/devise.en.yml +53 -0
  30. data/lib/generators/leolay/templates/config/locales/devise.it.yml +51 -0
  31. data/lib/generators/leolay/templates/config/locales/en.yml +79 -0
  32. data/lib/generators/leolay/templates/config/locales/it.yml +176 -0
  33. data/lib/generators/leolay/templates/config/locales/kaminari.en.yml +10 -0
  34. data/lib/generators/leolay/templates/config/locales/kaminari.it.yml +10 -0
  35. data/lib/generators/leolay/templates/config.rb +11 -0
  36. data/lib/generators/leolay/templates/layout_helper.rb +39 -0
  37. data/lib/generators/leolay/templates/lib/utility.rb +48 -0
  38. data/lib/generators/leolay/templates/styles/cloudy/images/kaminari/nav.png +0 -0
  39. data/lib/generators/leolay/templates/styles/cloudy/images/style/bg_but_gray.png +0 -0
  40. data/lib/generators/leolay/templates/styles/cloudy/images/style/bg_top.png +0 -0
  41. data/lib/generators/leolay/templates/styles/cloudy/images/style/button_170_126.png +0 -0
  42. data/lib/generators/leolay/templates/styles/cloudy/images/style/button_229_170.png +0 -0
  43. data/lib/generators/leolay/templates/styles/cloudy/images/style/ico_back.png +0 -0
  44. data/lib/generators/leolay/templates/styles/cloudy/images/style/ico_next.png +0 -0
  45. data/lib/generators/leolay/templates/styles/cloudy/images/style/ico_v.png +0 -0
  46. data/lib/generators/leolay/templates/styles/cloudy/images/style/ico_x.png +0 -0
  47. data/lib/generators/leolay/templates/styles/cloudy/images/style/input_background_bn.png +0 -0
  48. data/lib/generators/leolay/templates/styles/cloudy/images/style/logo.png +0 -0
  49. data/lib/generators/leolay/templates/styles/cloudy/images/style/msg_error.gif +0 -0
  50. data/lib/generators/leolay/templates/styles/cloudy/images/style/msg_notice.gif +0 -0
  51. data/lib/generators/leolay/templates/styles/cloudy/stylesheet.sass +341 -0
  52. data/lib/generators/leolay/templates/styles/cloudy/views/kaminari/_next_page.html.erb +5 -0
  53. data/lib/generators/leolay/templates/styles/cloudy/views/kaminari/_page.html.erb +5 -0
  54. data/lib/generators/leolay/templates/styles/cloudy/views/kaminari/_paginator.html.erb +7 -0
  55. data/lib/generators/leolay/templates/styles/cloudy/views/kaminari/_prev_page.html.erb +5 -0
  56. data/lib/generators/leolay/templates/styles/cloudy/views/layout/_layout.html.erb +38 -0
  57. data/lib/generators/leolay/templates/styles/cloudy/views/layout/_message.html.erb +3 -0
  58. data/lib/generators/leolay/templates/styles/cloudy/views/layout/_session.html.erb +10 -0
  59. data/lib/generators/leolay/templates/styles/cloudy/views/layout/application.html.erb +13 -0
  60. data/lib/generators/leosca/USAGE +23 -0
  61. data/lib/generators/leosca/install_generator.rb +15 -0
  62. data/lib/generators/rails/leosca/USAGE +41 -0
  63. data/lib/generators/rails/leosca/leosca_generator.rb +26 -0
  64. data/lib/generators/rails/leosca/templates/leosca.css +56 -0
  65. data/lib/generators/rails/leosca_controller/USAGE +23 -0
  66. data/lib/generators/rails/leosca_controller/leosca_controller_generator.rb +159 -0
  67. data/lib/generators/rails/leosca_controller/templates/controller.rb +132 -0
  68. data/template.rb +104 -0
  69. metadata +132 -0
@@ -0,0 +1,145 @@
1
+ /* -------------------------------------------------------------------------------------------------
2
+
3
+ It's *strongly* suggested that you don't modify this file. Instead, load a new stylesheet after
4
+ this one in your layouts (eg formtastic_changes.css) and override the styles to suit your needs.
5
+ This will allow you to update formtastic.css with new releases without clobbering your own changes.
6
+
7
+ This stylesheet forms part of the Formtastic Rails Plugin
8
+ (c) 2008 Justin French
9
+
10
+ --------------------------------------------------------------------------------------------------*/
11
+
12
+
13
+ /* NORMALIZE AND RESET - obviously inspired by Yahoo's reset.css, but scoped to just form.formtastic
14
+ --------------------------------------------------------------------------------------------------*/
15
+ form.formtastic, form.formtastic ul, form.formtastic ol, form.formtastic li, form.formtastic fieldset, form.formtastic legend, form.formtastic input, form.formtastic textarea, form.formtastic select, form.formtastic p { margin:0; padding:0; }
16
+ form.formtastic fieldset { border:0; }
17
+ form.formtastic em, form.formtastic strong { font-style:normal; font-weight:normal; }
18
+ form.formtastic ol, form.formtastic ul { list-style:none; }
19
+ form.formtastic abbr, form.formtastic acronym { border:0; font-variant:normal; }
20
+ form.formtastic input, form.formtastic textarea, form.formtastic select { font-family:inherit; font-size:inherit; font-weight:inherit; }
21
+ form.formtastic input, form.formtastic textarea, form.formtastic select { font-size:100%; }
22
+ form.formtastic legend { white-space:normal; color:#000; }
23
+
24
+
25
+ /* SEMANTIC ERRORS
26
+ --------------------------------------------------------------------------------------------------*/
27
+ form.formtastic ul.errors { color:#cc0000; margin:0.5em 0 1.5em 25%; list-style:square; }
28
+ form.formtastic ul.errors li { padding:0; border:none; display:list-item; }
29
+
30
+
31
+ /* FIELDSETS & LISTS
32
+ --------------------------------------------------------------------------------------------------*/
33
+ form.formtastic fieldset { overflow:hidden; } /* clearing contained floats */
34
+ form.formtastic fieldset.inputs { }
35
+ form.formtastic fieldset.buttons { padding-left:25%; }
36
+ form.formtastic fieldset ol { }
37
+ form.formtastic fieldset.buttons li { float:left; padding-right:0.5em; }
38
+
39
+ /* INPUT LIs
40
+ --------------------------------------------------------------------------------------------------*/
41
+ form.formtastic fieldset > ol > li { padding:0.5em 0; margin-top:-0.5em; margin-bottom:1em; } /* padding and negative margin juggling is for Firefox */
42
+ form.formtastic fieldset > ol > li { overflow:hidden; } /* clearing contained floats */
43
+
44
+ form.formtastic fieldset > ol > li.required { }
45
+ form.formtastic fieldset > ol > li.optional { }
46
+ form.formtastic fieldset > ol > li.error { }
47
+
48
+
49
+ /* LABELS
50
+ --------------------------------------------------------------------------------------------------*/
51
+ form.formtastic fieldset > ol > li label { display:block; width:25%; float:left; padding-top:.2em; }
52
+ form.formtastic fieldset > ol > li > li label { line-height:100%; padding-top:0; }
53
+ form.formtastic fieldset > ol > li > li label input { line-height:100%; vertical-align:middle; margin-top:-0.1em;}
54
+
55
+
56
+ /* NESTED FIELDSETS AND LEGENDS (radio, check boxes and date/time inputs use nested fieldsets)
57
+ --------------------------------------------------------------------------------------------------*/
58
+ form.formtastic fieldset > ol > li fieldset { position:relative; }
59
+ form.formtastic fieldset > ol > li fieldset legend { position:absolute; width:95%; left: 0px; }
60
+ form.formtastic fieldset > ol > li fieldset legend span { position:absolute; }
61
+ form.formtastic fieldset > ol > li fieldset legend.label label { position:absolute; }
62
+ form.formtastic fieldset > ol > li fieldset ol { float:left; width:74%; margin:0; padding:0 0 0 25%; }
63
+ form.formtastic fieldset > ol > li fieldset ol li { padding:0; border:0; }
64
+
65
+
66
+ /* INLINE HINTS
67
+ --------------------------------------------------------------------------------------------------*/
68
+ form.formtastic fieldset > ol > li p.inline-hints { color:#666; margin:0.5em 0 0 25%; }
69
+
70
+
71
+ /* INLINE ERRORS
72
+ --------------------------------------------------------------------------------------------------*/
73
+ form.formtastic fieldset > ol > li p.inline-errors { color:#cc0000; margin:0.5em 0 0 25%; }
74
+ form.formtastic fieldset > ol > li ul.errors { color:#cc0000; margin:0.5em 0 0 25%; list-style:square; }
75
+ form.formtastic fieldset > ol > li ul.errors li { padding:0; border:none; display:list-item; }
76
+
77
+
78
+ /* STRING, NUMERIC, PASSWORD, EMAIL, URL, PHONE & SEARCH OVERRIDES
79
+ --------------------------------------------------------------------------------------------------*/
80
+ form.formtastic fieldset > ol > li.string input,
81
+ form.formtastic fieldset > ol > li.password input,
82
+ form.formtastic fieldset > ol > li.numeric input,
83
+ form.formtastic fieldset > ol > li.email input,
84
+ form.formtastic fieldset > ol > li.url input,
85
+ form.formtastic fieldset > ol > li.phone input,
86
+ form.formtastic fieldset > ol > li.search input { width:72%; }
87
+
88
+ form.formtastic fieldset > ol > li.string input[size],
89
+ form.formtastic fieldset > ol > li.password input[size],
90
+ form.formtastic fieldset > ol > li.numeric input[size],
91
+ form.formtastic fieldset > ol > li.email input[size],
92
+ form.formtastic fieldset > ol > li.url input[size],
93
+ form.formtastic fieldset > ol > li.phone input[size],
94
+ form.formtastic fieldset > ol > li.search input[size] { width:auto; max-width:72%; }
95
+
96
+
97
+ /* TEXTAREA OVERRIDES
98
+ --------------------------------------------------------------------------------------------------*/
99
+ form.formtastic fieldset > ol > li.text textarea { width:72%; }
100
+ form.formtastic fieldset > ol > li.text textarea[cols] { width:auto; max-width:72%; }
101
+
102
+
103
+ /* HIDDEN OVERRIDES
104
+ --------------------------------------------------------------------------------------------------*/
105
+ form.formtastic fieldset ol li.hidden { display:none; }
106
+
107
+ /* BOOLEAN OVERRIDES
108
+ --------------------------------------------------------------------------------------------------*/
109
+ form.formtastic fieldset > ol > li.boolean label { padding-left:25%; width:auto; }
110
+ form.formtastic fieldset > ol > li.boolean label input { margin:0 0.5em 0 0.2em; }
111
+
112
+
113
+ /* RADIO OVERRIDES
114
+ --------------------------------------------------------------------------------------------------*/
115
+ form.formtastic fieldset > ol > li.radio { }
116
+ form.formtastic fieldset > ol > li.radio fieldset { overflow:visible; }
117
+ form.formtastic fieldset > ol > li.radio fieldset ol { margin-bottom:-0.5em; }
118
+ form.formtastic fieldset > ol > li.radio fieldset ol li { margin:0.1em 0 0.5em 0; overflow:visible; }
119
+ form.formtastic fieldset > ol > li.radio fieldset ol li label { float:none; width:100%; }
120
+ form.formtastic fieldset > ol > li.radio fieldset ol li label input { margin-right:0.2em; }
121
+
122
+
123
+ /* CHECK BOXES (COLLECTION) OVERRIDES
124
+ --------------------------------------------------------------------------------------------------*/
125
+ form.formtastic fieldset > ol > li.check_boxes { }
126
+ form.formtastic fieldset > ol > li.check_boxes fieldset { overflow:visible; }
127
+ form.formtastic fieldset > ol > li.check_boxes fieldset ol { margin-bottom:-0.5em; }
128
+ form.formtastic fieldset > ol > li.check_boxes fieldset ol li { margin:0.1em 0 0.5em 0; overflow:visible; }
129
+ form.formtastic fieldset > ol > li.check_boxes fieldset ol li label { float:none; width:100%; }
130
+ form.formtastic fieldset > ol > li.check_boxes fieldset ol li label input { margin-right:0.2em; }
131
+
132
+
133
+ /* DATE & TIME OVERRIDES
134
+ --------------------------------------------------------------------------------------------------*/
135
+ form.formtastic fieldset > ol > li.date fieldset ol li,
136
+ form.formtastic fieldset > ol > li.time fieldset ol li,
137
+ form.formtastic fieldset > ol > li.datetime fieldset ol li { float:left; width:auto; margin:0 .3em 0 0; }
138
+
139
+ form.formtastic fieldset > ol > li.date fieldset ol li label,
140
+ form.formtastic fieldset > ol > li.time fieldset ol li label,
141
+ form.formtastic fieldset > ol > li.datetime fieldset ol li label { display:none; }
142
+
143
+ form.formtastic fieldset > ol > li.date fieldset ol li label input,
144
+ form.formtastic fieldset > ol > li.time fieldset ol li label input,
145
+ form.formtastic fieldset > ol > li.datetime fieldset ol li label input { display:inline; margin:0; padding:0; }
@@ -0,0 +1,16 @@
1
+ /* -------------------------------------------------------------------------------------------------
2
+
3
+ Load this stylesheet after formtastic.css in your layouts to override the CSS to suit your needs.
4
+ This will allow you to update formtastic.css with new releases without clobbering your own changes.
5
+
6
+ For example, to make the inline hint paragraphs a little darker in color than the standard #666:
7
+
8
+ form.formtastic fieldset > ol > li p.inline-hints { color:#333; }
9
+
10
+ HINT:
11
+ The following style may be *conditionally* included for improved support on older versions of IE(<8)
12
+ form.formtastic fieldset ol li fieldset legend { margin-left: -6px;}
13
+
14
+ --------------------------------------------------------------------------------------------------*/
15
+
16
+ form.formtastic fieldset > ol > li p.inline-hints { font-style: italic; font-size: 0.8em; clear: both; }
@@ -0,0 +1,12 @@
1
+ <h2>Resend confirmation instructions</h2>
2
+
3
+ <%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| %>
4
+ <%= devise_error_messages! %>
5
+
6
+ <p><%= f.label :email %><br />
7
+ <%= f.email_field :email %></p>
8
+
9
+ <p><%= f.submit "Resend confirmation instructions" %></p>
10
+ <% end %>
11
+
12
+ <%= render :partial => "devise/shared/links" %>
@@ -0,0 +1,5 @@
1
+ <p>Welcome <%= @resource.email %>!</p>
2
+
3
+ <p>You can confirm your account through the link below:</p>
4
+
5
+ <p><%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %></p>
@@ -0,0 +1,8 @@
1
+ <p>Hello <%= @resource.email %>!</p>
2
+
3
+ <p>Someone has requested a link to change your password, and you can do this through the link below.</p>
4
+
5
+ <p><%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %></p>
6
+
7
+ <p>If you didn't request this, please ignore this email.</p>
8
+ <p>Your password won't change until you access the link above and create a new one.</p>
@@ -0,0 +1,7 @@
1
+ <p>Hello <%= @resource.email %>!</p>
2
+
3
+ <p>Your account has been locked due to an excessive amount of unsuccessful sign in attempts.</p>
4
+
5
+ <p>Click the link below to unlock your account:</p>
6
+
7
+ <p><%= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @resource.unlock_token) %></p>
@@ -0,0 +1,16 @@
1
+ <h2><%= t("authentication.change_password") %></h2>
2
+
3
+ <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %>
4
+ <%= devise_error_messages! %>
5
+ <%= f.hidden_field :reset_password_token %>
6
+
7
+ <p><%= f.label :password, t("authentication.new_password") %><br />
8
+ <%= f.password_field :password %></p>
9
+
10
+ <p><%= f.label :password_confirmation, t("authentication.password_confirmation") %><br />
11
+ <%= f.password_field :password_confirmation %></p>
12
+
13
+ <p><%= f.submit t("authentication.change_password") %></p>
14
+ <% end %>
15
+
16
+ <%= render :partial => "devise/shared/links" %>
@@ -0,0 +1,12 @@
1
+ <h2><%= t("authentication.forgot_password?") %></h2>
2
+
3
+ <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %>
4
+ <%= devise_error_messages! %>
5
+
6
+ <p><%= f.label :email %><br />
7
+ <%= f.email_field :email %></p>
8
+
9
+ <p><%= f.submit t("authentication.send_me_reset_password_instruction") %></p>
10
+ <% end %>
11
+
12
+ <%= render :partial => "devise/shared/links" %>
@@ -0,0 +1,25 @@
1
+ <h2><%= t(:edit) %> <%= resource_name.to_s.humanize %></h2>
2
+
3
+ <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
4
+ <%= devise_error_messages! %>
5
+
6
+ <p><%= f.label :email %><br />
7
+ <%= f.email_field :email %></p>
8
+
9
+ <p><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
10
+ <%= f.password_field :password %></p>
11
+
12
+ <p><%= f.label :password_confirmation, t("authentication.password_confirmation") %><br />
13
+ <%= f.password_field :password_confirmation %></p>
14
+
15
+ <p><%= f.label :current_password, t("authentication.current_password") %> <i>(we need your current password to confirm your changes)</i><br />
16
+ <%= f.password_field :current_password %></p>
17
+
18
+ <p><%= f.submit t(:update) %></p>
19
+ <% end %>
20
+
21
+ <h3><%= t("authentication.cancel_my_account") %></h3>
22
+
23
+ <p>Unhappy? <%= link_to t("authentication.cancel_my_account"), registration_path(resource_name), :confirm => t(:sure?), :method => :delete %>.</p>
24
+
25
+ <%= link_to t(:back), :back %>
@@ -0,0 +1,18 @@
1
+ <h2><%= t("authentication.sign_up") %></h2>
2
+
3
+ <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
4
+ <%= devise_error_messages! %>
5
+
6
+ <p><%= f.label :email %><br />
7
+ <%= f.email_field :email %></p>
8
+
9
+ <p><%= f.label :password %><br />
10
+ <%= f.password_field :password %></p>
11
+
12
+ <p><%= f.label :password_confirmation, t("authentication.password_confirmation") %><br />
13
+ <%= f.password_field :password_confirmation %></p>
14
+
15
+ <p><%= f.submit t("authentication.sign_up") %></p>
16
+ <% end %>
17
+
18
+ <%= render :partial => "devise/shared/links" %>
@@ -0,0 +1,17 @@
1
+ <h2><%= t("authentication.sign_in") %></h2>
2
+
3
+ <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
4
+ <p><%= f.label :email %><br />
5
+ <%= f.email_field :email %></p>
6
+
7
+ <p><%= f.label :password %><br />
8
+ <%= f.password_field :password %></p>
9
+
10
+ <% if devise_mapping.rememberable? -%>
11
+ <p><%= f.check_box :remember_me %> <%= f.label :remember_me, t("authentication.remember_me") %></p>
12
+ <% end -%>
13
+
14
+ <p><%= f.submit t("authentication.sign_in") %></p>
15
+ <% end %>
16
+
17
+ <%= render :partial => "devise/shared/links" %>
@@ -0,0 +1,25 @@
1
+ <%- if controller_name != 'sessions' %>
2
+ <%= link_to t("authentication.sign_in"), new_session_path(resource_name) %><br />
3
+ <% end -%>
4
+
5
+ <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
6
+ <%= link_to t("authentication.sign_up"), new_registration_path(resource_name) %><br />
7
+ <% end -%>
8
+
9
+ <%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
10
+ <%= link_to t("authentication.forgot_password?"), new_password_path(resource_name) %><br />
11
+ <% end -%>
12
+
13
+ <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
14
+ <%= link_to t("authentication.didnt_receive_confirmation_instruction?"), new_confirmation_path(resource_name) %><br />
15
+ <% end -%>
16
+
17
+ <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
18
+ <%= link_to t("authentication.didnt_receive_unlock_instruction?"), new_unlock_path(resource_name) %><br />
19
+ <% end -%>
20
+
21
+ <%- if devise_mapping.omniauthable? %>
22
+ <%- resource_class.omniauth_providers.each do |provider| %>
23
+ <%= link_to "#{t("authentication.sign_in_with")} #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) %><br />
24
+ <% end -%>
25
+ <% end -%>
@@ -0,0 +1,12 @@
1
+ <h2>Resend unlock instructions</h2>
2
+
3
+ <%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %>
4
+ <%= devise_error_messages! %>
5
+
6
+ <p><%= f.label :email %><br />
7
+ <%= f.email_field :email %></p>
8
+
9
+ <p><%= f.submit "Resend unlock instructions" %></p>
10
+ <% end %>
11
+
12
+ <%= render :partial => "devise/shared/links" %>
@@ -0,0 +1,53 @@
1
+ # Additional translations at http://github.com/plataformatec/devise/wiki/I18n
2
+
3
+ en:
4
+ errors:
5
+ messages:
6
+ expired: "has expired, please request a new one"
7
+ not_found: "not found"
8
+ already_confirmed: "was already confirmed, please try signing in"
9
+ not_locked: "was not locked"
10
+ not_saved:
11
+ one: "1 error prohibited this %{resource} from being saved:"
12
+ other: "%{count} errors prohibited this %{resource} from being saved:"
13
+
14
+ devise:
15
+ failure:
16
+ already_authenticated: 'You are already signed in.'
17
+ unauthenticated: 'You need to sign in or sign up before continuing.'
18
+ unconfirmed: 'You have to confirm your account before continuing.'
19
+ locked: 'Your account is locked.'
20
+ invalid: 'Invalid email or password.'
21
+ invalid_token: 'Invalid authentication token.'
22
+ timeout: 'Your session expired, please sign in again to continue.'
23
+ inactive: 'Your account was not activated yet.'
24
+ sessions:
25
+ signed_in: 'Signed in successfully.'
26
+ signed_out: 'Signed out successfully.'
27
+ passwords:
28
+ send_instructions: 'You will receive an email with instructions about how to reset your password in a few minutes.'
29
+ updated: 'Your password was changed successfully. You are now signed in.'
30
+ send_paranoid_instructions: "If your e-mail exists on our database, you will receive a password recovery link on your e-mail"
31
+ confirmations:
32
+ send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.'
33
+ send_paranoid_instructions: 'If your e-mail exists on our database, you will receive an email with instructions about how to confirm your account in a few minutes.'
34
+ confirmed: 'Your account was successfully confirmed. You are now signed in.'
35
+ registrations:
36
+ signed_up: 'Welcome! You have signed up successfully.'
37
+ inactive_signed_up: 'You have signed up successfully. However, we could not sign you in because your account is %{reason}.'
38
+ updated: 'You updated your account successfully.'
39
+ destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.'
40
+ unlocks:
41
+ send_instructions: 'You will receive an email with instructions about how to unlock your account in a few minutes.'
42
+ unlocked: 'Your account was successfully unlocked. You are now signed in.'
43
+ send_paranoid_instructions: 'If your account exists, you will receive an email with instructions about how to unlock it in a few minutes.'
44
+ omniauth_callbacks:
45
+ success: 'Successfully authorized from %{kind} account.'
46
+ failure: 'Could not authorize you from %{kind} because "%{reason}".'
47
+ mailer:
48
+ confirmation_instructions:
49
+ subject: 'Confirmation instructions'
50
+ reset_password_instructions:
51
+ subject: 'Reset password instructions'
52
+ unlock_instructions:
53
+ subject: 'Unlock Instructions'
@@ -0,0 +1,51 @@
1
+ it:
2
+ errors:
3
+ messages:
4
+ expired: "è scaduto ed è necessario richiederne uno nuovo"
5
+ not_found: "non trovato"
6
+ already_confirmed: "è già stato confermato, riprova a collegarti"
7
+ not_locked: "non era bloccato"
8
+ not_saved:
9
+ one: "un errore ha impedito il salvataggio di %{resource}:"
10
+ other: "%{count} errori hanno impedito il salvataggio di %{resource}:"
11
+
12
+ devise:
13
+ failure:
14
+ already_authenticated: "Sei già autenticato"
15
+ unauthenticated: "Devi accedere o registrarti per continuare."
16
+ unconfirmed: "Devi confermare il tuo account per continuare."
17
+ locked: "Il tuo account è bloccato."
18
+ invalid: "Indirizzo email o password non validi."
19
+ invalid_token: "Codice di autenticazione non valido."
20
+ timeout: "Sessione scaduta, accedere nuovamente per continuare."
21
+ inactive: "Il tuo account non è stato ancora attivato."
22
+ sessions:
23
+ signed_in: "Accesso effettuato con successo."
24
+ signed_out: "Sei uscito correttamente."
25
+ passwords:
26
+ send_instructions: "Riceverai un messaggio email con le istruzioni per reimpostare la tua password entro qualche minuto."
27
+ updated: "La tua password è stata cambiata. Ora sei collegato."
28
+ send_paranoid_instructions: "Se il tuo indirizzo e-mail esiste nel nostro database, riceverai un link per il recupero della password."
29
+ confirmations:
30
+ send_instructions: "Riceverai un messaggio email con le istruzioni per confermare il tuo account entro qualche minuto."
31
+ send_paranoid_instructions: "Se il tuo indirizzo e-mail esiste nel nostro database, fra pochi minuti riceverai un link con le istruzioni per confermare il tuo account."
32
+ confirmed: "Il tuo account è stato correttamente confermato. Ora sei collegato."
33
+ registrations:
34
+ signed_up: "Iscrizione correttamente eseguita."
35
+ inactive_signed_up: 'Ti sei registrato, ma non sei collegato perchè il tuo account è %{reason}.'
36
+ updated: "Il tuo account è stato aggiornato."
37
+ destroyed: "Arrivederci! L'account è stato cancellato. Speriamo di rivederti presto."
38
+ unlocks:
39
+ send_instructions: "Riceverai un messaggio email con le istruzioni per sbloccare il tuo account entro qualche minuto."
40
+ unlocked: "Il tuo account è stato correttamente sbloccato. Ora sei collegato."
41
+ send_paranoid_instructions: "Se il tuo indirizzo e-mail esiste nel nostro database, fra pochi minuti riceverai un link con le istruzioni per sbloccare il tuo account."
42
+ omniauth_callbacks:
43
+ success: "Sei stato autorizzato dall'account di %{kind}."
44
+ failure: 'Non siamo riusciti ad autoruzzarti da %{kind} perchè "%{reason}".'
45
+ mailer:
46
+ confirmation_instructions:
47
+ subject: "Istruzioni per la conferma"
48
+ reset_password_instructions:
49
+ subject: "Istruzioni per reimpostare la password"
50
+ unlock_instructions:
51
+ subject: "Istruzioni per sbloccare l'account"
@@ -0,0 +1,79 @@
1
+ en:
2
+ date:
3
+ formats:
4
+ default: "%d-%m-%Y"
5
+ short: "%d %b"
6
+ long: "%d %B %Y"
7
+ only_day: "%e"
8
+ order: [ :day, :month, :year ]
9
+ activerecord: &activerecord
10
+ models: &models
11
+ attributes: &attributes
12
+ id: "Id"
13
+ created_at: "Created at"
14
+ updated_at: "Updated at"
15
+ #Attributes zone - do not remove
16
+ helpers:
17
+ submit:
18
+ create: "Create %{model}"
19
+ update: "Update %{model}"
20
+ formtastic:
21
+ titles:
22
+ labels:
23
+ <<: *attributes
24
+ hints:
25
+ actions: &actions
26
+ create: "Create my %{model}"
27
+ update: "Save changes"
28
+ authentication:
29
+ sign_in: "Sign in"
30
+ sign_in_with: "Sign in with"
31
+ sign_out: "Sign out"
32
+ sign_up: "Sign up"
33
+ signed_in_as: "Signed in as"
34
+ not_you: "Not you?"
35
+ remember_me: "Remember me"
36
+ password_confirmation: "Password confirmation"
37
+ forgot_password?: "Forgot your password?"
38
+ didnt_receive_confirmation_instruction?: "Didn't receive confirmation instructions?"
39
+ didnt_receive_unlock_instruction?: "Didn't receive unlock instructions?"
40
+ cancel_my_account: "Cancel my account"
41
+ send_me_reset_password_instruction: "Send me reset password instructions"
42
+ change_password: "Change password"
43
+ current_password: "Current password"
44
+ new_password: "New password"
45
+
46
+ unknown_request: "Sorry, this request is unkown and cannot be processed"
47
+ generic_error: "An error was occured and doesn't permit to execute this operation"
48
+ permission_denied: "You don't have authorization to perform this request."
49
+ created: "%{model} was successfully created."
50
+ created_ko: "An error prohibited %{model} to be created."
51
+ updated: "%{model} was successfully updated."
52
+ updated_ko: "An error prohibited %{model} to be updated."
53
+ deleted: "%{model} was successfully deleted."
54
+
55
+ <<: *activerecord
56
+ <<: *actions
57
+
58
+ list: "List"
59
+ save: "Save"
60
+ create: "Create"
61
+ update: "Update"
62
+ edit: "Edit"
63
+ delete: "Delete"
64
+ destroy: "Destroy"
65
+ new: "New"
66
+ copy: "Copy"
67
+ back: "Back"
68
+ back_to_list: "Back to List"
69
+ show: "Show"
70
+ show_all: "Show all"
71
+ sure?: "Are you sure?"
72
+ add: "Add"
73
+ create: "Create"
74
+ update: "Update"
75
+ search: "Search"
76
+ radio-yes: "Yes"
77
+ radio-no: "No"
78
+ radio-all: "All"
79
+ choose_language: "Choose language"