#11 new
Josh H

Translation Helper doesn't record missing translations to log

Reported by Josh H | January 11th, 2009 @ 03:23 AM

I18n.t raises a MissingTranslationData exception before writing the missing translation to the log:


    rescue I18n::ArgumentError => e
      raise e if options[:raise]
      send(@@exception_handler, e, locale, key, options)
    end

Since the translation helper sets the :raise option to true, the missing translation never gets logged. Any reason not to log the miss before raising the exception?

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Internationalization API for Ruby.

This library is used in Ruby on Rails but also suited for use in other contexts.

People watching this ticket

Tags

Pages