Skip to content

Commit

Permalink
Merge pull request #496 from mchf/default_language
Browse files Browse the repository at this point in the history
Set default language before proposing
  • Loading branch information
mchf committed Jan 24, 2017
2 parents b9241ed + 7c57ca5 commit b418549
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions package/yast2-installation.changes
@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Jan 20 08:44:28 UTC 2017 - mfilka@suse.com

- bnc#1017752
- do not show language change warning in software proposal
incorrectly when language was not changed.
- 3.1.217.12

-------------------------------------------------------------------
Tue Jan 17 15:34:22 UTC 2017 - igonzalezsosa@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-installation.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-installation
Version: 3.1.217.11
Version: 3.1.217.12
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
6 changes: 6 additions & 0 deletions src/lib/installation/proposal_runner.rb
Expand Up @@ -102,6 +102,12 @@ def run

return :auto if !submod_descriptions_and_build_menu

# Default language is the most often set by language proposal later in the workflow
# and overwrites this.
# However, some products do not contain such proposal (e.g. CaaSP) and needs this
# setup to avoid false language change detection (e.g. in software proposal)
Yast::Pkg.SetPackageLocale(Yast::Language.language)

#
# Make the initial proposal
#
Expand Down

0 comments on commit b418549

Please sign in to comment.