Class: I18n::Backend::Weeler

Inherits:
Object
  • Object
show all
Includes:
Implementation
Defined in:
lib/i18n/backend/weeler.rb,
lib/i18n/backend/weeler/lock.rb,
lib/i18n/backend/weeler/dedupe.rb,
lib/i18n/backend/weeler/exporter.rb,
lib/i18n/backend/weeler/importer.rb,
lib/i18n/backend/weeler/translation.rb,
lib/i18n/backend/weeler/html_checker.rb,
lib/i18n/backend/weeler/translation_stat.rb

Overview

Weeler model used to store translation key usage statistics

This model expects a table like the following to be already set up in your the database:

create_table :weeler_translation_stats do |t|
  t.string :key
  t.integer :usage_count, default: 0
end

Defined Under Namespace

Modules: Dedupe, Exporter, HtmlChecker, Implementation, Importer Classes: Lock, Translation, TranslationStat

Constant Summary collapse

PLURAL_KEYS =
["zero", "one", "other"]

Instance Attribute Summary collapse

Method Summary

Methods included from Implementation

#available_locales, #reload_cache, #store_translations

Instance Attribute Details

#i18n_cacheObject

Returns the value of attribute i18n_cache.



23
24
25
# File 'lib/i18n/backend/weeler.rb', line 23

def i18n_cache
  @i18n_cache
end