@ -300,6 +309,7 @@ class ApplicationController < LinguaFrancaApplicationController
defi18n_exception(str,exception,locale,key)
defi18n_exception(str,exception,locale,key)
# send and email if this is production
# send and email if this is production
suppress(Exception)do
UserMailer.error_report(
UserMailer.error_report(
"A missing translation found in #{Rails.env}",
"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>",
"<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>",
@ -312,3 +322,4 @@ class ApplicationController < LinguaFrancaApplicationController
logger.info"Missing translation found for: #{key}"
logger.info"Missing translation found for: #{key}"