Sha256: da7b33bda61e0fd4447ddfd648ecc95fd7d3c0d5fa0dd250e29c36c4e8da3190

Contents?: true

Size: 457 Bytes

Versions: 13

Compression:

Stored size: 457 Bytes

Contents

# -*- encoding : utf-8 -*-

module Phrase
  module Formats
    class Gettext < Phrase::Formats::Base
      def self.directory_for_locale(locale)
        "./#{locale.name}/"
      end

      def self.filename_for_locale(locale)
        "#{config.domain}.po"
      end

      def self.target_directory
        "locales/"
      end
      
      def self.locale_aware?
        true
      end

      def self.extensions
        [:po]
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
phrase-0.4.14 lib/phrase/formats/gettext.rb
phrase-0.4.13 lib/phrase/formats/gettext.rb
phrase-0.4.12 lib/phrase/formats/gettext.rb
phrase-0.4.11 lib/phrase/formats/gettext.rb
phrase-0.4.10 lib/phrase/formats/gettext.rb
phrase-0.4.9 lib/phrase/formats/gettext.rb
phrase-0.4.8 lib/phrase/formats/gettext.rb
phrase-0.4.7 lib/phrase/formats/gettext.rb
phrase-0.4.6 lib/phrase/formats/gettext.rb
phrase-0.4.5 lib/phrase/formats/gettext.rb
phrase-0.4.4 lib/phrase/formats/gettext.rb
phrase-0.4.3 lib/phrase/formats/gettext.rb
phrase-0.4.2 lib/phrase/formats/gettext.rb