Revision 90197e7b
Added by Marc Dequènes about 13 years ago
- ID 90197e7bd70d31f0ef7cd6dde8f2e95b6dc08ab5
lib/cyborghood.rb | ||
---|---|---|
$KCODE = 'UTF8'
|
||
require 'jcode'
|
||
require 'pp'
|
||
require 'needle'
|
||
require 'cyborghood/base/config'
|
||
require 'cyborghood/base/info'
|
||
require 'cyborghood/base/lang_additions'
|
||
... | ... | |
require 'cyborghood/base/language'
|
||
require 'cyborghood/base/exceptions'
|
||
|
||
|
||
module CyborgHood
|
||
include I18nTranslation
|
||
ENV['LC_ALL'] = "C"
|
||
bindtextdomain("cyborghood", {:path => Config::L10N_DIR, :charset => "UTF-8"})
|
||
|
||
def register_services(container)
|
||
container.define do |b|
|
||
b.config do
|
||
Config.instance
|
||
end
|
||
end
|
||
end
|
||
|
||
module_function :register_services
|
||
end
|
Also available in: Unified diff
[evol] MapMaker API and internals rework §1, going forward to Dependency Injection using Needle