Translations
This commit is contained in:
		
							parent
							
								
									91708ef81b
								
							
						
					
					
						commit
						f5c7cca626
					
				| @ -90,7 +90,7 @@ module I18n | ||||
| 			end | ||||
| 
 | ||||
| 			def initialize | ||||
| 				if Rails.env.test? || !File.exist?(filename) | ||||
| 				if Rails.env.test? || !File.exist?(@@translation_cache_file) | ||||
| 					File.open(@@translation_cache_file, 'w+') | ||||
| 				end | ||||
| 				if Rails.env.test? | ||||
|  | ||||
| @ -4,7 +4,7 @@ namespace :translations do | ||||
| 		#File.open('config/locales/.translations.yml', 'w') | ||||
| 		#File.open('config/locales/.translation-cache.yml', 'w+') | ||||
| 
 | ||||
| 		translations = YAML.load(File.read('config/locales/.translations.yml')) || Hash.new | ||||
| 		translations = YAML.load(File.read('config/locales/translation-info.yml')) || Hash.new | ||||
| 		translations.each { |k,t|  | ||||
| 			if t['data'] | ||||
| 				t['data'].each { |tt| | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user