gitlab-org--gitlab-foss/config/initializers/fast_gettext.rb
Ruben Davila 61d0ac55d4 Use an absolute path for locale path in FastGettext config
Unicorn was unable to start due to this bad config on Omnibus.
2017-05-05 20:50:48 -05:00

5 lines
258 B
Ruby

FastGettext.add_text_domain 'gitlab', path: File.join(Rails.root, 'locale'), type: :po
FastGettext.default_text_domain = 'gitlab'
FastGettext.default_available_locales = Gitlab::I18n.available_locales
I18n.available_locales = Gitlab::I18n.available_locales