# How to detect translated fields?

**URL:** <https://www.ruby-forum.com/t/how-to-detect-translated-fields/106337>\
**Category:** Rails I18n\
**Created:** [June 8, 2007, 6:48pm UTC](https://www.ruby-forum.com/t/how-to-detect-translated-fields/106337 "2007-06-08T18:48:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![patcito](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/50afbb/32.png) [@patcito](https://www.ruby-forum.com/u/patcito)\
**Post date:** [June 8, 2007, 6:48pm UTC](https://www.ruby-forum.com/t/how-to-detect-translated-fields/106337/1 "2007-06-08T18:48:50Z")

</div>

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
