Class: Getch::Config::Locale

Inherits:
Object
  • Object
show all
Includes:
NiTo
Defined in:
lib/getch/config/locale.rb

Instance Method Summary collapse

Methods included from NiTo

cp, echo, echo_a, grep?, mkdir, mount, mount?, mv, rm, search_proc_swaps, sed, sh, swapoff, swapoff_dm, touch, umount

Constructor Details

#initializeLocale

Gentoo use i18n_supported Void use libc_locale



14
15
16
17
18
19
20
21
22
# File 'lib/getch/config/locale.rb', line 14

def initialize
  @log = Log.new
  @i18n_supported = "#{OPTIONS[:mountpoint]}/usr/share/i18n/SUPPORTED"
  @libc_locales = "#{OPTIONS[:mountpoint]}/etc/default/libc-locales"
  @locale_conf = "#{OPTIONS[:mountpoint]}/etc/locale.conf"
  @i18n = nil
  @lang = nil
  x
end

Instance Method Details

#xObject



24
25
26
27
28
# File 'lib/getch/config/locale.rb', line 24

def x
  @log.info "Configuring locales...\n"
  search_locale
  apply_conf
end