Commit 0e8012fe989f3c6f61fd51f8bf9047a9ca4e6ec7
Exists in
master
and in
27 other branches
Merge remote-tracking branch 'origin/master'
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
plugins/custom_forms/controllers/custom_forms_plugin_myprofile_controller.rb
@@ -23,7 +23,7 @@ class CustomFormsPluginMyprofileController < MyProfileController | @@ -23,7 +23,7 @@ class CustomFormsPluginMyprofileController < MyProfileController | ||
23 | 23 | ||
24 | respond_to do |format| | 24 | respond_to do |format| |
25 | if @form.save | 25 | if @form.save |
26 | - flash[:notice] = _("Custom form #{@form.name} was successfully created.") | 26 | + flash[:notice] = _("Custom form %s was successfully created.") % @form.name |
27 | format.html { redirect_to(:action=>'index') } | 27 | format.html { redirect_to(:action=>'index') } |
28 | else | 28 | else |
29 | format.html { render :action => 'new' } | 29 | format.html { render :action => 'new' } |
@@ -43,7 +43,7 @@ class CustomFormsPluginMyprofileController < MyProfileController | @@ -43,7 +43,7 @@ class CustomFormsPluginMyprofileController < MyProfileController | ||
43 | 43 | ||
44 | respond_to do |format| | 44 | respond_to do |format| |
45 | if @form.save | 45 | if @form.save |
46 | - flash[:notice] = _("Custom form #{@form.name} was successfully updated.") | 46 | + flash[:notice] = _("Custom form %s was successfully updated.") % @form.name |
47 | format.html { redirect_to(:action=>'index') } | 47 | format.html { redirect_to(:action=>'index') } |
48 | else | 48 | else |
49 | session['notice'] = _('Form could not be updated') | 49 | session['notice'] = _('Form could not be updated') |