Module: FastGettext
- Extended by:
- FastGettext
- Includes:
- Storage
- Included in:
- FastGettext
- Defined in:
- lib/fast_gettext/vendor/iconv.rb,
lib/fast_gettext.rb,
lib/fast_gettext/mo_file.rb,
lib/fast_gettext/po_file.rb,
lib/fast_gettext/storage.rb,
lib/fast_gettext/version.rb,
lib/fast_gettext/translation.rb,
lib/fast_gettext/vendor/mofile.rb,
lib/fast_gettext/vendor/poparser.rb,
lib/fast_gettext/translation_repository.rb,
lib/fast_gettext/translation_repository/db.rb,
lib/fast_gettext/translation_repository/mo.rb,
lib/fast_gettext/translation_repository/po.rb,
lib/fast_gettext/translation_repository/base.rb,
lib/fast_gettext/translation_repository/yaml.rb,
lib/fast_gettext/translation_repository/chain.rb,
lib/fast_gettext/translation_repository/logger.rb
Overview
Modifications wrapped inside FastGettext namespace to reduce conflic
Defined Under Namespace
Modules: GetText, Storage, Translation, TranslationRepository Classes: MoFile, PoFile
Constant Summary collapse
- LOCALE_REX =
/^[a-z]{2,3}$|^[a-z]{2,3}_[A-Z]{2,3}$/- NAMESPACE_SEPARATOR =
'|'- VERSION =
Version = '0.6.8'
Instance Method Summary collapse
- #add_text_domain(name, options) ⇒ Object
-
#locale_path ⇒ Object
some repositories know where to store their locales.
Instance Method Details
#add_text_domain(name, options) ⇒ Object
27 28 29 |
# File 'lib/fast_gettext.rb', line 27 def add_text_domain(name,) translation_repositories[name] = TranslationRepository.build(name,) end |
#locale_path ⇒ Object
some repositories know where to store their locales
32 33 34 |
# File 'lib/fast_gettext.rb', line 32 def locale_path translation_repositories[text_domain].instance_variable_get(:@options)[:path] end |