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

helzer wrote:

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

ilans-mac:~ ilan$ gem list -r | grep localization
localization_generator (1.0.8, 1.0.7, 1.0.6, 1.0.5, 1.0.4, 1.0.3, 1.0.2,
1.0.1, 1.0.0)
Ruby application internationalization and localization library
ilans-mac:~ ilan$

On 3/19/07, helzer [email protected] wrote:

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.

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

Isak

Hi Isak,

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

Thanks,
Amir