I18n error #934

Closed
optimum-dulopin opened this Issue Apr 15, 2013 · 2 comments

Projects

None yet

3 participants

@optimum-dulopin

hi,
i'm trying to deal with I18n in formtastic

here my en.yml

en:
activerecord:
errors:
models:
annonce:
attributes:
ville:
blank: must be filled

models:
  annonce: Classifieds
attributes:
  annonce:
    ville: City

for the form input, everything is fine
but if form is submit with no city, it displays this message

  • Ville : must be filled

what to do so that "Ville" would be translated ?
I was also searching how to change format message but I didnt succeed. It is possible to remove #{attribute} :

thanks

@xhoy
xhoy commented May 2, 2013

+1
I was looking at the same problem. It seems that it is only posible to explicitly translate for de formtastic labels and not use the general translation for the hole moldel(s). is this a feature or a bug?

@xhoy
xhoy commented May 2, 2013

-1 i found a little bug in my nl.my maby you have the same problem.
i had:
nl:
activerecord:
attributes:
model:
attributename: translation.

But some where down the line i REDEFINED activerecord: (so it was over writen) stupid typo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment