lib/hammer_cli/i18n.rb in hammer_cli-3.7.0 vs lib/hammer_cli/i18n.rb in hammer_cli-3.8.0
- old
+ new
@@ -135,9 +135,13 @@
def self.main_makefile
File.expand_path(File.join(File.dirname(__FILE__), '../../locale/Makefile.def'))
end
+ def self.find_by_name(name)
+ domains.find { |domain| domain.class.to_s.split('::').first.underscore == name }
+ end
+
init
end
end
include FastGettext::Translation