Class: RubyApp::Language
- Inherits:
-
R18n::I18n
- Object
- R18n::I18n
- RubyApp::Language
- Extended by:
- Mixins::ConfigurationMixin, Mixins::DelegateMixin
- Defined in:
- lib/ruby_app/language.rb
Class Method Summary collapse
Methods included from Mixins::ConfigurationMixin
Methods included from Mixins::DelegateMixin
Class Method Details
.get ⇒ Object
14 15 16 |
# File 'lib/ruby_app/language.rb', line 14 def self.get return R18n.get end |
.load!(language = nil) ⇒ Object
18 19 20 21 |
# File 'lib/ruby_app/language.rb', line 18 def self.load!(language = nil) paths = RubyApp::Language.configuration.paths.collect { |path| String.interpolate { path } } R18n.thread_set(RubyApp::Language.new(language || RubyApp::Language.configuration.default, paths)) end |
.unload! ⇒ Object
23 24 25 |
# File 'lib/ruby_app/language.rb', line 23 def self.unload! R18n.thread_set(nil) end |