# Best practices in Translation

**URL:** <https://www.ruby-forum.com/t/best-practices-in-translation/133368>\
**Category:** Rails\
**Created:** [March 31, 2008, 12:12am UTC](https://www.ruby-forum.com/t/best-practices-in-translation/133368 "2008-03-31T00:12:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fero46](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/fbc32d/32.png) [@fero46](https://www.ruby-forum.com/u/fero46)\
**Post date:** [March 31, 2008, 12:12am UTC](https://www.ruby-forum.com/t/best-practices-in-translation/133368/1 "2008-03-31T00:12:50Z")

</div>

Hi

I thought about a way to translate a website. I thought about a Model,  
for example called Language, with a Table in the DB, that dynamicly  
load textphrase in the webpage.

Maybe like this :

@text= Language.find\_by\_text(‘some text to translate’)  
@text.getText(Cookie[:language]

Is that a good way to translate a webpage with a DB backend ? What is  
the best practices for translation

Fero46

BTW: Sorry for my bad english.

---

<div class="post-metadata">

**Author:** ![fero46](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/fbc32d/32.png) [@fero46](https://www.ruby-forum.com/u/fero46)\
**Post date:** [March 31, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/best-practices-in-translation/133368/2 "2008-03-31T18:22:11Z")

</div>

Here’s one solution: [http://www.globalize-rails.org/globalize/](http://www.globalize-rails.org/globalize/)
