Sha256: 55408e61c7109860110b1eb3f58b3e90a39c16b0a801a60624f5b139e707608d

Contents?: true

Size: 570 Bytes

Versions: 8

Compression:

Stored size: 570 Bytes

Contents

# frozen_string_literal: true

require 'fast_gettext/translation_repository/base'
require 'fast_gettext/translation_repository/mo'
module FastGettext
  module TranslationRepository
    # Responsibility:
    #  - find and store po files
    #  - provide access to translations in po files
    class Po < Mo
      protected

      def find_and_store_files(name, options)
        require 'fast_gettext/po_file'
        find_files_in_locale_folders("#{name}.po", options[:path]) do |_locale, file|
          PoFile.new(file, options)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fast_gettext-3.1.0 lib/fast_gettext/translation_repository/po.rb
fast_gettext-2.3.0 lib/fast_gettext/translation_repository/po.rb
fast_gettext-2.2.0 lib/fast_gettext/translation_repository/po.rb
fast_gettext-2.1.0 lib/fast_gettext/translation_repository/po.rb
fast_gettext-2.0.3 lib/fast_gettext/translation_repository/po.rb
fast_gettext-2.0.2 lib/fast_gettext/translation_repository/po.rb
fast_gettext-2.0.1 lib/fast_gettext/translation_repository/po.rb
fast_gettext-2.0.0 lib/fast_gettext/translation_repository/po.rb