@ -353,39 +347,6 @@ class ApplicationController < BaseController
end
end
end
end
defi18n_exception(str,exception,locale,key)
# log it
logger.info"Missing translation found for: #{key}"
# send an email if this is production
ifRails.env.preview?||Rails.env.production?
begin
request_info={
'remote_ip'=>request.remote_ip,
'uuid'=>request.uuid,
'original_url'=>request.original_url,
'env'=>Hash.new
}
request.env.eachdo|key,value|
request_info['env'][key.to_s]=value.to_s
end
send_mail(:error_report,
"A missing translation found in #{Rails.env}",
"<p>A translation for <code>#{key}</code> in <code>#{locale.to_s}</code> was found. The text that was rendered to the user was:</p><blockquote>#{str||'nil'}</blockquote>",
exception.to_s,
nil,
request_info,
params,
current_user.id,
Time.now.strftime("%d/%m/%Y %H:%M")
)
rescueException=>exception2
logger.infoexception2.to_s
logger.infoexception2.backtrace.join("\n")
end
end
end
defset_success_message(message,is_ajax=false)
defset_success_message(message,is_ajax=false)
ifis_ajax
ifis_ajax
@success_message=message
@success_message=message
@ -613,10 +574,15 @@ class ApplicationController < BaseController
= form_tag facilitate_workshop_request_path(@this_conference.slug, @workshop.id), class: 'composition' do
= form_tag facilitate_workshop_request_path(@this_conference.slug, @workshop.id), class: :composition do
= (hidden_field_tag :workshop_id, @workshop.id) if @workshop
= (hidden_field_tag :workshop_id, @workshop.id) if @workshop
= columns(medium: 12) do
= columns(medium: 12) do
%h2=_'articles.workshops.headings.facilitate', "Request to Facilitate ‘#{@workshop.title}’", vars: { workshop_title: @workshop.title }
%h2=_'articles.workshops.headings.facilitate', "Request to Facilitate ‘#{@workshop.title}’", vars: { workshop_title: @workshop.title }
= registration_step_menu
=_('articles.workshops.paragraphs.facilitate_request','Please tell the current workshop facilitators who you are, why you want to help facilitate the workshop, and how you think you will help make the workshop better. All of the current facilitators will be emailed and they may ask more questions before approving or denying your request. Please note that this will reveal your email address to the facilitators.')
=_('articles.workshops.paragraphs.facilitate_request','Please tell the current workshop facilitators who you are, why you want to help facilitate the workshop, and how you think you will help make the workshop better. All of the current facilitators will be emailed and they may ask more questions before approving or denying your request. Please note that this will reveal your email address to the facilitators.')
=_('articles.workshops.paragraphs.facilitate_request_sent','Your request has been sent. You will receive an email once your request is approved or denied or if the current facilitators have any questions.')
=_('articles.workshops.paragraphs.facilitate_request_sent','Your request has been sent. You will receive an email once your request is approved or denied or if the current facilitators have any questions.')