Skip to content

Commit

Permalink
Unify labels (bsc#1123679)
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Mar 8, 2019
1 parent 945934c commit 2f7ab09
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/modules/SourceDialogs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2653,13 +2653,11 @@ def TypeDialogDownloadOpt
"Running repository type dialog with download option"
)

# dialog caption
caption = _("Add On Product")
ui = CWM.ShowAndRun(
"widget_names" => ["select_dl"],
"widget_descr" => Widgets(),
"contents" => VBox(network_button, "select_dl"),
"caption" => caption,
"caption" => dialog_caption,
"back_button" => Label.BackButton,
"next_button" => Label.NextButton,
"fallback_functions" => @default_cwm_fallback_functions
Expand Down Expand Up @@ -2688,6 +2686,18 @@ def valid_scheme?(url)
ret
end

# Build the dialog title (depending on the current UI)
# @return [String] the translated title
def dialog_caption
if UI.TextMode
# TRANSLATORS: dialog title (short form for text mode)
_("Add On Product")
else
# TRANSLATORS: dialog title (long form for GUI, but still keep as short as possible)
_("Add On Product (Products, Extensions, Modules or Other Repositories)")
end
end

publish function: :SetURL, type: "void (string)"
publish function: :SetURLType, type: "void (string, boolean)"
publish function: :GetURL, type: "string ()"
Expand Down

0 comments on commit 2f7ab09

Please sign in to comment.