Class: Yast::InstInitializationClient

Inherits:
Client
  • Object
show all
Defined in:
src/lib/installation/clients/inst_initialization.rb

Instance Method Summary collapse

Instance Method Details

#mainObject



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'src/lib/installation/clients/inst_initialization.rb', line 31

def main
  # This client should be called in the secong stage installation
  # before netprobe, netsetup ...
  # At least to create UI

  textdomain "installation"

  Yast.import "Wizard"
  Yast.import "Stage"

  # TRANSLATORS: dialog help
  @helptext = _("Installation is being initialized.")
  # TRANSLATORS: dialog progress message
  @label = _("Initializing the installation...")

  if Stage.cont
    # TRANSLATORS: dialog help
    @helptext = _("<p>Please wait...</p>")
    # TRANSLATORS: dialog progress message
    @label = _("Preparing the initial system configuration...")
  end

  @content = VBox(Label(@label))

  # TRANSLATORS: dialog caption
  @caption = _("Initializing")

  Wizard.SetContents(@caption, @content, @helptext, false, false)
  Wizard.SetTitleIcon("yast-software")

  :auto

  # EOF
end