Some of our JavaScript files have UI messages but we don't want to
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 2 Oct 2009 20:19:28 +0000 (20:19 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 2 Oct 2009 20:19:28 +0000 (20:19 +0000)
commitb0e15608750417351c2ac3d9ffa6d13fcf6c8ccb
tree6348c81d90f73d9e46a885f3075c24d133843e1f
parentd0f228879741a8d35ae7d9e98d3fe3c9e227a1fa
Some of our JavaScript files have UI messages but we don't want to
make them dynamic.

So I'm creating a globally scoped JavaScript array called rails_i18n
which holds some of these messages. It's loaded in <head> before any
of the JavaScript files so it should always be available.
app/views/layouts/site.html.erb
config/locales/en.yml
public/javascripts/site.js