简体   繁体   中英

I18n for database tables in Rails 3?

How do I create translations to my database table rows?

I recall that you in PHP Symfony could have one table with english rows, another with swedish rows. And in your controller you just specify the language you would like to use and your model would use the appropriate table.

Is this possible in Rails?

Thanks!

You should look at globalize gem

https://github.com/svenfuchs/globalize3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM