Class: Kita::LocaleSettings
- Inherits:
-
Object
- Object
- Kita::LocaleSettings
- Defined in:
- lib/kita/locale.rb
Instance Method Summary collapse
-
#initialize ⇒ LocaleSettings
constructor
A new instance of LocaleSettings.
Constructor Details
#initialize ⇒ LocaleSettings
Returns a new instance of LocaleSettings.
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/kita/locale.rb', line 3 def initialize FastGettext.add_text_domain('kita', path: File.join(RootPath, 'locale'), type: :po) FastGettext.text_domain = 'kita' FastGettext.available_locales = %w(de en) puts "Select locale code:" FastGettext.available_locales.each do |locale| puts locale end change_locale_to gets.strip.downcase end |