Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package yast2-country for openSUSE:Factory checked in at 2022-12-02 13:12:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-country (Old) and /work/SRC/openSUSE:Factory/.yast2-country.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-country" Fri Dec 2 13:12:09 2022 rev:234 rq:1039347 version:4.5.3 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-country/yast2-country.changes 2022-10-22 14:12:38.444674539 +0200 +++ /work/SRC/openSUSE:Factory/.yast2-country.new.1835/yast2-country.changes 2022-12-02 13:12:17.317572478 +0100 @@ -1,0 +2,9 @@ +Thu Nov 24 12:13:15 UTC 2022 - Stefan Hundhammer <shundham...@suse.com> + +- Update language cache when selecting new language to ensure that + always the correct language translations are used in the license + translations selection combo box on the next wizard page + (bsc#1204845, bsc#1193009) +- 4.5.3 + +------------------------------------------------------------------- Old: ---- yast2-country-4.5.2.tar.bz2 New: ---- yast2-country-4.5.3.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-country.spec ++++++ --- /var/tmp/diff_new_pack.rpwlen/_old 2022-12-02 13:12:17.933575841 +0100 +++ /var/tmp/diff_new_pack.rpwlen/_new 2022-12-02 13:12:17.941575885 +0100 @@ -17,7 +17,7 @@ Name: yast2-country -Version: 4.5.2 +Version: 4.5.3 Release: 0 Summary: YaST2 - Country Settings (Language, Keyboard, and Timezone) License: GPL-2.0-only @@ -54,8 +54,8 @@ Requires: yast2-core >= 2.16.28 Requires: yast2-packager >= 2.23.3 # VMware detection (.probe.is_vmware) -Requires: yast2-country-data Requires: yast2-hardware-detection >= 3.1.6 +Requires: yast2-country-data Requires: yast2-ruby-bindings >= 1.0.0 Requires: rubygem(%{rb_default_ruby_abi}:ruby-dbus) ++++++ yast2-country-4.5.2.tar.bz2 -> yast2-country-4.5.3.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-country-4.5.2/language/src/modules/Language.rb new/yast2-country-4.5.3/language/src/modules/Language.rb --- old/yast2-country-4.5.2/language/src/modules/Language.rb 2022-10-21 10:21:43.000000000 +0200 +++ new/yast2-country-4.5.3/language/src/modules/Language.rb 2022-11-24 15:18:47.000000000 +0100 @@ -176,6 +176,7 @@ # Read language DB: translatable strings will be translated to current language def read_languages_map + log.info("Reading languages map; @language: #{@language}") Builtins.foreach( Convert.convert( SCR.Read(path(".target.dir"), @languages_directory, []), @@ -454,28 +455,26 @@ def Set(lang) lang = deep_copy(lang) - Builtins.y2milestone( - "original language: %1; setting to lang:%2", - @language, - lang - ) - if @language != lang + log.info("Language changed from #{@language} to #{lang}") + lang = correct_language(lang) + @language = lang if Stage.initial && !Mode.test && !Mode.live_installation integrate_inst_sys_extension(lang) end GetLocales() if Builtins.size(@locales) == 0 - language_def = GetLanguagesMap(false).fetch(lang, []) + # In config mode, use language name translated into the current language # othewrwise use the language name translated into that selected language # because the whole UI will get translated later too @name = (Mode.config ? language_def[4] : language_def[0]) || lang - @language = lang Encoding.SetEncLang(@language) + else + log.info("Language unchanged: #{@language}") end if Stage.initial && !Mode.test @@ -695,8 +694,6 @@ ) end - # GetExpertValues() - # # Return the values for the various expert settings in a map # # @param - @@ -707,8 +704,6 @@ { "use_utf8" => @use_utf8 } end - # SetExpertValues() - # # Set the values of the various expert setting # # @param [Hash] val map with new values of expert settings @@ -725,8 +720,6 @@ nil end - # WfmSetLanguag() - # # Set the given language in WFM and UI # # @param language (could be different from current in CJK case) @@ -736,13 +729,7 @@ return if Mode.config encoding = @use_utf8 ? "UTF-8" : Encoding.console - - Builtins.y2milestone( - "language %1 enc %2 utf8:%3", - lang, - encoding, - @use_utf8 - ) + log.info("Language changed from #{@language} to #{lang} encoding: #{encoding} use_utf8: #{@use_utf8}") UI.SetLanguage(lang, encoding) @@ -752,18 +739,20 @@ WFM.SetLanguage(lang) end + # Force rebuilding the languages map to make sure the correct translations are used + read_languages_map + nil end - # WfmSetLanguag() - # # Set the current language in WFM and UI # # @param - # # @return - def WfmSetLanguage + log.info("Setting the current language") WfmSetGivenLanguage(@language) nil diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-country-4.5.2/package/yast2-country.changes new/yast2-country-4.5.3/package/yast2-country.changes --- old/yast2-country-4.5.2/package/yast2-country.changes 2022-10-21 10:21:43.000000000 +0200 +++ new/yast2-country-4.5.3/package/yast2-country.changes 2022-11-24 15:18:47.000000000 +0100 @@ -1,4 +1,13 @@ ------------------------------------------------------------------- +Thu Nov 24 12:13:15 UTC 2022 - Stefan Hundhammer <shundham...@suse.com> + +- Update language cache when selecting new language to ensure that + always the correct language translations are used in the license + translations selection combo box on the next wizard page + (bsc#1204845, bsc#1193009) +- 4.5.3 + +------------------------------------------------------------------- Fri Oct 21 07:22:31 UTC 2022 - Martin Vidner <mvid...@suse.com> - Use Canadian (CSA) instead of Canadian (Multilingual) keyboard diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-country-4.5.2/package/yast2-country.spec new/yast2-country-4.5.3/package/yast2-country.spec --- old/yast2-country-4.5.2/package/yast2-country.spec 2022-10-21 10:21:43.000000000 +0200 +++ new/yast2-country-4.5.3/package/yast2-country.spec 2022-11-24 15:18:47.000000000 +0100 @@ -16,7 +16,7 @@ # Name: yast2-country -Version: 4.5.2 +Version: 4.5.3 Release: 0 Summary: YaST2 - Country Settings (Language, Keyboard, and Timezone) License: GPL-2.0-only