Sha256: cc5da2809590d9af15a0e5e04e120f65213e3f5307e711c31318a6054870dfff

Contents?: true

Size: 744 Bytes

Versions: 10

Compression:

Stored size: 744 Bytes

Contents

require 'hammer_cli/i18n'

module HammerCLIForemanRemoteExecution
  module I18n

    class LocaleDomain < HammerCLI::I18n::LocaleDomain

      def translated_files
        Dir.glob(File.join(File.dirname(__FILE__), '../**/*.rb'))
      end

      def locale_dir
        File.join(File.dirname(__FILE__), '../../locale')
      end

      def domain_name
        'hammer-cli-foreman-remote-execution'
      end
    end

    class SystemLocaleDomain < LocaleDomain

      def locale_dir
        '/usr/share/locale'
      end

    end

  end
end

domain = [HammerCLIForemanRemoteExecution::I18n::LocaleDomain.new, HammerCLIForemanRemoteExecution::I18n::SystemLocaleDomain.new].find { |d| d.available? }
HammerCLI::I18n.add_domain(domain) if domain

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hammer_cli_foreman_remote_execution-0.3.0 lib/hammer_cli_foreman_remote_execution/i18n.rb
hammer_cli_foreman_remote_execution-0.2.3 lib/hammer_cli_foreman_remote_execution/i18n.rb
hammer_cli_foreman_remote_execution-0.2.2 lib/hammer_cli_foreman_remote_execution/i18n.rb
hammer_cli_foreman_remote_execution-0.2.1 lib/hammer_cli_foreman_remote_execution/i18n.rb
hammer_cli_foreman_remote_execution-0.2.0 lib/hammer_cli_foreman_remote_execution/i18n.rb
hammer_cli_foreman_remote_execution-0.1.2 lib/hammer_cli_foreman_remote_execution/i18n.rb
hammer_cli_foreman_remote_execution-0.1.1 lib/hammer_cli_foreman_remote_execution/i18n.rb
hammer_cli_foreman_remote_execution-0.1.0 lib/hammer_cli_foreman_remote_execution/i18n.rb
hammer_cli_foreman_remote_execution-0.0.6 lib/hammer_cli_foreman_remote_execution/i18n.rb
hammer_cli_foreman_remote_execution-0.0.5 lib/hammer_cli_foreman_remote_execution/i18n.rb