default translations for AR timestamps?

8 views
Skip to first unread message

jcangas

unread,
Nov 13, 2009, 1:03:21 PM11/13/09
to rails-i18n
I need translate created_at & uptdated_at for all my models. do you
know a DRY way to do that? I mean 'don't write the translation for
every model ...
Moreover, all my models containt a field named 'code' that also need
be translated ..
thanks in advance

Hans Marmolin

unread,
Nov 13, 2009, 6:29:36 PM11/13/09
to rails...@googlegroups.com
If you mean translation of  the fieldnames, then there is a plugin that handle all translations of the same fieldname i different models trough one key 
You find it at GITHUB. Install by

____________________________________________
Hans Marmolin
Prof Cognitive Ergonomics
St: Larsgatan 50, 58224 Linköping, Sweden





jcangas

unread,
Dec 2, 2009, 5:18:49 AM12/2/09
to rails-i18n
thanks: just what I need!
Reply all
Reply to author
Forward
0 new messages