moved translation-info.yml to temporary directory since it is only used in development and test to show translations
This commit is contained in:
		
							parent
							
								
									ea7b3c0156
								
							
						
					
					
						commit
						3aa6d0b925
					
				| @ -65,8 +65,8 @@ module I18n | |||||||
| 		class BikeBike < I18n::Backend::ActiveRecord | 		class BikeBike < I18n::Backend::ActiveRecord | ||||||
| 			@@needs_translation | 			@@needs_translation | ||||||
| 
 | 
 | ||||||
| 			@@translations_file = 'config/locales/translation-info.yml' | 			@@translations_file = 'tmp/locales/translation-info.yml' | ||||||
| 			@@translation_cache_file = 'config/locales/.translation-cache.yml' | 			@@translation_cache_file = 'tmp/locales/.translation-cache.yml' | ||||||
| 			@@pluralization_rules_file = 'config/locales/pluralization-rules.yml' | 			@@pluralization_rules_file = 'config/locales/pluralization-rules.yml' | ||||||
| 			@@translation_cache | 			@@translation_cache | ||||||
| 			@@testing_started = false | 			@@testing_started = false | ||||||
|  | |||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -4,7 +4,7 @@ namespace :translations do | |||||||
| 		#File.open('config/locales/.translations.yml', 'w') | 		#File.open('config/locales/.translations.yml', 'w') | ||||||
| 		#File.open('config/locales/.translation-cache.yml', 'w+') | 		#File.open('config/locales/.translation-cache.yml', 'w+') | ||||||
| 
 | 
 | ||||||
| 		translations = YAML.load(File.read('config/locales/translation-info.yml')) || Hash.new | 		translations = YAML.load(File.read('tmp/locales/translation-info.yml')) || Hash.new | ||||||
| 		translations.each { |k,t|  | 		translations.each { |k,t|  | ||||||
| 			if t['data'] | 			if t['data'] | ||||||
| 				t['data'].each { |tt| | 				t['data'].each { |tt| | ||||||
|  | |||||||
							
								
								
									
										0
									
								
								tmp/locales/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								tmp/locales/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user