[10:41] <GunnarHj> Hi cjwatson, there is a ddtp issue where your input would be valuable. It's bug #1161743 as from comment #7. (Please disregard the original purpose of the bug report.)
[15:27] <juliank> GunnarHj: we have already had discussions on that
[15:32] <juliank> GunnarHj: I added a comment with a summary of our findings
[16:59] <GunnarHj> juliank: Thanks. I replied on the bug report.
[17:00] <juliank> GunnarHj: That's not a useful reply
[17:01] <GunnarHj> juliank: ??
[17:01] <juliank> I don't speak swedish
[17:01] <juliank> permission denied I guess
[17:01] <GunnarHj> juliank: But you basically only see English output, right?
[17:01] <juliank> GunnarHj: The package you show is only in release pocket, so I don't understand what you want to tell me
[17:02] <GunnarHj> juliank: That apt-cache shows the English package desciption, not the Swedish one.
[17:05] <juliank> GunnarHj: works in a clean system, so this is a problem on your end
[17:08] <GunnarHj> juliank: Are you sure? Actually I reproduced the issue described by the user "vofka".
[17:08] <juliank> GunnarHj: Yeah I added a comment describing what I did. I launched clean lxd container, added the locale, ran apt update, and the localized description was there
[17:09] <juliank> GunnarHj: Are you sure that the locales are configured correctly for both the user and root?
[17:10] <juliank> Like, if the cache was built by root with LANG=C at some point for example, then the cached content will be used, and you don't see any translations
[17:11] <juliank> GunnarHj: So if I  installed a new package or removed the cache files in /var/cache/apt, ran LANG=C apt-cache show foo; future apt-cache show foo will be in english too
[17:12] <GunnarHj> juliank: I think I get it. The root locale (in /etc/default/locale) is en_US.UTF-8.
[17:12] <juliank> Right, then you need to configure your apt.conf
[17:12] <juliank> to always do sv
[17:13] <GunnarHj> juliank: This is not very user friendly.
[17:13] <juliank> If you copy the language file, I assume it invalidates the cache, and you get a new one built
[17:14] <juliank> It's the way it is, and it's not going to change in a stable release
[17:15] <GunnarHj> juliank: Right. But I see room for improvements for the future. :)
[17:15] <juliank> Not in the next few years, though
[17:15] <juliank> I did not add space in apt to record locales in the cache file so I could invalidate them :D
[17:15] <juliank> or rather :(
[17:17] <GunnarHj> juliank: Now you lost me. Anyway, I'll make a couple of further tests for my own understanding.
[17:19] <juliank> GunnarHj: Well you gotta set Acquire::Languages { "sv_SE"; "sv"; en"; "none"; };
[17:19] <juliank> in apt.conf.
[17:19] <juliank> APT can't guess which languages your users have.
[17:19] <juliank> And the cache does not record with which languages it was created, so it can't know if its invalid
[17:20] <juliank> And apt-daily.service might delete your sv translations because it's not configured to download them
[17:20] <GunnarHj> juliank: Why can't APT query the environment?
[17:21] <juliank> It knows what your language is, it does not know it's missing it in the cache and needs to regenerate it
[17:21] <GunnarHj> Ah..
[17:21] <juliank> Also, apt update might delete the files anyway, because the system is improperly configured - if it is run by root as part of e.g. apt-daily.service, it won't even know that your user has a non en_US locale
[17:23] <GunnarHj> apt update is run as root by definition, I suppose.
[17:23] <juliank> Well sort of
[17:24] <juliank> If you run it with sudo, you have locale settings from your user, not root
[17:24] <GunnarHj> juliank: So I guess that an alternative to play with apt.conf is to change the locale in /etc/default/locale, reboot, and run "sudo apt update".
[17:24] <juliank> GunnarHj: that works too
[17:25] <juliank> I do think apt should be able to see that it already had translations for other languages than currently configured and continue to download and add them to the cache, though, but not sure
[17:29] <GunnarHj> juliank: Thanks for your guidande so far. I'll play around a bit later, and maybe come back with a thought or two.
[17:30] <juliank> GunnarHj: so I also need to do some further digging but I believe apt should always add all translations it has to the cache; i believe it already updates all locales it currently has
[17:31] <juliank> I certainly ran LANG=C apt update and it did not delete the sv translations
[17:31] <juliank> but let's take this to #ubuntu-devel, or join us in #debian-apt on OFTC
[17:32] <GunnarHj> juliank: Ack. This is apparently not the right room for this discussion.