http://www.hobocentral.net/tagdef/hobo_rapid/forms/error-messages
<h2 param='heading'>
<t model='&this.class.model_name.human' count='&this.errors.size'
key='activerecord.errors.template.header'>
<%= model = this.class.model_name.human
count = this.errors.size
count==1 ? "1 error prohibited this #{model} from being saved" :
"#{count} errors prohibited this #{model} from being saved"
%>
...
>From there (the bootstrap version is similar), it looks like there's a key but
>it's not broken down per model (I've only barely touched translations and it's
>been awhile so I could be wrong).
You could override the error-messages -> heading on the particular form or in
general to allow that.
On Friday, November 15, 2013 3:43:06 PM UTC-7, donz wrote:
>
> Hi Everyone!
>
> I need to customize and later internationalize some error messages as in:
>
> Current in en:
> 2 errors prohibited this Showing from being saved
>
>
> Desired:
> 2 errors prohibited this Showing Request from being saved
>
> effectively overwriting the model name 'showing' with the equivalent of
> 'showing_request' (unfortunately 'showing_request' is the name of a
> different model in the app so it would take some major editing to refactor
> the second to something else and the first to the second :'( ).
>
> similarly using es, I want to translate it to something like:
>
> 2 errores prohÃben esta inmobiliaria mostrando petición de ser escrita en
> el fichero (pardon my Spanish, I'll have a friend do the actual
> translation.) :-D ,
>
> I looked in the *en.yml and *es.yml files (like I used to in plain old
> RoR), but could not find any hint of the error message(s).
>
> Can't find any way of replacing a param in the dryml, either.
>
> Any ideas?
>
> Thanks,
>
> Don Ziesig
>
>
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/groups/opt_out.