Forum: Rails I18n hash of all translations

Posted by Benjamin Moses Lieb (Guest)
on 2010-11-24 18:23
(Received via mailing list)
I'm trying to switch from yaml translation files to database
translations.

I thought I would just access >> I18n.backend.send(:translations) from
a rake task and insert them all, but from the rails console, that is
producing { }. Why do I get no translations?
Posted by Krzysztof Knapik (Guest)
on 2010-11-24 18:38
(Received via mailing list)
Translations, are not loaded by default. Use
I18n.backend.send(:init_translations) or call  I18n.translate to load 
them.

2010/11/24 Benjamin Moses Lieb <red@pixelearth.net>
Posted by Benjamin Moses Lieb (Guest)
on 2010-11-24 18:43
(Received via mailing list)
I freaking love you. This has taken way too long to figure out. Thank
you Thank you. : )

On Nov 24, 12:37pm, Krzysztof Knapik <krzysztof.kna...@gmail.com>
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.