[Bug 1910692] Re: check-language-support wants to install wrong locale packages

Gunnar Hjalmarsson 1910692 at bugs.launchpad.net
Fri Jan 8 23:12:18 UTC 2021


I think it works as expected. If you run check-language-support without
options, it lists uninstalled language support for all languages on the
system, which approximately is the output of this command:

ls /usr/share/locale-langpack

So if you have Russian as display language, and want to install Russian
language support only, this command should do it:

sudo apt install $(check-language-support -l ru)

Please let me know if that explains it.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to language-selector in Ubuntu.
https://bugs.launchpad.net/bugs/1910692

Title:
  check-language-support wants to install wrong locale packages

Status in language-selector package in Ubuntu:
  Incomplete

Bug description:
  my locales set to this:
  ❯ locale
  LANG=ru_UA.UTF-8
  LANGUAGE=ru
  LC_CTYPE="ru_UA.UTF-8"
  LC_NUMERIC=ru_UA.UTF-8
  LC_TIME=ru_UA.UTF-8
  LC_COLLATE=ru_UA.UTF-8
  LC_MONETARY=ru_UA.UTF-8
  LC_MESSAGES="ru_UA.UTF-8"
  LC_PAPER="ru_UA.UTF-8"
  LC_NAME="ru_UA.UTF-8"
  LC_ADDRESS="ru_UA.UTF-8"
  LC_TELEPHONE="ru_UA.UTF-8"
  LC_MEASUREMENT=ru_UA.UTF-8
  LC_IDENTIFICATION="ru_UA.UTF-8"
  LC_ALL=

  but for some reason `check-language-support` want to install these packages (which is incorrect):
  firefox-locale-uk hunspell-en-au hunspell-en-ca hunspell-en-gb hunspell-en-za hunspell-uk hyphen-en-ca hyphen-en-gb hyphen-uk language-pack-gnome-uk language-pack-uk libreoffice-help-en-gb libreoffice-l10n-en-gb libreoffice-l10n-en-za libreoffice-l10n-uk mythes-en-au mythes-uk thunderbird-locale-en-gb thunderbird-locale-en-us thunderbird-locale-uk wukrainian

  correct packages that needs to be installed:
  ❯ check-language-support -l ru_UA --show-installed
  firefox-locale-ru gimp-help-ru hunspell-ru hyphen-ru language-pack-gnome-ru language-pack-ru libreoffice-help-ru libreoffice-l10n-ru mythes-ru poppler-data thunderbird-locale-ru

  ru_UA should be treated as ru, but it's not.
  /usr/share/language-selector/data
  ❯ rg ru_UA
  langcode2locale
  192:ru:ru_UA

  Kubuntu 20.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/language-selector/+bug/1910692/+subscriptions



More information about the foundations-bugs mailing list