How to render language dependent .rhtml templates?

I want to localize my website, and do so with minimal server load increase. Most of the texts comes from .rhtml templates, so I figure, if the application rendered .rhtml pages per language, it would be more efficient than going through a database / gettext calls for every sentence.

Any idea on how I can do that on a global site basis?

Of course, dynamically generated text will have to go through gettext or other string replacement system.

Thanks, Amir

See <http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html#Localized+templates+for+Views%2FActionMailer&gt;\.

Isak

Hi Isak,

That's called hitting the nail on the head! Exactly what I was looking for.

Thanks, Amir