Commit 7199e882 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Only require `simple_po_parser` in rake task that needs it

That way we don't need to install it in production, since it's really
not needed there.
parent a3af6830
require 'simple_po_parser'
module Gitlab module Gitlab
module I18n module I18n
class PoLinter class PoLinter
......
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
......
require 'spec_helper' require 'spec_helper'
require 'simple_po_parser'
describe Gitlab::I18n::PoLinter do describe Gitlab::I18n::PoLinter do
let(:linter) { described_class.new(po_path) } let(:linter) { described_class.new(po_path) }
......
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