Il 30/10/12 12:12, Mauro ha scritto:
> def update
> ....
> if @unsafe_building.update_attributes(params[:company])
> format.html { redirect_to @unsafe_building, notice:
> t('flash.actions.update.notice') }
>
> in it.yml locale file I have:
>
> it:
> flash:
> actions:
> create:
> notice: "%{model} č stato creato con successo."
> update:
> notice: "%{model} č stato modificato con successo."
>
> The message, when I update, is:
>
> %{model} č stato modificato con successo.
>
> Why %{model} is not translated?
Maybe you should pass model as argument?
t('flash.actions.update.notice', :model => @unsafe_building.class)
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment