Translations

This commit is contained in:
Godwin
2014-05-04 15:29:50 -06:00
parent e5f9dc5666
commit ad2a897ef7
3 changed files with 3 additions and 9 deletions
+3 -1
View File
@@ -90,9 +90,11 @@ module I18n
end
def initialize
if Rails.env.test? || !File.exist?(filename)
File.open(@@translation_cache_file, 'w+')
end
if Rails.env.test?
File.open(@@translations_file, 'w+')
File.open(@@translation_cache_file, 'w+')
end
@@translation_cache = YAML.load(File.read(@@translation_cache_file)) || Hash.new
super