summaryrefslogtreecommitdiff
path: root/config/initializers
diff options
context:
space:
mode:
authorRuben Davila <rdavila84@gmail.com>2017-05-05 20:50:48 -0500
committerRuben Davila <rdavila84@gmail.com>2017-05-05 20:50:48 -0500
commit61d0ac55d47b92668ce95b1e800e879f95327a48 (patch)
treebe72d0817cd289f1f201c9c7384f48f256898827 /config/initializers
parenta4c90a41958b1b7cc2a350054d7cc39933cfe3b9 (diff)
downloadgitlab-ce-61d0ac55d47b92668ce95b1e800e879f95327a48.tar.gz
Use an absolute path for locale path in FastGettext configuse-absolute-path-for-gettext-config
Unicorn was unable to start due to this bad config on Omnibus.
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/fast_gettext.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/fast_gettext.rb b/config/initializers/fast_gettext.rb
index bea85b43b95..a69fe0c902e 100644
--- a/config/initializers/fast_gettext.rb
+++ b/config/initializers/fast_gettext.rb
@@ -1,4 +1,4 @@
-FastGettext.add_text_domain 'gitlab', path: 'locale', type: :po
+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