flexi_generators 0.2.2 → 0.2.3

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.
@@ -1,27 +1,27 @@
1
- <%% title("<%= user_plural_name.titleize %>") %>
2
-
3
- <div id="new_box">
4
- <%%= link_to 'Adicionar', new_admin_<%= user_singular_name %>_path, :class => 'button medium green' %>
5
- </div>
6
-
7
- <table cellspacing="0" cellpadding="2">
8
- <tr>
9
- <th>Usuário</th>
10
- <th>E-mail</th>
11
- <th></th>
12
- </tr>
13
- <%% @<%= user_plural_name %>.each do |<%= user_singular_name %>| %>
14
- <tr>
15
- <td><%%= <%= user_singular_name %>.username %></td>
16
- <td><%%= <%= user_singular_name %>.email %></td>
17
- <td width="11%">
18
- <ul class="actions">
19
- <li><%%= link_to( image_tag("show.png"), [:admin, <%= user_singular_name %>], :title => "Mostrar" ) %></li>
20
- <li><%%= link_to( image_tag("edit.png"), edit_admin_<%= user_singular_name %>_path(<%= user_singular_name %>), :title => "Editar" ) %></li>
21
- <li><%%= link_to( image_tag("delete.png"), [:admin, <%= user_singular_name %>], :confirm => 'Tem certeza que deseja excluir?', :method => :delete, :title => "Excluir" ) %></li>
22
- </ul>
23
- </td>
24
- </tr>
25
- <%% end %>
26
- </table>
27
- <%%= will_paginate @<%= user_plural_name %>, :previous_label=>'&laquo; Anterior', :next_label=>'Próximo &raquo;' %>
1
+ <%% title("<%= user_plural_name.titleize %>") %>
2
+
3
+ <div id="new_box">
4
+ <%%= link_to 'Adicionar', new_admin_<%= user_singular_name %>_path, :class => 'button medium green' %>
5
+ </div>
6
+
7
+ <table cellspacing="0" cellpadding="2">
8
+ <tr>
9
+ <th>Usuário</th>
10
+ <th>E-mail</th>
11
+ <th></th>
12
+ </tr>
13
+ <%% @<%= user_plural_name %>.each do |<%= user_singular_name %>| %>
14
+ <tr>
15
+ <td><%%= <%= user_singular_name %>.username %></td>
16
+ <td><%%= <%= user_singular_name %>.email %></td>
17
+ <td width="11%">
18
+ <ul class="actions">
19
+ <li><%%= link_to( image_tag("show.png"), [:admin, <%= user_singular_name %>], :title => "Mostrar" ) %></li>
20
+ <li><%%= link_to( image_tag("edit.png"), edit_admin_<%= user_singular_name %>_path(<%= user_singular_name %>), :title => "Editar" ) %></li>
21
+ <li><%%= link_to( image_tag("delete.png"), [:admin, <%= user_singular_name %>], :confirm => 'Tem certeza que deseja excluir?', :method => :delete, :title => "Excluir" ) %></li>
22
+ </ul>
23
+ </td>
24
+ </tr>
25
+ <%% end %>
26
+ </table>
27
+ <%%= will_paginate @<%= user_plural_name %>, :previous_label=>'&laquo; Anterior', :next_label=>'Próximo &raquo;' %>
@@ -1,24 +1,24 @@
1
- <%% title "Novo <%= user_singular_name.titleize %>" %>
2
-
3
- <%%= form_for([:admin, @<%= user_singular_name %>]) do |f| %>
4
- <%%= render "shared/error_messages", :resource => @<%= user_singular_name %> %>
5
- <div class="field">
6
- <%%= f.label :username %><br />
7
- <%%= f.text_field :username %>
8
- </div>
9
- <div class="field">
10
- <%%= f.label :email %><br />
11
- <%%= f.text_field :email %>
12
- </div>
13
- <div class="field">
14
- <%%= f.label :password %><br />
15
- <%%= f.password_field :password %>
16
- </div>
17
- <div class="field">
18
- <%%= f.label :password_confirmation %><br />
19
- <%%= f.password_field :password_confirmation %>
20
- </div>
21
- <div id="control_box">
22
- <%%= f.submit "Salvar", :class => "button medium save blue" %> | <%%= link_to("Cancelar", admin_<%= user_plural_name %>_path, :class => "button medium red") %>
23
- </div>
1
+ <%% title "Novo <%= user_singular_name.titleize %>" %>
2
+
3
+ <%%= form_for([:admin, @<%= user_singular_name %>]) do |f| %>
4
+ <%%= render "shared/error_messages", :resource => @<%= user_singular_name %> %>
5
+ <div class="field">
6
+ <%%= f.label :username %><br />
7
+ <%%= f.text_field :username %>
8
+ </div>
9
+ <div class="field">
10
+ <%%= f.label :email %><br />
11
+ <%%= f.text_field :email %>
12
+ </div>
13
+ <div class="field">
14
+ <%%= f.label :password %><br />
15
+ <%%= f.password_field :password %>
16
+ </div>
17
+ <div class="field">
18
+ <%%= f.label :password_confirmation %><br />
19
+ <%%= f.password_field :password_confirmation %>
20
+ </div>
21
+ <div id="control_box">
22
+ <%%= f.submit "Salvar", :class => "button medium save blue" %> | <%%= link_to("Cancelar", admin_<%= user_plural_name %>_path, :class => "button medium red") %>
23
+ </div>
24
24
  <%% end %>
@@ -1,16 +1,16 @@
1
- <%% title "<%= user_singular_name.titleize %>" %>
2
- <p>
3
- <b>Usuário:</b>
4
- <%%= @<%= user_singular_name %>.username %>
5
- </p>
6
- <p>
7
- <b>E-mail:</b>
8
- <%%= @<%= user_singular_name %>.email %>
9
- </p>
10
-
11
- <div id="control_box">
12
- <%%= link_to( image_tag("back.png"), admin_<%= user_plural_name %>_path, :title => "Voltar" ) %> |
13
- <%%= link_to( image_tag("edit.png"), edit_admin_<%= user_singular_name %>_path(@<%= user_singular_name %>), :title => "Editar" ) %> |
14
- <%%= link_to( image_tag("delete.png"), [:admin, @<%= user_singular_name %>], :confirm => 'Tem certeza que deseja excluir?', :method => :delete, :title => "Exlcuir" ) %>
15
- </div>
16
-
1
+ <%% title "<%= user_singular_name.titleize %>" %>
2
+ <p>
3
+ <b>Usuário:</b>
4
+ <%%= @<%= user_singular_name %>.username %>
5
+ </p>
6
+ <p>
7
+ <b>E-mail:</b>
8
+ <%%= @<%= user_singular_name %>.email %>
9
+ </p>
10
+
11
+ <div id="control_box">
12
+ <%%= link_to( image_tag("back.png"), admin_<%= user_plural_name %>_path, :title => "Voltar" ) %> |
13
+ <%%= link_to( image_tag("edit.png"), edit_admin_<%= user_singular_name %>_path(@<%= user_singular_name %>), :title => "Editar" ) %> |
14
+ <%%= link_to( image_tag("delete.png"), [:admin, @<%= user_singular_name %>], :confirm => 'Tem certeza que deseja excluir?', :method => :delete, :title => "Exlcuir" ) %>
15
+ </div>
16
+
@@ -1,6 +1,6 @@
1
- Description:
2
- The flexi_prepare generator creates a basic layout and config files and
3
- helper which will give some structure to a starting Rails app.
4
-
5
- Example:
6
- rails generate flexi_prepare
1
+ Description:
2
+ The flexi_prepare generator creates a basic layout and config files and
3
+ helper which will give some structure to a starting Rails app.
4
+
5
+ Example:
6
+ rails generate flexi_prepare
@@ -1,56 +1,56 @@
1
- class FlexiPrepareGenerator < Rails::Generators::Base
2
- source_root File.expand_path('../templates', __FILE__)
3
-
4
- def generate_flexi_prepare
5
- remove_file "app/views/layouts/application.html.erb"
6
- remove_file "app/helpers/application_helper.rb"
7
- remove_file "public/index.html"
8
-
9
- copy_file "pt-BR.yml", "config/locales/pt-BR.yml"
10
- copy_file "inflector_portuguese.rb", "config/initializers/inflector_portuguese.rb"
11
- copy_file "custom_field_error.rb", "config/initializers/custom_field_error.rb"
12
- copy_file "application.css", "public/stylesheets/application.css"
13
- copy_file "login.css", "public/stylesheets/login.css"
14
- copy_file "site.css", "public/stylesheets/site.css"
15
- copy_file "logo.png", "public/images/logo.png"
16
- copy_file "add.png", "public/images/add.png"
17
- copy_file "bg.png", "public/images/bg.png"
18
- copy_file "bg2.png", "public/images/bg2.png"
19
- copy_file "users.png", "public/images/users.png"
20
- copy_file "boxheader.gif", "public/images/boxheader.gif"
21
- copy_file "menu.png", "public/images/menu.png"
22
- copy_file "btn-bg.png", "public/images/btn-bg.png"
23
- copy_file "btn-bg-hover.png", "public/images/btn-bg-hover.png"
24
- copy_file "edit.png", "public/images/edit.png"
25
- copy_file "show.png", "public/images/show.png"
26
- copy_file "delete.png", "public/images/delete.png"
27
- copy_file "back.png", "public/images/back.png"
28
- copy_file "messages/error.png", "public/images/messages/error.png"
29
- copy_file "messages/info.png", "public/images/messages/info.png"
30
- copy_file "messages/success.png", "public/images/messages/success.png"
31
- copy_file "messages/tip.png", "public/images/messages/tip.png"
32
- copy_file "messages/warning.png", "public/images/messages/warning.png"
33
- copy_file "admin_home_controller.rb", "app/controllers/admin/home_controller.rb"
34
- copy_file "site_controller.rb", "app/controllers/site_controller.rb"
35
- copy_file "site_helper.rb", "app/helpers/site_helper.rb"
36
- copy_file "application_helper.rb", "app/helpers/application_helper.rb"
37
-
38
- template "application.html.erb", "app/views/layouts/application.html.erb"
39
- template "login.html.erb", "app/views/layouts/login.html.erb"
40
- template "site.html.erb", "app/views/layouts/site.html.erb"
41
- template "site_index.html.erb", "app/views/site/index.html.erb"
42
- template "admin_home_index.html.erb", "app/views/admin/home/index.html.erb"
43
-
44
- gem 'menu_builder', '=0.3.3'
45
- gem 'will_paginate', '~> 3.0.beta'
46
-
47
- route 'root :to => "site#index"'
48
- route 'namespace :admin do
49
- match "home" => "home#index"
50
- end'
51
-
52
- inject_into_file "config/application.rb", "\tconfig.i18n.default_locale = 'pt-BR'\n", :after => "class Application < Rails::Application\n"
53
- inject_into_file "config/application.rb", "\tconfig.time_zone = 'Brasilia'\n", :after => "class Application < Rails::Application\n"
54
- end
55
-
56
- end
1
+ class FlexiPrepareGenerator < Rails::Generators::Base
2
+ source_root File.expand_path('../templates', __FILE__)
3
+
4
+ def generate_flexi_prepare
5
+ remove_file "app/views/layouts/application.html.erb"
6
+ remove_file "app/helpers/application_helper.rb"
7
+ remove_file "public/index.html"
8
+
9
+ copy_file "pt-BR.yml", "config/locales/pt-BR.yml"
10
+ copy_file "inflector_portuguese.rb", "config/initializers/inflector_portuguese.rb"
11
+ copy_file "custom_field_error.rb", "config/initializers/custom_field_error.rb"
12
+ copy_file "application.css", "public/stylesheets/application.css"
13
+ copy_file "login.css", "public/stylesheets/login.css"
14
+ copy_file "site.css", "public/stylesheets/site.css"
15
+ copy_file "logo.png", "public/images/logo.png"
16
+ copy_file "add.png", "public/images/add.png"
17
+ copy_file "bg.png", "public/images/bg.png"
18
+ copy_file "bg2.png", "public/images/bg2.png"
19
+ copy_file "users.png", "public/images/users.png"
20
+ copy_file "boxheader.gif", "public/images/boxheader.gif"
21
+ copy_file "menu.png", "public/images/menu.png"
22
+ copy_file "btn-bg.png", "public/images/btn-bg.png"
23
+ copy_file "btn-bg-hover.png", "public/images/btn-bg-hover.png"
24
+ copy_file "edit.png", "public/images/edit.png"
25
+ copy_file "show.png", "public/images/show.png"
26
+ copy_file "delete.png", "public/images/delete.png"
27
+ copy_file "back.png", "public/images/back.png"
28
+ copy_file "messages/error.png", "public/images/messages/error.png"
29
+ copy_file "messages/info.png", "public/images/messages/info.png"
30
+ copy_file "messages/success.png", "public/images/messages/success.png"
31
+ copy_file "messages/tip.png", "public/images/messages/tip.png"
32
+ copy_file "messages/warning.png", "public/images/messages/warning.png"
33
+ copy_file "admin_home_controller.rb", "app/controllers/admin/home_controller.rb"
34
+ copy_file "site_controller.rb", "app/controllers/site_controller.rb"
35
+ copy_file "site_helper.rb", "app/helpers/site_helper.rb"
36
+ copy_file "application_helper.rb", "app/helpers/application_helper.rb"
37
+
38
+ template "application.html.erb", "app/views/layouts/application.html.erb"
39
+ template "login.html.erb", "app/views/layouts/login.html.erb"
40
+ template "site.html.erb", "app/views/layouts/site.html.erb"
41
+ template "site_index.html.erb", "app/views/site/index.html.erb"
42
+ template "admin_home_index.html.erb", "app/views/admin/home/index.html.erb"
43
+
44
+ gem 'menu_builder', '=0.3.3'
45
+ gem 'will_paginate', '~> 3.0.beta'
46
+
47
+ route 'root :to => "site#index"'
48
+ route 'namespace :admin do
49
+ match "home" => "home#index"
50
+ end'
51
+
52
+ inject_into_file "config/application.rb", "\tconfig.i18n.default_locale = 'pt-BR'\n", :after => "class Application < Rails::Application\n"
53
+ inject_into_file "config/application.rb", "\tconfig.time_zone = 'Brasilia'\n", :after => "class Application < Rails::Application\n"
54
+ end
55
+
56
+ end
@@ -1,204 +1,204 @@
1
- pt-BR:
2
- number:
3
- format:
4
- precision: 3
5
- separator: ','
6
- delimiter: '.'
7
- significant: false
8
- strip_insignificant_zeros: false
9
-
10
- currency:
11
- format:
12
- format: '%u %n'
13
- unit: 'R$'
14
- separator: ','
15
- delimiter: '.'
16
- precision: 2
17
- significant: false
18
- strip_insignificant_zeros: false
19
-
20
- percentage:
21
- format:
22
- delimiter: "."
23
-
24
- precision:
25
- format:
26
- delimiter: "."
27
-
28
- human:
29
- format:
30
- delimiter: ""
31
- precision: 3
32
- significant: true
33
- strip_insignificant_zeros: true
34
-
35
- storage_units:
36
- format: "%n %u"
37
- units:
38
- byte:
39
- one: "Byte"
40
- other: "Bytes"
41
- kb: "KB"
42
- mb: "MB"
43
- gb: "GB"
44
- tb: "TB"
45
-
46
- decimal_units:
47
- format: "%n %u"
48
- units:
49
- unit: ""
50
- thousand: "mil"
51
- million:
52
- one: milhão
53
- other: milhões
54
- billion:
55
- one: bilhão
56
- other: bilhões
57
- trillion:
58
- one: trilhão
59
- other: trilhões
60
- quadrillion:
61
- one: quatrilhão
62
- other: quatrilhões
63
-
64
- date:
65
- formats:
66
- default: "%d/%m/%Y"
67
- short: "%d de %B"
68
- long: "%d de %B de %Y"
69
-
70
- day_names: [Domingo, Segunda, Terça, Quarta, Quinta, Sexta, Sábado]
71
- abbr_day_names: [Dom, Seg, Ter, Qua, Qui, Sex, Sáb]
72
-
73
- month_names: [~, Janeiro, Fevereiro, Março, Abril, Maio, Junho, Julho, Agosto, Setembro, Outubro, Novembro, Dezembro]
74
- abbr_month_names: [~, Jan, Fev, Mar, Abr, Mai, Jun, Jul, Ago, Set, Out, Nov, Dez]
75
-
76
- order:
77
- - :day
78
- - :month
79
- - :year
80
-
81
- time:
82
- formats:
83
- default: "%A, %d de %B de %Y, %H:%M h"
84
- short: "%d/%m, %H:%M h"
85
- long: "%A, %d de %B de %Y, %H:%M h"
86
- am: ""
87
- pm: ""
88
-
89
- datetime:
90
- distance_in_words:
91
- half_a_minute: 'meio minuto'
92
- less_than_x_seconds:
93
- one: 'menos de 1 segundo'
94
- other: 'menos de %{count} segundos'
95
-
96
- x_seconds:
97
- one: '1 segundo'
98
- other: '%{count} segundos'
99
-
100
- less_than_x_minutes:
101
- one: 'menos de um minuto'
102
- other: 'menos de %{count} minutos'
103
-
104
- x_minutes:
105
- one: '1 minuto'
106
- other: '%{count} minutos'
107
-
108
- about_x_hours:
109
- one: 'aproximadamente 1 hora'
110
- other: 'aproximadamente %{count} horas'
111
-
112
- x_days:
113
- one: '1 dia'
114
- other: '%{count} dias'
115
-
116
- about_x_months:
117
- one: 'aproximadamente 1 mês'
118
- other: 'aproximadamente %{count} meses'
119
-
120
- x_months:
121
- one: '1 mês'
122
- other: '%{count} meses'
123
-
124
- about_x_years:
125
- one: 'aproximadamente 1 ano'
126
- other: 'aproximadamente %{count} anos'
127
-
128
- over_x_years:
129
- one: 'mais de 1 ano'
130
- other: 'mais de %{count} anos'
131
-
132
- almost_x_years:
133
- one: 'quase 1 ano'
134
- other: 'quase %{count} anos'
135
-
136
- prompts:
137
- year: "Ano"
138
- month: "Mês"
139
- day: "Dia"
140
- hour: "Hora"
141
- minute: "Minuto"
142
- second: "Segundos"
143
-
144
- support:
145
- array:
146
- words_connector: ", "
147
- two_words_connector: " e "
148
- last_word_connector: " e "
149
-
150
- helpers:
151
- select:
152
- prompt: "Selecione"
153
-
154
- submit:
155
- create: 'Criar %{model}'
156
- update: 'Alterar %{model}'
157
- submit: 'Gravar %{model}'
158
-
159
- errors:
160
- format: "%{attribute} %{message}"
161
-
162
- messages:
163
- inclusion: "não está incluído na lista"
164
- exclusion: "não está disponível"
165
- invalid: "não é válido"
166
- confirmation: "não está de acordo com a confirmação"
167
- accepted: "deve ser aceito"
168
- empty: "não pode ficar vazio"
169
- blank: "não pode ficar em branco"
170
- too_long: "é muito longo (máximo: %{count} caracteres)"
171
- too_short: "é muito curto (mínimo: %{count} caracteres)"
172
- wrong_length: "não possui o tamanho esperado (%{count} caracteres)"
173
- not_a_number: "não é um número"
174
- not_an_integer: "não é um número inteiro"
175
- greater_than: "deve ser maior do que %{count}"
176
- greater_than_or_equal_to: "deve ser maior ou igual a %{count}"
177
- equal_to: "deve ser igual a %{count}"
178
- less_than: "deve ser menor do que %{count}"
179
- less_than_or_equal_to: "deve ser menor ou igual a %{count}"
180
- odd: "deve ser ímpar"
181
- even: "deve ser par"
182
-
183
- attributes:
184
- created_at: "Criado em"
185
- updated_at: "Atulizado em"
186
-
187
- activerecord:
188
- errors:
189
- messages:
190
- taken: "já está em uso"
191
- record_invalid: "A validação falhou: %{errors}"
192
- models:
193
- user: Usuários
194
- attributes:
195
- user:
196
- username: Usuário
197
- email: E-mail
198
- password: Senha
199
- password_confirmation: Confirmar Senha
200
-
201
- authlogic:
202
- error_messages:
203
- email_invalid: endereço de e-mail invávildo
1
+ pt-BR:
2
+ number:
3
+ format:
4
+ precision: 3
5
+ separator: ','
6
+ delimiter: '.'
7
+ significant: false
8
+ strip_insignificant_zeros: false
9
+
10
+ currency:
11
+ format:
12
+ format: '%u %n'
13
+ unit: 'R$'
14
+ separator: ','
15
+ delimiter: '.'
16
+ precision: 2
17
+ significant: false
18
+ strip_insignificant_zeros: false
19
+
20
+ percentage:
21
+ format:
22
+ delimiter: "."
23
+
24
+ precision:
25
+ format:
26
+ delimiter: "."
27
+
28
+ human:
29
+ format:
30
+ delimiter: ""
31
+ precision: 3
32
+ significant: true
33
+ strip_insignificant_zeros: true
34
+
35
+ storage_units:
36
+ format: "%n %u"
37
+ units:
38
+ byte:
39
+ one: "Byte"
40
+ other: "Bytes"
41
+ kb: "KB"
42
+ mb: "MB"
43
+ gb: "GB"
44
+ tb: "TB"
45
+
46
+ decimal_units:
47
+ format: "%n %u"
48
+ units:
49
+ unit: ""
50
+ thousand: "mil"
51
+ million:
52
+ one: milhão
53
+ other: milhões
54
+ billion:
55
+ one: bilhão
56
+ other: bilhões
57
+ trillion:
58
+ one: trilhão
59
+ other: trilhões
60
+ quadrillion:
61
+ one: quatrilhão
62
+ other: quatrilhões
63
+
64
+ date:
65
+ formats:
66
+ default: "%d/%m/%Y"
67
+ short: "%d de %B"
68
+ long: "%d de %B de %Y"
69
+
70
+ day_names: [Domingo, Segunda, Terça, Quarta, Quinta, Sexta, Sábado]
71
+ abbr_day_names: [Dom, Seg, Ter, Qua, Qui, Sex, Sáb]
72
+
73
+ month_names: [~, Janeiro, Fevereiro, Março, Abril, Maio, Junho, Julho, Agosto, Setembro, Outubro, Novembro, Dezembro]
74
+ abbr_month_names: [~, Jan, Fev, Mar, Abr, Mai, Jun, Jul, Ago, Set, Out, Nov, Dez]
75
+
76
+ order:
77
+ - :day
78
+ - :month
79
+ - :year
80
+
81
+ time:
82
+ formats:
83
+ default: "%A, %d de %B de %Y, %H:%M h"
84
+ short: "%d/%m, %H:%M h"
85
+ long: "%A, %d de %B de %Y, %H:%M h"
86
+ am: ""
87
+ pm: ""
88
+
89
+ datetime:
90
+ distance_in_words:
91
+ half_a_minute: 'meio minuto'
92
+ less_than_x_seconds:
93
+ one: 'menos de 1 segundo'
94
+ other: 'menos de %{count} segundos'
95
+
96
+ x_seconds:
97
+ one: '1 segundo'
98
+ other: '%{count} segundos'
99
+
100
+ less_than_x_minutes:
101
+ one: 'menos de um minuto'
102
+ other: 'menos de %{count} minutos'
103
+
104
+ x_minutes:
105
+ one: '1 minuto'
106
+ other: '%{count} minutos'
107
+
108
+ about_x_hours:
109
+ one: 'aproximadamente 1 hora'
110
+ other: 'aproximadamente %{count} horas'
111
+
112
+ x_days:
113
+ one: '1 dia'
114
+ other: '%{count} dias'
115
+
116
+ about_x_months:
117
+ one: 'aproximadamente 1 mês'
118
+ other: 'aproximadamente %{count} meses'
119
+
120
+ x_months:
121
+ one: '1 mês'
122
+ other: '%{count} meses'
123
+
124
+ about_x_years:
125
+ one: 'aproximadamente 1 ano'
126
+ other: 'aproximadamente %{count} anos'
127
+
128
+ over_x_years:
129
+ one: 'mais de 1 ano'
130
+ other: 'mais de %{count} anos'
131
+
132
+ almost_x_years:
133
+ one: 'quase 1 ano'
134
+ other: 'quase %{count} anos'
135
+
136
+ prompts:
137
+ year: "Ano"
138
+ month: "Mês"
139
+ day: "Dia"
140
+ hour: "Hora"
141
+ minute: "Minuto"
142
+ second: "Segundos"
143
+
144
+ support:
145
+ array:
146
+ words_connector: ", "
147
+ two_words_connector: " e "
148
+ last_word_connector: " e "
149
+
150
+ helpers:
151
+ select:
152
+ prompt: "Selecione"
153
+
154
+ submit:
155
+ create: 'Criar %{model}'
156
+ update: 'Alterar %{model}'
157
+ submit: 'Gravar %{model}'
158
+
159
+ errors:
160
+ format: "%{attribute} %{message}"
161
+
162
+ messages:
163
+ inclusion: "não está incluído na lista"
164
+ exclusion: "não está disponível"
165
+ invalid: "não é válido"
166
+ confirmation: "não está de acordo com a confirmação"
167
+ accepted: "deve ser aceito"
168
+ empty: "não pode ficar vazio"
169
+ blank: "não pode ficar em branco"
170
+ too_long: "é muito longo (máximo: %{count} caracteres)"
171
+ too_short: "é muito curto (mínimo: %{count} caracteres)"
172
+ wrong_length: "não possui o tamanho esperado (%{count} caracteres)"
173
+ not_a_number: "não é um número"
174
+ not_an_integer: "não é um número inteiro"
175
+ greater_than: "deve ser maior do que %{count}"
176
+ greater_than_or_equal_to: "deve ser maior ou igual a %{count}"
177
+ equal_to: "deve ser igual a %{count}"
178
+ less_than: "deve ser menor do que %{count}"
179
+ less_than_or_equal_to: "deve ser menor ou igual a %{count}"
180
+ odd: "deve ser ímpar"
181
+ even: "deve ser par"
182
+
183
+ attributes:
184
+ created_at: "Criado em"
185
+ updated_at: "Atulizado em"
186
+
187
+ activerecord:
188
+ errors:
189
+ messages:
190
+ taken: "já está em uso"
191
+ record_invalid: "A validação falhou: %{errors}"
192
+ models:
193
+ user: Usuários
194
+ attributes:
195
+ user:
196
+ username: Usuário
197
+ email: E-mail
198
+ password: Senha
199
+ password_confirmation: Confirmar Senha
200
+
201
+ authlogic:
202
+ error_messages:
203
+ email_invalid: endereço de e-mail invávildo
204
204
  login_invalid: use somente letras, números, espaços e .-_@