Skip to content

Commit

Permalink
add some logging to debug language switching
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Aug 29, 2023
1 parent bc444da commit 5c9b407
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions service/lib/agama/ui_locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module Agama
# Object responsible for managing changes of localization produced by dbus backend.
class UILocale
include Yast::I18n
include Yast::Logger
# creates new UILocale object that will handle change of UI locale.
#
# @param [Agama::DBus::Clients::Locale] locale_client to communicate with dbus service
Expand All @@ -46,6 +47,7 @@ def initialize(locale_client, &block)
def change_locale(locale)
# TODO: check if we can use UTF-8 everywhere including strange arch consoles
Yast::WFM.SetLanguage(locale, "UTF-8")
log.info "set yast language to #{locale} WFM: #{Yast::WFM.GetLanguage}"
# explicit call to textdomain to force fast gettext change of language ASAP
textdomain "installation"
end
Expand Down

0 comments on commit 5c9b407

Please sign in to comment.