module Rad::Controller::Localized inherited do before :prepare_locale end protected def prepare_locale language = rad.environment.language I18n.locale = params.l || language # Delete l from params if language is the same as default params.delete :l if params.l == language end end