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