Ruby Forum Rails I18n > how to detect translated fields?

Posted by Patrick Aljord (Guest)
on 08.06.2007 18:48
(Received via mailing list)
Hey all,
I use globalize intern translation like this:

class Media < ActiveRecord::Base
self.keep_translations_in_model = true
  translates :name, :base_as_default => true
end

and I use it for several models. Is there a globalize function that
returns all the translated fields of a given model?
Also, is there a function that returns the array of all the defined
language in environment.rb?

thanx in advance

Pat