lib/hammer_cli/i18n.rb in hammer_cli-0.1.2 vs lib/hammer_cli/i18n.rb in hammer_cli-0.1.3
- old
+ new
@@ -100,11 +100,19 @@
'hammer-cli'
end
end
+ class SystemLocaleDomain < LocaleDomain
+ def locale_dir
+ '/usr/share/locale'
+ end
+
+ end
+
+
def self.locale
lang_variant = Locale.current.to_simple.to_str
lang = lang_variant.gsub(/_.*/, "")
hammer_domain = HammerCLI::I18n::LocaleDomain.new
@@ -143,6 +151,7 @@
include FastGettext::Translation
include HammerCLI::I18n::AllDomains
HammerCLI::I18n.add_domain(HammerCLI::I18n::LocaleDomain.new)
+HammerCLI::I18n.add_domain(HammerCLI::I18n::SystemLocaleDomain.new)