Bug 866252 - Translate the policykit rules file
Summary: Translate the policykit rules file
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
: 890321 1487825 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-14 20:37 UTC by Cole Robinson
Modified: 2020-11-03 16:34 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-11-03 16:34:03 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.