I noticed pkcon doesn't use its translations at all. I have translated packagekit's fi.po completely, but pkcon doesn't display any of the messages in Finnish on a system with the Finnish locale set.
I haven't looked at the code yet at all (I won't have time to in the next few days) but by doing strace it seems pkcon never even reads anything from /usr/share/locale/*/LC_MESSAGES/
$ pkcon install foo
Command failed: The package 'foo' could not be installed: The package could not be found
Should be translated but is not.
$ strace pkcon install foo 2>&1|grep LC_MESSAGES
But if we look at gnome-packagekit:
strace gpk-log 2>&1|grep LC_MESSAGES
Returns multiple lines, one of which is
open("/usr/share/locale/fi/LC_MESSAGES/gnome-packagekit.mo", O_RDONLY) = 3
This is how it should work in pkcon too.
Created attachment 20523 [details] [review]
fixes issue for me
I've applied this fix, which fixes the problem for me -- thanks for reporting.