Accepting request 571328 from system:install:head

- Update getcountrydata.rb to work with 2-letter language codes
  as used by the openSUSE consolefonts.ycp

OBS-URL: https://build.opensuse.org/request/show/571328
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/live-langset-data?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2018-01-31 18:53:55 +00:00 committed by Git OBS Bridge
commit 222247fc58
2 changed files with 11 additions and 1 deletions

View File

@ -26,7 +26,11 @@ module Yast
# set language for encoding
WFM.SetLanguage(fqlanguage)
yast_kbd = "#{kbd},#{Keyboard.kb_model}"
consolefont = consolefonts[fqlanguage] || consolefonts[lang] || []
consolefont = consolefonts[fqlanguage] || consolefonts[lang]
if consolefont.nil? && lang.size > 2
consolefont = consolefonts[lang[0,2]]
end
consolefont ||= []
font = consolefont[0] || ""
unicodeMap = consolefont[1] || ""
screenMap = consolefont[2] || ""

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jan 31 09:49:14 UTC 2018 - fvogt@suse.com
- Update getcountrydata.rb to work with 2-letter language codes
as used by the openSUSE consolefonts.ycp
-------------------------------------------------------------------
Wed Jan 24 07:56:03 UTC 2018 - fvogt@suse.com