Commit f9dd41a7 authored by DJ Mountney's avatar DJ Mountney Committed by Marin Jankovski

Do not require the simple_po_parser in the gettext rake task when in a

parent d316a8c0
require "gettext_i18n_rails/tasks" require "gettext_i18n_rails/tasks"
require 'simple_po_parser'
namespace :gettext do namespace :gettext do
# Customize list of translatable files # Customize list of translatable files
...@@ -23,6 +22,8 @@ namespace :gettext do ...@@ -23,6 +22,8 @@ namespace :gettext do
desc 'Lint all po files in `locale/' desc 'Lint all po files in `locale/'
task lint: :environment do task lint: :environment do
require 'simple_po_parser'
FastGettext.silence_errors FastGettext.silence_errors
files = Dir.glob(Rails.root.join('locale/*/gitlab.po')) files = Dir.glob(Rails.root.join('locale/*/gitlab.po'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment