From: Tom Hughes Date: Fri, 22 May 2009 23:42:17 +0000 (+0000) Subject: Don't ask the backend directly for the available locales - just ask X-Git-Tag: live~7358^2~78 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/2bf56c7be32bd05d97aa08298c649478cf82d4af?hp=e3d4948daaed75c1019ad5f6f719387bf95c3a82 Don't ask the backend directly for the available locales - just ask the I18n module and let it worry about where to find them. --- diff --git a/app/controllers/application.rb b/app/controllers/application.rb index d902eac75..97332ba01 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -102,7 +102,7 @@ class ApplicationController < ActionController::Base end def set_locale - request.compatible_language_from(I18n.backend.available_locales) + request.compatible_language_from(I18n.available_locales) end def api_call_handle_error