Commit 9f97deae889e1a51481a8ad292f08f8f8f9f1712
1 parent
8f464d5c
Exists in
master
and in
29 other branches
ActionItem328: oops: more s/consumed products/raw materials/g
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1890 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
app/controllers/my_profile/manage_products_controller.rb
... | ... | @@ -62,10 +62,10 @@ class ManageProductsController < ApplicationController |
62 | 62 | @consumption = @profile.consumptions.build(params[:consumption]) |
63 | 63 | if request.post? |
64 | 64 | if @consumption.save |
65 | - flash[:notice] = _('Product succesfully created') | |
65 | + flash[:notice] = _('Raw material succesfully created') | |
66 | 66 | redirect_to :action => 'index' |
67 | 67 | else |
68 | - flash[:notice] = _('Could not create the product') | |
68 | + flash[:notice] = _('Could not create the raw material') | |
69 | 69 | end |
70 | 70 | end |
71 | 71 | end |
... | ... | @@ -73,9 +73,9 @@ class ManageProductsController < ApplicationController |
73 | 73 | def destroy_consumption |
74 | 74 | @consumption = @profile.consumptions.find(params[:id]) |
75 | 75 | if @consumption.destroy |
76 | - flash[:notice] = _('Product succesfully removed') | |
76 | + flash[:notice] = _('Raw material succesfully removed') | |
77 | 77 | else |
78 | - flash[:notice] = _('Could not remove the product') | |
78 | + flash[:notice] = _('Could not remove the raw material') | |
79 | 79 | end |
80 | 80 | redirect_back_or_default :action => 'index' |
81 | 81 | end |
... | ... | @@ -84,10 +84,10 @@ class ManageProductsController < ApplicationController |
84 | 84 | @consumption = @profile.consumptions.find(params[:id]) |
85 | 85 | if request.post? |
86 | 86 | if @consumption.update_attributes(params[:consumption]) |
87 | - flash[:notice] = _('Consumed product succesfully updated') | |
87 | + flash[:notice] = _('Raw material succesfully updated') | |
88 | 88 | redirect_back_or_default :action => 'index' |
89 | 89 | else |
90 | - flash[:notice] = _('Could not update the consumed product') | |
90 | + flash[:notice] = _('Could not update the raw material') | |
91 | 91 | end |
92 | 92 | end |
93 | 93 | end | ... | ... |