Skip to content

Commit

Permalink
Warning if no repo is available for installing
Browse files Browse the repository at this point in the history
  translation packages
  • Loading branch information
schubi2 committed May 27, 2019
1 parent 5fb9eab commit a89deed
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
11 changes: 11 additions & 0 deletions language/src/modules/Language.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,8 @@ def EnoughSpace

# Install and uninstall packages selected by Pkg::SetAdditionalLocales
def PackagesCommit
check_source

if !Mode.commandline
# work-around for following in order not to depend on yast2-packager
# PackageSlideShow::InitPkgData (false);
Expand Down Expand Up @@ -1387,6 +1389,15 @@ def GetCurrentLocaleString
# @return [Array<String>] List of languages which are not supported by fbiterm
UNSUPPORTED_FBITERM_LANGS = ["ar", "bn", "gu", "hi", "km", "mr", "pa", "ta", "th"].freeze

# Checking available source repos
def check_source
if Pkg.SourceGetCurrent(true).empty?
Report.Warning(
_("There is no installation source enabled.\nSo corresponding translations will not be installed.")
)
end
end

# Determines whether the language is supported by fbiterm
# @param lang [String] Language code
# @return [Boolean]
Expand Down
7 changes: 7 additions & 0 deletions package/yast2-country.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon May 27 09:39:20 CEST 2019 - schubi@suse.de

- Language change: Warning if no repo is available for installing
translation packages (bsc#1133414).
- 4.1.13

-------------------------------------------------------------------
Thu May 9 13:42:57 CEST 2019 - schubi@suse.de

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-country.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-country
Version: 4.1.12
Version: 4.1.13
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down

0 comments on commit a89deed

Please sign in to comment.