Class: UzuUzu::Environments

Inherits:
Object
  • Object
show all
Defined in:
lib/uzuuzu-cms/wrapper/environments.rb

Instance Method Summary collapse

Instance Method Details

#load_localizeObject



6
7
8
9
10
11
12
13
# File 'lib/uzuuzu-cms/wrapper/environments.rb', line 6

def load_localize
  uzuuzu_org_load_localize
  if ::File.file?(__DIR__("lang/#{@lang}.yaml"))
    ::File.open(__DIR__("lang/#{@lang}.yaml"), :encoding => "UTF-8") do |f|
      @localize.merge!(::YAML.load(f))
    end
  end
end

#uzuuzu_org_load_localizeObject



5
# File 'lib/uzuuzu-cms/wrapper/environments.rb', line 5

alias :uzuuzu_org_load_localize :load_localize