diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb index 6a796b050e381ce8edf6559a97c54fd1a98ef972..67dd09e6b19640608b2adb8f73cca863442bf019 100644 --- a/app/views/devise/passwords/edit.html.erb +++ b/app/views/devise/passwords/edit.html.erb @@ -1,24 +1,24 @@ -<h2>Change your password</h2> +<h2>Mudar sua senha</h2> <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %> <%= devise_error_messages! %> <%= f.hidden_field :reset_password_token %> <div class="field"> - <%= f.label :password, "New password" %><br /> + <%= f.label :password, "Nova Senha" %><br /> <% if @minimum_password_length %> - <em>(<%= @minimum_password_length %> characters minimum)</em><br /> + <em>(<%= @minimum_password_length %> caractéres no mÃnimo)</em><br /> <% end %> <%= f.password_field :password, autofocus: true, autocomplete: "off" %> </div> <div class="field"> - <%= f.label :password_confirmation, "Confirm new password" %><br /> + <%= f.label :password_confirmation, "Confirme a nova senha" %><br /> <%= f.password_field :password_confirmation, autocomplete: "off" %> </div> <div class="actions"> - <%= f.submit "Change my password" %> + <%= f.submit "Mudar minha senha" %> </div> <% end %> diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index 3d6d11aae2e417e9ec2cc88726c374a4b3e8629c..471eca976a3cb7000cfb5191816b5fd29115054d 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -1,4 +1,4 @@ -<h2>Forgot your password?</h2> +<h2>Esqueceu sua senha?</h2> <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %> <%= devise_error_messages! %> @@ -9,7 +9,7 @@ </div> <div class="actions"> - <%= f.submit "Send me reset password instructions" %> + <%= f.submit "Envie-me instruções para atualizar a senha" %> </div> <% end %> diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index 9a894469bc0691b04f35cfa7aa4d622dc030f0fa..97a0c18003ea6daedf31190ec395244a701cf5bd 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -1,4 +1,4 @@ -<h2>Edit <%= resource_name.to_s.humanize %></h2> +<h2>Editar <%= resource_name.to_s.humanize %></h2> <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: {method: :put, multipart: true}) do |f| %> <%= devise_error_messages! %> @@ -23,7 +23,7 @@ <% end %> <div class="field"> - <%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br/> + <%= f.label :password, "Nova senha" %> <i>(deixe em branco caso não queira mudar a senha)</i><br/> <%= f.password_field :password, autocomplete: "off" %> </div> @@ -33,17 +33,17 @@ </div> <div class="field"> - <%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br/> + <%= f.label :current_password %> <i>(precisamos da sua senha atual para confirmar suas mudanças)</i><br/> <%= f.password_field :current_password, autocomplete: "off" %> </div> <div class="actions"> - <%= f.submit "Update" %> + <%= f.submit "Salvar" %> </div> <% end %> -<h3>Cancel my account</h3> +<h3>Excluir minha conta</h3> -<p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: {confirm: "Are you sure?"}, method: :delete %></p> +<p><%= button_to "Excluir", registration_path(resource_name), data: {confirm: "Você tem certeza?"}, method: :delete %></p> -<%= link_to "Back", :back %> +<%= link_to "Voltar", :back %> diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb index bd68632dc68309badc1558a93fc2117eac7cda5e..02c2f0c48f78b0e96de25a6b9249822ae206cda5 100644 --- a/app/views/devise/registrations/new.html.erb +++ b/app/views/devise/registrations/new.html.erb @@ -1,4 +1,4 @@ -<h2>Sign up</h2> +<h2>Cadastrar</h2> <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> <%= devise_error_messages! %> @@ -16,7 +16,7 @@ <div class="field"> <%= f.label :password %> <% if @minimum_password_length %> - <em>(<%= @minimum_password_length %> characters minimum)</em> + <em>(<%= @minimum_password_length %> caractéres mÃnimos)</em> <% end %><br/> <%= f.password_field :password, autocomplete: "off" %> </div> @@ -27,7 +27,7 @@ </div> <div class="actions"> - <%= f.submit "Sign up" %> + <%= f.submit "Cadastrar" %> </div> <% end %> diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index b261cfd152a59f959e4177df4aae64416d75270d..3f55ecb667ef8357a39facdc431cf24750abb4b6 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -1,4 +1,4 @@ -<h2>Log in</h2> +<h2>Entrar</h2> <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %> <div class="field"> @@ -19,7 +19,7 @@ <% end -%> <div class="actions"> - <%= f.submit "Log in" %> + <%= f.submit "Entrar" %> </div> <% end %> diff --git a/app/views/devise/shared/_links.html.erb b/app/views/devise/shared/_links.html.erb index cd795adb68004f76b9e8993716e042f04cd8b7eb..cd4f77afa2407f6c35a51cae7d503d7feaeaf245 100644 --- a/app/views/devise/shared/_links.html.erb +++ b/app/views/devise/shared/_links.html.erb @@ -1,25 +1,25 @@ <%- if controller_name != 'sessions' %> - <%= link_to "Log in", new_session_path(resource_name) %><br /> + <%= link_to "Entrar", new_session_path(resource_name) %><br /> <% end -%> <%- if devise_mapping.registerable? && controller_name != 'registrations' %> - <%= link_to "Sign up", new_registration_path(resource_name) %><br /> + <%= link_to "Cadastrar", new_registration_path(resource_name) %><br /> <% end -%> <%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %> - <%= link_to "Forgot your password?", new_password_path(resource_name) %><br /> + <%= link_to "Esqueceu sua senha?", new_password_path(resource_name) %><br /> <% end -%> <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> - <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br /> + <%= link_to "Não recebeu instruções de confirmação?", new_confirmation_path(resource_name) %><br /> <% end -%> <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %> - <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %><br /> + <%= link_to "Não recebeu instruções de destravamento?", new_unlock_path(resource_name) %><br /> <% end -%> <%- if devise_mapping.omniauthable? %> <%- resource_class.omniauth_providers.each do |provider| %> - <%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) %><br /> + <%= link_to "Entre com #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) %><br /> <% end -%> <% end -%> diff --git a/config/locales/pt-BR.yml b/config/locales/pt-BR.yml index a3bd7a6b52c6b01d5f67df11a09fe9e94bb48dea..71977fe5551090ba930d3331fd148e0eb6c93ac4 100644 --- a/config/locales/pt-BR.yml +++ b/config/locales/pt-BR.yml @@ -118,6 +118,10 @@ pt-BR: user: name: "Nome" email: "Email" + avatar: "Foto de perfil" + password: "Senha" + password_confirmation: "Confirme sua senha" + current_password: "Senha atual" errors: template: header: