lib/review/i18n.rb in review-1.3.0 vs lib/review/i18n.rb in review-1.4.0

- old
+ new

@@ -2,12 +2,12 @@ require 'yaml' module ReVIEW class I18n def self.setup - lfile = File.expand_path "locale.yml", ENV["PWD"] + lfile = File.expand_path "locale.yml", Dir.pwd # backward compatibility - lfile = File.expand_path "locale.yaml", ENV["PWD"] unless File.exist?(lfile) + lfile = File.expand_path "locale.yaml", Dir.pwd unless File.exist?(lfile) user_i18n = YAML.load_file(lfile) I18n.i18n user_i18n["locale"], user_i18n rescue I18n.i18n "ja" end