Mickiii
2013-Jun-19 19:48 UTC
Occasional "translation missing" error, even though translation is present
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.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/fe4bf183-5f4d-4025-95a4-3e917ca174a0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Mickiii
2013-Jun-19 19:49 UTC
Re: Occasional "translation missing" error, even though translation is present
I forgot to add, that I am on Rails 3.2.13 and Ruby 2.0.0p195 On Wednesday, June 19, 2013 9:48:19 PM UTC+2, Mickiii wrote:> > 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. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/90759a85-13b9-4969-a563-865d00a2bf8a%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.