Class: FastGettext::TranslationRepository::Mo
- Defined in:
- lib/fast_gettext/translation_repository/mo.rb
Overview
-
find and store mo files
-
provide access to translations in mo files
Direct Known Subclasses
Instance Method Summary collapse
- #available_locales ⇒ Object
-
#initialize(name, options = {}) ⇒ Mo
constructor
A new instance of Mo.
- #pluralisation_rule ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(name, options = {}) ⇒ Mo
Returns a new instance of Mo.
8 9 10 11 |
# File 'lib/fast_gettext/translation_repository/mo.rb', line 8 def initialize(name,={}) find_and_store_files(name,) super end |
Instance Method Details
#available_locales ⇒ Object
13 14 15 |
# File 'lib/fast_gettext/translation_repository/mo.rb', line 13 def available_locales @files.keys end |
#pluralisation_rule ⇒ Object
17 18 19 |
# File 'lib/fast_gettext/translation_repository/mo.rb', line 17 def pluralisation_rule current_translations.pluralisation_rule end |