diff options
author | DJ Mountney <dj@gitlab.com> | 2017-09-05 17:09:58 +0300 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2017-09-05 17:09:58 +0300 |
commit | f9dd41a775912a7daa8b5929a0100ae5b3c67ca2 (patch) | |
tree | a231733b3daf5e3415005a19eef76282c9e63666 /lib/tasks/gettext.rake | |
parent | d316a8c0b39652d6053238d6a14983c51714faa0 (diff) |
Do not require the simple_po_parser in the gettext rake task when in a
Diffstat (limited to 'lib/tasks/gettext.rake')
-rw-r--r-- | lib/tasks/gettext.rake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tasks/gettext.rake b/lib/tasks/gettext.rake index f7f2fa2f14c..35ba729c156 100644 --- a/lib/tasks/gettext.rake +++ b/lib/tasks/gettext.rake @@ -1,5 +1,4 @@ require "gettext_i18n_rails/tasks" -require 'simple_po_parser' namespace :gettext do # Customize list of translatable files @@ -23,6 +22,8 @@ namespace :gettext do desc 'Lint all po files in `locale/' task lint: :environment do + require 'simple_po_parser' + FastGettext.silence_errors files = Dir.glob(Rails.root.join('locale/*/gitlab.po')) |