# Very simple Globalize1 view translation compatibility layer

**URL:** <https://www.ruby-forum.com/t/very-simple-globalize1-view-translation-compatibility-layer/182898>\
**Category:** Rails I18n\
**Created:** [February 4, 2010, 2:35pm UTC](https://www.ruby-forum.com/t/very-simple-globalize1-view-translation-compatibility-layer/182898 "2010-02-04T14:35:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![malesca](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c89c15/32.png) [@malesca](https://www.ruby-forum.com/u/malesca)\
**Post date:** [February 4, 2010, 2:35pm UTC](https://www.ruby-forum.com/t/very-simple-globalize1-view-translation-compatibility-layer/182898/1 "2010-02-04T14:35:24Z")

</div>

Here: [Globalize1 view translation compatibility layer for Rails i18n. · GitHub](http://gist.github.com/294609)

Makes String#t and String#/ work mostly like they do in Globalize1,  
without having Globalize1 installed. Useful if you’re moving to Rails  
i18n and don’t want to translate everything right away.

Assumes a two-locale app. Does not handle String#t with arguments, and  
I’m sure more is missing that I haven’t used or didn’t think of.  
Please fork and contribute fixes.

I would add it to the i18n wiki, but I can’t find an edit link.
