From: Tom Hughes Date: Sun, 31 May 2009 17:10:03 +0000 (+0000) Subject: Log missing translations. X-Git-Tag: live~7384^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/a493d3676d7600dd79a3421b6c0fccd240a0a222 Log missing translations. --- diff --git a/config/initializers/i18n.rb b/config/initializers/i18n.rb new file mode 100644 index 000000000..54a925e3c --- /dev/null +++ b/config/initializers/i18n.rb @@ -0,0 +1,4 @@ +require 'globalize/i18n/missing_translations_log_handler' + +I18n.missing_translations_logger = Logger.new("#{RAILS_ROOT}/log/missing_translations.log") +I18n.exception_handler = :missing_translations_log_handler