Module: FastGettext

### Home Classes Methods

### In Files

- lib/fast_gettext.rb
- lib/fast_gettext/cache.rb
- lib/fast_gettext/mo_file.rb
- lib/fast_gettext/po_file.rb
- lib/fast_gettext/storage.rb
- lib/fast_gettext/translation.rb
- lib/fast_gettext/translation_repository.rb
- lib/fast_gettext/translation_repository/base.rb
- lib/fast_gettext/translation_repository/chain.rb
- lib/fast_gettext/translation_repository/db.rb
- lib/fast_gettext/translation_repository/logger.rb
- lib/fast_gettext/translation_repository/mo.rb
- lib/fast_gettext/translation_repository/po.rb
- lib/fast_gettext/translation_repository/yaml.rb
- lib/fast_gettext/vendor/mofile.rb
- lib/fast_gettext/vendor/poparser.rb
- lib/fast_gettext/version.rb

### Namespace

- MODULE FastGettext::GetText
- MODULE FastGettext::Storage
- MODULE FastGettext::Translation
- MODULE FastGettext::TranslationMultidomain
- MODULE FastGettext::TranslationRepository
- CLASS FastGettext::Cache
- CLASS FastGettext::MoFile
- CLASS FastGettext::PoFile

### Methods

- #add_text_domain
- #locale_path

### Included Modules

- FastGettext::Storage

### Class/Module Index

Quicksearch

- FastGettext
- FastGettext::Cache
- FastGettext::GetText
- FastGettext::GetText::MOFile
- FastGettext::GetText::MOFile::HeaderRev1
- FastGettext::GetText::MOFile::InvalidFormat
- FastGettext::GetText::PoParser
- FastGettext::MoFile
- FastGettext::PoFile
- FastGettext::Storage
- FastGettext::Storage::NoTextDomainConfigured
- FastGettext::Translation
- FastGettext::TranslationMultidomain
- FastGettext::TranslationRepository
- FastGettext::TranslationRepository::Base
- FastGettext::TranslationRepository::Chain
- FastGettext::TranslationRepository::Db
- FastGettext::TranslationRepository::Logger
- FastGettext::TranslationRepository::Mo
- FastGettext::TranslationRepository::Po
- FastGettext::TranslationRepository::Yaml
- String
- TranslationKey
- TranslationText

No matching classes.

# FastGettext

### Constants

LOCALE_REX
NAMESPACE_SEPARATOR
VERSION

### Public Instance Methods

add_text_domain(name,options) click to toggle source

    # File lib/fast_gettext.rb, line 27
    def add_text_domain(name,options)
      translation_repositories[name] = TranslationRepository.build(name,options)
    end

locale_path() click to toggle source

some repositories know where to store their locales

    # File lib/fast_gettext.rb, line 32
    def locale_path
      translation_repositories[text_domain].instance_variable_get(:@options)[:path]
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.