Bug 866252

Summary: Translate the policykit rules file
Product: [Community] Virtualization Tools Reporter: Cole Robinson <crobinso>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED DEFERRED QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: berrange, bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-03 16:34:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Cole Robinson 2012-10-14 20:37:44 UTC
The policykit .rules file libvirt installs isn't translated. So every non-english virt-manager user at least is confronted with this in the policykit auth dialog.

gnome-settings-daemon has an example of how to do it:

http://git.gnome.org/browse/gnome-settings-daemon/tree/plugins/wacom/org.gnome.settings-daemon.plugins.wacom.policy.in.in

Unfortunately the machinery that handles it all is intltool, which wants to own the world WRT translations. We might be able to skip the intltool macros and make it all work by calling /usr/bin/intltool\* tools manually, but by the time I got that far my patience was gone and I decided to just file this bug :)

Comment 1 Cole Robinson 2013-01-02 11:50:28 UTC
*** Bug 890321 has been marked as a duplicate of this bug. ***

Comment 2 Cole Robinson 2016-07-26 21:55:02 UTC
Note, sounds like newer gettext can handle these files automatically:

https://blogs.gnome.org/mclasen/2016/07/21/using-modern-gettext/

Not sure if we can depend on that though?

Comment 3 Cole Robinson 2017-09-08 19:13:48 UTC
*** Bug 1487825 has been marked as a duplicate of this bug. ***

Comment 4 Cole Robinson 2019-03-08 00:18:32 UTC
seems like dan figured out the incantation for using modern gettext to pull strings out of XML files, here's the virt-viewer thread:

https://www.redhat.com/archives/virt-tools-list/2019-March/msg00056.html

I suspect we can do the same for the polkit file

Comment 5 Daniel Berrangé 2020-11-03 16:34:03 UTC
Thank you for reporting this issue to the libvirt project. Unfortunately we have been unable to resolve this issue due to insufficient maintainer capacity and it will now be closed. This is not a reflection on the possible validity of the issue, merely the lack of resources to investigate and address it, for which we apologise. If you none the less feel the issue is still important, you may choose to report it again at the new project issue tracker https://gitlab.com/libvirt/libvirt/-/issues The project also welcomes contribution from anyone who believes they can provide a solution.