bugGNU gettext - Bugs: bug #42615, Feature request: Support...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #42615: Feature request: Support internationalization of PolicyKit XML files

Submitted by:  None
Submitted on:  Wed 25 Jun 2014 05:48:57 PM UTC  
 
Category: XMLSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Thu 16 Nov 2017 01:41:56 AM UTC, comment #5:

While I certainly understand the desire and motivation to keep the specific ITS support with the primary software implementation, because any modification can then be kept easily in sync. This also causes problems with project build-depdenencies.

For example I was requested recently to include a policykit policy in dpkg, and I wanted that to be translated. I had already implemented the .its and .loc files, to then notice that policykit shipped an .its file, which I was not able to build-depend on, as that would be unacceptable in this case because that means pulling policykit into the Debian (or any derivative) build-essential set.

This can also incur huge build-dependency chains or even cycles, to be able to support files that are not directly used by the building projects. So shipping all these files with gettext also have some merit worth considering IMO.

Guillem Jover <guillem>
Mon 27 Feb 2017 06:57:39 PM UTC, comment #4:

polkit now includes an ITS rule for .policy files, albeit not in a released version yet:

https://cgit.freedesktop.org/polkit/commit/?id=c78819245ff8a270f97c9f800773e727918be838

https://cgit.freedesktop.org/polkit/commit/?id=32e9a69c335324a53a2c0ba4e0b513fb044be0fd

Piotr Drąg <piotrdrag>
Fri 22 Jan 2016 07:13:01 AM UTC, comment #3:

Now that gettext 0.19.7 has a built-in support for ITS, I would suggest PolicyKit to install *.its files by themselves, like this:

https://github.com/hughsie/appstream-glib/commit/2f98b73d42fc65e9c1c3feaefe0ba1fe0fd1b66e
or:
https://git.gnome.org/browse/glib/commit/?id=50645b724a3b43767fd57e4af53365d0cd270382

I am more than happy to help, but I don't really know how those PolicyKit translations are consumed.

Daiki Ueno <ueno>
Project Administrator
Wed 25 Jun 2014 11:08:23 PM UTC, comment #2:

While we have already supported some XML-based file formats (GSettings, GtkBuilder, ...), I'm now wondering if the approach scales. You can use itstool like this:

Perhaps it might better integrate the part of itstool features to gettext, rather than adding support for every XML-based file format?

Daiki Ueno <ueno>
Project Administrator
Wed 25 Jun 2014 05:55:02 PM UTC, comment #1:

Examples of policy files:

http://cgit.freedesktop.org/systemd/systemd/tree/src/hostname/org.freedesktop.hostname1.policy.in

https://git.gnome.org/browse/gnome-system-monitor/tree/org.gnome.gnome-system-monitor.policy.in.in

Piotr Drąg <piotrdrag>
Wed 25 Jun 2014 05:48:57 PM UTC, original submission:

Right now these use intltool-merge for internationalization.

These files are XML but there's already precedent in support of GSettings schemas which are also XML based, so a lot of the plumbing might already be present.

Cheers,
Filipe

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by guillem (Posted a comment)
  • -unavailable- added by haible (Updated the item)
  • -unavailable- added by ueno (Posted a comment)
  • -unavailable- added by piotrdrag (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Nov 2016 11:53:36 AM UTChaibleCategoryNone=>XML

    Back to the top


    Powered by Savane 3.1-cleanup1