Occasional "translation missing" error, even though translation is present

354 views
Skip to first unread message

Mickiii

unread,
Jun 19, 2013, 3:48:19 PM6/19/13
to rubyonra...@googlegroups.com
Hi, 

I have a little issue that I am unsure how to debug / solve.

I am building an application that uses localized number formatting, and I noticed that sometimes it does not send the necessary variables to client_side_validation, but simply returns "translation missing" error. When I reload the page, it sometimes start working again, and moments later when I reload, the "translation missing" error shows once again. 

Basically I have a da.yml file with the following contents:

da:
  number:
    format:
      delimiter: .
      precision: 2
      separator: ! ','
      significant: false
      strip_insignificant_zeros: false


If I do this: I18n.t("number.format.delimiter") or I18n.t("number.format.separator") I see this behaviour, but if I request one of the other entries, i.e. precision or strip_insignifican_zeros it always works as expected. It is the same issue if I flip to my en.yml file. 

Why is this? Any ideas what to test / look for?

Thanks in advance for any help on this.

Mickiii

unread,
Jun 19, 2013, 3:49:44 PM6/19/13
to rubyonra...@googlegroups.com
I forgot to add, that I am on Rails 3.2.13 and Ruby 2.0.0p195
Reply all
Reply to author
Forward
0 new messages