Commit 9e0361b92d1aad0326e21251bc8fb9d6f4eb1b1d

Authored by Rodrigo Souto
1 parent 2f8c7665

Use correct string interpolation method for translation

plugins/custom_forms/controllers/custom_forms_plugin_myprofile_controller.rb
... ... @@ -23,7 +23,7 @@ class CustomFormsPluginMyprofileController < MyProfileController
23 23  
24 24 respond_to do |format|
25 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 27 format.html { redirect_to(:action=>'index') }
28 28 else
29 29 format.html { render :action => 'new' }
... ... @@ -43,7 +43,7 @@ class CustomFormsPluginMyprofileController < MyProfileController
43 43  
44 44 respond_to do |format|
45 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 47 format.html { redirect_to(:action=>'index') }
48 48 else
49 49 session['notice'] = _('Form could not be updated')
... ...