Sha256: f106ac62103a5fc093c933cc3ca46a8d18ebb186c5f3e6e588c04f4266347e3d
Contents?: true
Size: 963 Bytes
Versions: 2
Compression:
Stored size: 963 Bytes
Contents
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') 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} translations to Web Translate It" } if config.logger config.files.each do |file| response = file.fetch(locale) config.logger { "Web Translate It response: #{response}" } if config.logger end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wti_gettext_i18n_rails-1.0.1 | lib/web_translate_it.rb |
wti_gettext_i18n_rails-1.0.0 | lib/web_translate_it.rb |