From 916307116e003c8daa71e6a792691dec1d4a9801 Mon Sep 17 00:00:00 2001 From: Josef Reidinger Date: Mon, 1 Feb 2016 16:31:02 +0100 Subject: [PATCH] fix missing method '_' --- library/system/src/lib/yast2/execute.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/system/src/lib/yast2/execute.rb b/library/system/src/lib/yast2/execute.rb index 3156cdcf0..6822d4a1f 100644 --- a/library/system/src/lib/yast2/execute.rb +++ b/library/system/src/lib/yast2/execute.rb @@ -33,6 +33,7 @@ class Execute Cheetah.default_options = { logger: Y2Logger.instance } class << self + include Yast::I18n # Runs arguments with respect of changed root in installation. # @see Cheetah.run for parameters # @raise Cheetah::ExecutionFailed @@ -40,7 +41,7 @@ def on_target(*args) root = "/" root = Yast::Installation.destdir if Yast::WFM.scr_chrooted? - if args.last.is_a? Hash + if args.last.is_a? ::Hash args.last[:chroot] = root else args.push(chroot: root) @@ -62,6 +63,7 @@ def popup_error(&block) block.call rescue Cheetah::ExecutionFailed => e Yast.import "Report" + textdomain "base" Yast::Report.Error( _( "Execution of command \"%{command}\" failed.\n"\