added the capacity to translate attributes like activerecord