Forum: Rails I18n Very simple Globalize1 view translation compatibility layer

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4a551074ddba4460f95d011c47190d0e?d=identicon&s=25 Henrik --- (malesca)
on 2010-02-04 14:35
(Received via mailing list)
Here: 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.
This topic is locked and can not be replied to.