Skip to content

Commit

Permalink
Merge pull request #1040 from shundhammer/huha-retranslate-help
Browse files Browse the repository at this point in the history
Retranslate wizard help button in NCurses (bsc#1167224)
  • Loading branch information
shundhammer committed Apr 7, 2020
2 parents 18c0e49 + 226ccc8 commit ec094fe
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
10 changes: 6 additions & 4 deletions library/wizard/src/modules/Wizard.rb
Expand Up @@ -1351,19 +1351,21 @@ def HideReleaseNotesButton
# Retranslate the wizard buttons.
#
# This will revert button labels and IDs
# to the default that were used upon Wizard::CreateDialog(),
# to the defaults that were used upon Wizard::CreateDialog(),
# Wizard::OpenNextBackDialog(), or Wizard::OpenAcceptDialog().
#
def RetranslateButtons
if UI.WidgetExists(Id(:WizardDialog)) == true
textdomain "base" # Reload translations
if UI.WidgetExists(Id(:WizardDialog)) == true # NCurses wizard
UI.ChangeWidget(Id(:help), :Label, Label.HelpButton) if UI.WidgetExists(Id(:help))
ReplaceButtonBox(
if UI.WidgetExists(Id(:accept))
AbortAcceptButtonBox()
else
BackAbortNextButtonBox()
end
) # Qt wizard
else
)
else # Qt wizard
UI.WizardCommand(term(:RetranslateInternalButtons))

if UI.WidgetExists(:accept)
Expand Down
6 changes: 6 additions & 0 deletions package/yast2.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Apr 7 08:33:55 UTC 2020 - Stefan Hundhammer <shundhammer@suse.com>

- Retranslate wizard help button in NCurses UI (bsc#1167224)
- 4.2.81

-------------------------------------------------------------------
Fri Apr 3 09:55:17 UTC 2020 - Knut Anderssen <kanderssen@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2
Version: 4.2.80
Version: 4.2.81
Release: 0
Summary: YaST2 Main Package
License: GPL-2.0-only
Expand Down

0 comments on commit ec094fe

Please sign in to comment.