Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

i18n

  • Loading branch information...
commit a2f5fdaff5453291606959f724df5c7ef7338c3d 1 parent f9598a1
@edudavid authored
View
6 app/controllers/wished_products_controller.rb
@@ -11,14 +11,14 @@ def index
end
create.response do |wants|
- wants.html { redirect_to @wished_product.wishlist, :notice => "Adicionado com sucesso.", :flash => {:notice => "Adicionado com sucesso."}}
+ wants.html { redirect_to @wished_product.wishlist, :flash => {:notice => t(:successfully_added)}}
end
update.response do |wants|
- wants.html { redirect_to @wished_product.wishlist, :notice => "Atualizado com sucesso.", :flash => {:notice => "Atualizado com sucesso."}}
+ wants.html { redirect_to @wished_product.wishlist, :flash => {:notice => t(:successfully_updated)}}
end
destroy.response do |wants|
- wants.html { redirect_to @wished_product.wishlist, :notice => "Removido com sucesso.", :flash => {:notice => "Removido com sucesso."}}
+ wants.html { redirect_to @wished_product.wishlist, :flash => {:notice => t(:successfully_removed)}}
end
end
View
2  config/locales/en.yml
@@ -26,6 +26,6 @@ en:
wishlist_is_empty: "Lista de desejos está vazia"
update_quantity: "Atualizar quantidade"
item_added_to_wishlist: "Item adicionado a lista de desejos"
- successfully_created: "Criado com sucesso!"
+ successfully_added: "Adicionado com sucesso!"
successfully_removed: "Removido com sucesso!"
successfully_updated: "Atualizado com sucesso!"
Please sign in to comment.
Something went wrong with that request. Please try again.