lib/codebreaker/output.rb in codebreaker_kub-0.1.3 vs lib/codebreaker/output.rb in codebreaker_kub-0.1.4
- old
+ new
@@ -1,8 +1,8 @@
module Codebreaker
class Output
def initialize
- I18n.load_path << Dir[File.expand_path('./lib/codebreaker/data/locales') + '/*.yml']
+ I18n.load_path << Dir[File.expand_path(File.join(File.dirname(__FILE__), 'data/locales/')) + '/*.yml']
I18n.config.available_locales = :en
end
def greeting
puts I18n.t(:hey)