Update translation.rb

Text and phrase as accessible attributes