discourse/discourse — pull request #396 by kubabrecka (2013-03-08 15:23:10+00:00)
Title: apply locale in sidekiq jobs

Currently sidekiq jobs run in 'en' locale, which causes for example emails to be sent in English, even when `SiteSetting.default_locale` is set to other languages. This simply sets `I18n.locale = SiteSetting.default_locale` before every job to execute.