Bug 96940

Summary: add gettext support for policy files
Product: PolicyKit Reporter: Matthias Clasen <mclasen>
Component: daemonAssignee: David Zeuthen (not reading bugmail) <zeuthen>
Status: RESOLVED FIXED QA Contact: David Zeuthen (not reading bugmail) <zeuthen>
Severity: normal    
Priority: medium CC: piotrdrag
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: patch

Description Matthias Clasen 2016-07-15 15:15:02 UTC
Created attachment 125088 [details] [review]
patch

see patch
Comment 1 Matthias Clasen 2016-07-15 15:28:22 UTC
I should have put a bit more of an explanation here, I guess.

gettext can extract strings from xml files and merge them back these days, but it needs descriptions of the xml format in the form of .its/.loc files. See 

https://www.gnu.org/software/gettext/manual/html_node/Preparing-ITS-Rules.html#Preparing-ITS-Rules

for some background.

The expectation is that modules install its files for their own formats (e.g. gtk installs one for the gtkbuilder .ui file format).
Comment 2 Miloslav Trmac 2016-07-15 16:00:21 UTC
Thanks for the patch!

(Pushing to master blocked on bug#96942 .)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.