Revision 4c969e21
Added by Marc Dequènes over 13 years ago
- ID 4c969e21f0acc2a3d27c1c707dbc2a7917caf455
lib/cyborghood/base/language.rb | ||
---|---|---|
include Singleton
|
||
include GetText
|
||
|
||
DEFAULT_LOCALE = "en"
|
||
|
||
def initialize
|
||
@config = Config.instance
|
||
end
|
||
... | ... | |
end
|
||
|
||
def set_default_locale
|
||
set_locale('en')
|
||
set_locale(DEFAULT_LOCALE)
|
||
end
|
||
|
||
def set_locale_for_user(user)
|
Also available in: Unified diff
[evol] select and record I18n locale in DSL Task (future use)