# Language version of rhtml templates

**URL:** <https://www.ruby-forum.com/t/language-version-of-rhtml-templates/91292>\
**Category:** Rails I18n\
**Created:** [April 6, 2007, 10:57am UTC](https://www.ruby-forum.com/t/language-version-of-rhtml-templates/91292 "2007-04-06T10:57:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![braver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a88e57/32.png) [@braver](https://www.ruby-forum.com/u/braver)\
**Post date:** [April 6, 2007, 10:57am UTC](https://www.ruby-forum.com/t/language-version-of-rhtml-templates/91292/1 "2007-04-06T10:57:46Z")

</div>

I have a rails app, the lovely opinion forum, I’d like to globalize –  
it uses a bunch of rhtml templates with hard-coded English text.

Should I change all the embedded text into the ugly \<%= ‘Msg’.t %\>  
references with globalize, or rather can I gave language-specific rhtml  
files? I realize it may be more work and fuzz to keep them in sync  
though…

Now I was just looking at options and GNU suggests gettext – is  
globalize using gettext or is it an alternative?

Cheers,  
Alexy

---

<div class="post-metadata">

**Author:** ![braver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a88e57/32.png) [@braver](https://www.ruby-forum.com/u/braver)\
**Post date:** [April 13, 2007, 1:33pm UTC](https://www.ruby-forum.com/t/language-version-of-rhtml-templates/91292/2 "2007-04-13T13:33:58Z")

</div>

Hey…

> Should I change all the embedded text into the ugly \<%= ‘Msg’.t %\>  
> references with globalize, or rather can I gave language-specific rhtml  
> files? I realize it may be more work and fuzz to keep them in sync  
> though…

Use separate templates, it’s easier …

> Now I was just looking at options and GNU suggests gettext – is  
> globalize using gettext or is it an alternative?

there is a separate gettext rails localisation plugin, globlize works a  
little different but has more features like model translation… we use  
globalize.

Cheers,  
Ben  
[omdb.org](http://omdb.org)
