Log missing translations.
authorTom Hughes <tom@compton.nu>
Sun, 31 May 2009 17:10:03 +0000 (17:10 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 31 May 2009 17:10:03 +0000 (17:10 +0000)
config/initializers/i18n.rb [new file with mode: 0644]

diff --git a/config/initializers/i18n.rb b/config/initializers/i18n.rb
new file mode 100644 (file)
index 0000000..54a925e
--- /dev/null
@@ -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