Skip to content

Commit

Permalink
changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Oct 6, 2016
1 parent 26b4631 commit 05381df
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/lib/bootloader/config_dialog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ def run
guarded_run
rescue ::Bootloader::BrokenConfiguration => e
ret = Yast::Report.AnyQuestion(_("Broken Configuration"),
_("Bootloader configuration is broken (%s). Propose configuration from scratch?") %
e.reason,
# TRANSLATORS: %s stands for readon why yast cannot process it
_("YaST cannot process current bootloader configuration (%s). " \
"Propose new configuration from scratch?") % e.reason,
_("Propose"),
_("Quit"),
:yes) # focus proposing new one
Expand Down
5 changes: 3 additions & 2 deletions src/lib/bootloader/exceptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ def initialize(msg)
@reason = msg
textdomain "bootloader"

super _("Found problem during reading bootloader configuration files. " \
"Please open bootloader module and fix it. Details: %s") % msg
# TRANSLATORS: %s is translated description of error
super _("Error reading the bootloader configuration files. " \
"Please use YaST2 bootloader to fix it. Details: %s") % msg
end
end
end
5 changes: 3 additions & 2 deletions src/modules/Bootloader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ def Read
::Bootloader::BootloaderFactory.current.propose
rescue ::Bootloader::BrokenConfiguration => e
ret = Yast::Report.AnyQuestion(_("Broken Configuration"),
_("Bootloader configuration is broken (%s). Propose configuration from scratch?") %
e.reason,
# TRANSLATORS: %s stands for readon why yast cannot process it
_("YaST cannot process current bootloader configuration (%s). " \
"Propose new configuration from scratch?") % e.reason,
_("Propose"),
_("Quit"),
:yes) # focus proposing new one
Expand Down

0 comments on commit 05381df

Please sign in to comment.