From 9e0361b92d1aad0326e21251bc8fb9d6f4eb1b1d Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Mon, 3 Nov 2014 18:51:32 +0000 Subject: [PATCH] Use correct string interpolation method for translation --- plugins/custom_forms/controllers/custom_forms_plugin_myprofile_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/custom_forms/controllers/custom_forms_plugin_myprofile_controller.rb b/plugins/custom_forms/controllers/custom_forms_plugin_myprofile_controller.rb index eec5bc9..6e684f0 100644 --- a/plugins/custom_forms/controllers/custom_forms_plugin_myprofile_controller.rb +++ b/plugins/custom_forms/controllers/custom_forms_plugin_myprofile_controller.rb @@ -23,7 +23,7 @@ class CustomFormsPluginMyprofileController < MyProfileController respond_to do |format| if @form.save - flash[:notice] = _("Custom form #{@form.name} was successfully created.") + flash[:notice] = _("Custom form %s was successfully created.") % @form.name format.html { redirect_to(:action=>'index') } else format.html { render :action => 'new' } @@ -43,7 +43,7 @@ class CustomFormsPluginMyprofileController < MyProfileController respond_to do |format| if @form.save - flash[:notice] = _("Custom form #{@form.name} was successfully updated.") + flash[:notice] = _("Custom form %s was successfully updated.") % @form.name format.html { redirect_to(:action=>'index') } else session['notice'] = _('Form could not be updated') -- libgit2 0.21.2