Commit 9e0361b92d1aad0326e21251bc8fb9d6f4eb1b1d
1 parent
2f8c7665
Exists in
master
and in
27 other branches
Use correct string interpolation method for translation
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') |