GNOME Bugzilla – Bug 510635
PolicyKit policies descritions are not translatable.
Last modified: 2008-01-28 12:07:23 UTC
Here is a patch to allow translations of .policy files. Basically: * move .policy file to .policy.in * add @INTLTOOL_POLICY_RULE@ in Makefile.am and add .policy.in do DISTFILES * add .policy.in to POTFILES.in I'm running make distcheck to ensure it works fine.
Created attachment 103202 [details] [review] The proposed patch
Created attachment 103206 [details] [review] Updated patch Add $(polkit_DATA) to CLEANFILES (still running make distcheck...)
distcheck says the latest patch is ok
Thanks.
There is a typo. From: Seán de Búrca To: gnome-i18n@gnome.org Date: Sun, 27 Jan 2008 18:05:44 -0700 Subject: Re: String change in gnome-panel > [...] the first word in the third _message [...] reads > "Privieleges"
yepp, there is a typo.
Ok, I've grepped my all gnome-panel tree for the typo, and I can't find it. Whoever can see it feel free to fix it.
Ah, I understand what happened: you are talking about the strings in the patch, and I'm talking about the actual strings in svn. The patch couldn't be applied (because of 'svn mv'), so I had to re-do part of it myself, and I didn't see the strings in Luca's patch. Feel free to either change the strings to the ones proposed by Luca in his patch, or to close the bug.
Vincent, I've just applied a change on svn, it seems you have committed the .in file with <_message>...<message> instead <_message>...<_message> PS the string change was to match similar strings from PolicyKit, if I remember well.. If OK I'll change them (fixing the wrong one) and close the bug
Ah, good catch. I shouldn't commit things at 1AM. Feel free to change the strings.
The original PK messages are Authentication is required to .... This is the change committed to trunk Index: gnome-clock-applet-mechanism.policy.in =================================================================== --- gnome-clock-applet-mechanism.policy.in (revisione 10764) +++ gnome-clock-applet-mechanism.policy.in (copia locale) @@ -3,13 +3,11 @@ "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd"> -<!-- needs i18n work --> - <policyconfig> <action id="org.gnome.clockapplet.mechanism.settimezone"> <_description>Change system time zone</_description> - <_message>Changing the system time zone requires privileges.</_message> + <_message>Privileges are required to change the system time zone.</_message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>auth_self_keep_always</allow_active> @@ -18,7 +16,7 @@ <action id="org.gnome.clockapplet.mechanism.settime"> <_description>Change system time</_description> - <_message>Changing the system time requires privileges.</_message> + <_message>Privileges are required to change the system time.</_message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>auth_self_keep_always</allow_active> @@ -27,7 +25,7 @@ <action id="org.gnome.clockapplet.mechanism.configurehwclock"> <_description>Configure hardware clock</_description> - <_message>Configuring the hardware clock requires privileges.</_message> + <_message>Privileges are required to configure the hardware clock.</_message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>auth_self_keep_always</allow_active>