redirect_tospammable_path,notice: "#{spammable.spammable_entity_type.titlecase} was submitted to Akismet successfully."
redirect_tospammable_path,notice: _("%{spammable_titlecase} was submitted to Akismet successfully.")%{spammable_titlecase: spammable.spammable_entity_type.titlecase}
else
redirect_tospammable_path,alert: 'Error with Akismet. Please check the logs for more info.'
redirect_tospammable_path,alert: _('Error with Akismet. Please check the logs for more info.')
end
end
...
...
@@ -33,7 +33,7 @@ module SpammableActions
ensure_spam_config_loaded!
ifparams[:recaptcha_verification]
flash[:alert]='There was an error with the reCAPTCHA. Please solve the reCAPTCHA again.'
flash[:alert]=_('There was an error with the reCAPTCHA. Please solve the reCAPTCHA again.')
returnrenderjson: {errors: "Project #{@project_key}/#{@repo_slug} could not be found"},status: :unprocessable_entity
returnrenderjson: {errors: _("Project %{project_repo} could not be found")%{project_repo: "#{@project_key}/#{@repo_slug}"}},status: :unprocessable_entity
redirect_toproject_branches_filtered_path(@project,state: 'all'),notice: 'Update your bookmarked URLs as filtered/sorted branches URL has been changed.'
redirect_toproject_branches_filtered_path(@project,state: 'all'),notice: _('Update your bookmarked URLs as filtered/sorted branches URL has been changed.')
flash[:notice]="Successfully scheduled a pipeline to run. Go to the <a href=\"#{project_pipelines_path(@project)}\">Pipelines page</a> for details.".html_safe