Sha256: ed04edcb3891dcdcfe6c7b140615185db6b8b874d7a94e4f7f0c48bf3a86676a
Contents?: true
Size: 1.09 KB
Versions: 15
Compression:
Stored size: 1.09 KB
Contents
# encoding: utf-8 require File.join(File.dirname(__FILE__), 'web_translate_it', 'util') require File.join(File.dirname(__FILE__), 'web_translate_it', 'configuration') require File.join(File.dirname(__FILE__), 'web_translate_it', 'translation_file') require File.join(File.dirname(__FILE__), 'web_translate_it', 'auto_fetch') require File.join(File.dirname(__FILE__), 'web_translate_it', 'command_line') require File.join(File.dirname(__FILE__), 'web_translate_it', 'project') require File.join(File.dirname(__FILE__), 'web_translate_it', 'tasks') require File.join(File.dirname(__FILE__), 'web_translate_it', 'server') module WebTranslateIt def self.fetch_translations config = Configuration.new locale = I18n.locale.to_s return if config.ignore_locales.include?(locale) config.logger.debug { "➔ Fetching #{locale.upcase} language file(s) from Web Translate It…" } if config.logger config.files.find_all{ |file| file.locale == locale }.each do |file| response = file.fetch config.logger.debug { "➔ Web Translate It response: #{response}" } if config.logger end end end
Version data entries
15 entries across 15 versions & 1 rubygems