From 619d5b1bc1b23a8422a5f601de889c19c0eb959f Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Fri, 18 Sep 2015 18:21:27 +0200 Subject: [PATCH] FIX: Load fallback locales in Sidekiq jobs --- app/jobs/base.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/jobs/base.rb b/app/jobs/base.rb index 5441f26e87b..a187dfb682e 100644 --- a/app/jobs/base.rb +++ b/app/jobs/base.rb @@ -149,6 +149,7 @@ module Jobs begin RailsMultisite::ConnectionManagement.establish_connection(db: db) I18n.locale = SiteSetting.default_locale + I18n.fallbacks.ensure_loaded! begin execute(opts) rescue => e