# Trying to do simple model I18n, not succeeding

**URL:** <https://www.ruby-forum.com/t/trying-to-do-simple-model-i18n-not-succeeding/161080>\
**Category:** Rails I18n\
**Created:** [February 23, 2009, 9:11am UTC](https://www.ruby-forum.com/t/trying-to-do-simple-model-i18n-not-succeeding/161080 "2009-02-23T09:11:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![richp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@richp](https://www.ruby-forum.com/u/richp)\
**Post date:** [February 23, 2009, 9:11am UTC](https://www.ruby-forum.com/t/trying-to-do-simple-model-i18n-not-succeeding/161080/1 "2009-02-23T09:11:58Z")

</div>

Basically, all my tables look like this:

create\_table “countries”, :force =\> true do |t|  
t.string “name\_en”  
t.string “name\_ja”  
end

If the locale is set to ‘en’, I want Country.name to return  
Country.name\_en. Is there a way to do this?

Rich

---

<div class="post-metadata">

**Author:** ![richp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@richp](https://www.ruby-forum.com/u/richp)\
**Post date:** [February 23, 2009, 4:56pm UTC](https://www.ruby-forum.com/t/trying-to-do-simple-model-i18n-not-succeeding/161080/2 "2009-02-23T16:56:42Z")

</div>

Rich Pav a écrit :

> Basically, all my tables look like this:
> 
> create\_table “countries”, :force =\> true do |t|  
> t.string “name\_en”  
> t.string “name\_ja”  
> end
> 
> If the locale is set to ‘en’, I want Country.name to return  
> Country.name\_en. Is there a way to do this?

You are looking for the great translatable\_columns plugin by Iain :

> **[GitHub - iain/translatable\_columns: Provides proxies for localized columns,...](https://github.com/iain/translatable_columns/tree/master)**
>
> master
