=== jamesh_ is now known as jamesh === cpaelzer__ is now known as cpaelzer [10:41] 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.) [10:42] bug 1161743 in ddtp-translations (Ubuntu) "Typos in russian description for package libxml2" [Undecided,New] https://launchpad.net/bugs/1161743 [15:27] GunnarHj: we have already had discussions on that [15:32] GunnarHj: I added a comment with a summary of our findings [16:59] juliank: Thanks. I replied on the bug report. [17:00] GunnarHj: That's not a useful reply [17:01] juliank: ?? [17:01] I don't speak swedish [17:01] permission denied I guess [17:01] juliank: But you basically only see English output, right? [17:01] GunnarHj: The package you show is only in release pocket, so I don't understand what you want to tell me [17:02] juliank: That apt-cache shows the English package desciption, not the Swedish one. [17:05] GunnarHj: works in a clean system, so this is a problem on your end [17:08] juliank: Are you sure? Actually I reproduced the issue described by the user "vofka". [17:08] 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] GunnarHj: Are you sure that the locales are configured correctly for both the user and root? [17:10] 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] 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] juliank: I think I get it. The root locale (in /etc/default/locale) is en_US.UTF-8. [17:12] Right, then you need to configure your apt.conf [17:12] to always do sv [17:13] juliank: This is not very user friendly. [17:13] If you copy the language file, I assume it invalidates the cache, and you get a new one built [17:14] It's the way it is, and it's not going to change in a stable release [17:15] juliank: Right. But I see room for improvements for the future. :) [17:15] Not in the next few years, though [17:15] I did not add space in apt to record locales in the cache file so I could invalidate them :D [17:15] or rather :( [17:17] juliank: Now you lost me. Anyway, I'll make a couple of further tests for my own understanding. [17:19] GunnarHj: Well you gotta set Acquire::Languages { "sv_SE"; "sv"; en"; "none"; }; [17:19] in apt.conf. [17:19] APT can't guess which languages your users have. [17:19] And the cache does not record with which languages it was created, so it can't know if its invalid [17:20] And apt-daily.service might delete your sv translations because it's not configured to download them [17:20] juliank: Why can't APT query the environment? [17:21] It knows what your language is, it does not know it's missing it in the cache and needs to regenerate it [17:21] Ah.. [17:21] 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] apt update is run as root by definition, I suppose. [17:23] Well sort of [17:24] If you run it with sudo, you have locale settings from your user, not root [17:24] 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] GunnarHj: that works too [17:25] 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] 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] 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] I certainly ran LANG=C apt update and it did not delete the sv translations [17:31] but let's take this to #ubuntu-devel, or join us in #debian-apt on OFTC [17:32] juliank: Ack. This is apparently not the right room for this discussion. === ijohnson is now known as ijohnson|lunch === ijohnson|lunch is now known as ijohnson