Commit 9f97deae889e1a51481a8ad292f08f8f8f9f1712
1 parent
8f464d5c
Exists in
master
and in
22 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,10 +62,10 @@ class ManageProductsController < ApplicationController | ||
62 | @consumption = @profile.consumptions.build(params[:consumption]) | 62 | @consumption = @profile.consumptions.build(params[:consumption]) |
63 | if request.post? | 63 | if request.post? |
64 | if @consumption.save | 64 | if @consumption.save |
65 | - flash[:notice] = _('Product succesfully created') | 65 | + flash[:notice] = _('Raw material succesfully created') |
66 | redirect_to :action => 'index' | 66 | redirect_to :action => 'index' |
67 | else | 67 | else |
68 | - flash[:notice] = _('Could not create the product') | 68 | + flash[:notice] = _('Could not create the raw material') |
69 | end | 69 | end |
70 | end | 70 | end |
71 | end | 71 | end |
@@ -73,9 +73,9 @@ class ManageProductsController < ApplicationController | @@ -73,9 +73,9 @@ class ManageProductsController < ApplicationController | ||
73 | def destroy_consumption | 73 | def destroy_consumption |
74 | @consumption = @profile.consumptions.find(params[:id]) | 74 | @consumption = @profile.consumptions.find(params[:id]) |
75 | if @consumption.destroy | 75 | if @consumption.destroy |
76 | - flash[:notice] = _('Product succesfully removed') | 76 | + flash[:notice] = _('Raw material succesfully removed') |
77 | else | 77 | else |
78 | - flash[:notice] = _('Could not remove the product') | 78 | + flash[:notice] = _('Could not remove the raw material') |
79 | end | 79 | end |
80 | redirect_back_or_default :action => 'index' | 80 | redirect_back_or_default :action => 'index' |
81 | end | 81 | end |
@@ -84,10 +84,10 @@ class ManageProductsController < ApplicationController | @@ -84,10 +84,10 @@ class ManageProductsController < ApplicationController | ||
84 | @consumption = @profile.consumptions.find(params[:id]) | 84 | @consumption = @profile.consumptions.find(params[:id]) |
85 | if request.post? | 85 | if request.post? |
86 | if @consumption.update_attributes(params[:consumption]) | 86 | if @consumption.update_attributes(params[:consumption]) |
87 | - flash[:notice] = _('Consumed product succesfully updated') | 87 | + flash[:notice] = _('Raw material succesfully updated') |
88 | redirect_back_or_default :action => 'index' | 88 | redirect_back_or_default :action => 'index' |
89 | else | 89 | else |
90 | - flash[:notice] = _('Could not update the consumed product') | 90 | + flash[:notice] = _('Could not update the raw material') |
91 | end | 91 | end |
92 | end | 92 | end |
93 | end | 93 | end |