group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #39175
[Bug 1907850] Re: Cache not generated for all translations
This bug was fixed in the package apt - 2.1.10ubuntu0.3
---------------
apt (2.1.10ubuntu0.3) groovy; urgency=medium
[ David Kalnischkies ]
* Fix incorrect base64 encoding due to int promotion (LP: #1916050)
* Harden test for no new acquires after transaction abort (Closes: #984966)
(LP: #1918920)
[ Julian Andres Klode ]
* Implement update --error-on=any (Closes: #594813) (LP: #1693900)
* Include all translations when building the cache (LP: #1907850)
* Do not require force-loopbreak on Protected packages (Closes: #983014)
(LP: #1916725)
* RunScripts: Do not reset SIGQUIT and SIGINT to SIG_DFL (LP: #1898026)
* Protect currently running kernel at run-time (LP: #1615381)
* Make ADDARG{,C}() macros expand to single statements
-- Julian Andres Klode <juliank@xxxxxxxxxx> Fri, 12 Mar 2021 09:22:11
+0100
** Changed in: apt (Ubuntu Groovy)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1907850
Title:
Cache not generated for all translations
Status in apt package in Ubuntu:
Fix Released
Status in apt source package in Xenial:
Confirmed
Status in apt source package in Bionic:
Fix Committed
Status in apt source package in Focal:
Fix Committed
Status in apt source package in Groovy:
Fix Released
Status in apt source package in Hirsute:
Fix Released
Bug description:
[Impact]
In bug 1161743 we discovered that if a system is configured with multiple locales, only the locales of the user who generated the apt-cache will be available for translated descriptions.
[Test case]
An automated test case has been included as a snippet in test/integration/test-bug-490000-search-in-all-translations which runs during autopkgtest. That's sufficient for validation.
Manual test:
# apt install locales-all # get the locale
# export LANG=sv_SE.UTF-8
# locale
LANG=sv_SE.UTF-8
LANGUAGE=
LC_CTYPE="sv_SE.UTF-8"
LC_NUMERIC="sv_SE.UTF-8"
LC_TIME="sv_SE.UTF-8"
LC_COLLATE="sv_SE.UTF-8"
LC_MONETARY="sv_SE.UTF-8"
LC_MESSAGES="sv_SE.UTF-8"
LC_PAPER="sv_SE.UTF-8"
LC_NAME="sv_SE.UTF-8"
LC_ADDRESS="sv_SE.UTF-8"
LC_TELEPHONE="sv_SE.UTF-8"
LC_MEASUREMENT="sv_SE.UTF-8"
LC_IDENTIFICATION="sv_SE.UTF-8"
LC_ALL=
# apt update
# apt-cache show tasksel | grep Desc
Description-sv: tool for selecting tasks for installation on Debian systems
Description-md5: cbbb747708986d11ea77c80b9b038fec
# apt-cache showpkg tasksel
Package: tasksel
Versions:
3.34ubuntu16 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages)
Description Language:
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages
MD5: cbbb747708986d11ea77c80b9b038fec
Description Language: sv
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_i18n_Translation-sv
MD5: cbbb747708986d11ea77c80b9b038fec
Description Language: en
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_i18n_Translation-en
MD5: cbbb747708986d11ea77c80b9b038fec
[...]
So far so good, but now assume the root user actually has C configured
as locale, and e.g. runs apt-cache show (or apt-daily.service does an
update):
root@g:~# rm /var/cache/apt/*.bin
root@g:~# LANG=C apt-cache show tasksel
[...]
Description-en: tool for selecting tasks for installation on Debian systems
This package provides 'tasksel', a simple interface for users who
want to configure their system to perform a specific task.
root@g:~# apt-cache showpkg tasksel
Package: tasksel
Versions:
3.34ubuntu16 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages)
Description Language:
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages
MD5: cbbb747708986d11ea77c80b9b038fec
Description Language: en
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_i18n_Translation-en
MD5: cbbb747708986d11ea77c80b9b038fec
This should show the sv locale as well given that it's still around
(also we are still running with LANG=sv_SE.UTF-8), but it only
generated the cache with the english language description in here.
[Where problems could occur]
People might end up seeing a wrong translation if other code paths are wrong, but then they'd already see them if they explicitly configured multiple languages and then switched the preferred one.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1907850/+subscriptions