Skip to content

Commit

Permalink
remove unnecessary logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Aug 29, 2023
1 parent 5d388b6 commit 9dd368a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions service/lib/agama/ui_locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
require "yast"

Yast.import "WFM"
Yast.import "Label"

module Agama
# Object responsible for managing changes of localization produced by dbus backend.
Expand Down Expand Up @@ -50,11 +49,9 @@ def change_locale(locale)
Yast::WFM.SetLanguage(locale, "UTF-8")
# explicitelly set ENV to get localization also from libraries like libstorage
ENV["LANG"] = locale + ".UTF-8"
log.info "set yast language to #{locale} WFM: #{Yast::WFM.GetLanguage}"
log.info "set yast language to #{locale}"
# explicit call to textdomain to force fast gettext change of language ASAP
textdomain "installation"
log.info "gettext locale #{FastGettext.locale}"
log.info "testing localized string #{Yast::Label.YesButton}"
end
end
end

0 comments on commit 9dd368a

Please sign in to comment.