]> git.openstreetmap.org Git - rails.git/commit
Potlatch's i18n support predates our Rails i18n effort, so it was
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 14 Jul 2009 21:55:40 +0000 (21:55 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 14 Jul 2009 21:55:40 +0000 (21:55 +0000)
commit5d33aaa3322271f83ba6e047edb475ce54bf7330
treed5faadab3443694efbf550cb18621646951163af
parent212d56ce884b5f1ff036a1508ffe397381cf7e1b
Potlatch's i18n support predates our Rails i18n effort, so it was
still doing its own language detection.

Scrap that and use I18n.locale instead, now Potlatch is guaranteed to
use whatever translation the rest of the site uses.

I've tested this by switching the language in preferences back and
forth, and also ensured that Potlatch will fall back on English if the
specified language doesn't exist in its list of translations.
app/controllers/amf_controller.rb