summaryrefslogtreecommitdiff
path: root/po
AgeCommit message (Collapse)AuthorFilesLines
2013-05-13Don't spawn man for --helpMiloslav Trmač1-0/+3
Convert pkaction and pkttyagent to use GOptionContext. Don't convert pkcheck and only add --help output text because its non-standard --details(which requires two arguments) can't be implemented using GOptionContext. Don't touch pkexec, in a (futile?) attempt to minimize the amount of complex code running before authentication. This leaves the option processing lax as it was (e.g. accepting contradicting options, ignoring non-option arguments), and should only affect the handling of --help and behavior when invalid arguments are detected. https://bugs.freedesktop.org/show_bug.cgi?id=29936
2012-05-23Nuke polkitbackend library, localauthority backend and extension systemDavid Zeuthen1-1/+0
Any backend can now be implemented in JavaScript (if so desired) so we don't need any of this any more. Note that the libpolkitbackend library was never declared stable (the preprocessor symbol POLKIT_BACKEND_I_KNOW_API_IS_SUBJECT_TO_CHANGE had to be defined) so removing it is not an API/ABI break. Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-20Ignore .po/ for intltoolMartin Pitt1-0/+1
This avoids build failures if quilt patches change files with translatable strings. https://bugs.freedesktop.org/show_bug.cgi?id=36415
2011-03-03Deprecated PolkitBackendActionLookupDavid Zeuthen2-60/+32
Instead, pass the untranslated message as polkit.message and set the gettext domain on polkit.gettext_domain. For printf()-style messages, occurences of the form $(name_of_key) in the translated version of polkit.message are expanded with the value of the property name_of_key. See the pkexec(1) mechanism for an example of how to use this. Additionally, the property polkit.icon_name can be set to the icon. Note that not all authentication agents use this - in particular, gnome-shell does not. It is no longer possible to set the details to be shown in the authentication dialog. It was never a good idea to hide information there anyway. Instead, the mechanism should format a meaningful message. Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-11-13Fix make distcheckDavid Zeuthen1-0/+1
2009-05-15Add a pkexec(1) commandDavid Zeuthen2-15/+59
2008-12-07port the .policy file parser and implement EnumerateActionsDavid Zeuthen3-2/+53
Also added Danish translations to test that translations work $ dbus-send --system --print-reply --dest=org.freedesktop.PolicyKit1 /org/freedesktop/PolicyKit1/Authority org.freedesktop.PolicyKit1.Authority.EnumerateActions string:da method return sender=:1.4481 -> dest=:1.4483 reply_serial=2 array [ struct { string "org.freedesktop.policykit.modify-defaults" string "Konfigurer implicit autorisering" string "Autentificering er påkrævet for ændre implicit autorisering" string "The PolicyKit Project" string "http://hal.freedesktop.org/docs/PolicyKit/" string "" array [ ] } struct { string "org.freedesktop.policykit.read" string "Læs andre brugers autoriseringer" string "Autentificering er påkrævet for at læse andre brugers autoriseringer" string "The PolicyKit Project" string "http://hal.freedesktop.org/docs/PolicyKit/" string "" array [ dict entry( string "org.freedesktop.PolicyKit.run-as-superuser.path" string "/usr/bin/BlahBlaster" ) ] } struct { string "org.freedesktop.policykit.grant" string "Autoriser en anden bruger" string "Autentificering er påkrævet for at autorisere andre brugere" string "The PolicyKit Project" string "http://hal.freedesktop.org/docs/PolicyKit/" string "" array [ ] } struct { string "org.freedesktop.policykit.revoke" string "Fjern autorisering fra en anden bruger" string "Autentificering er påkrævet for at fjerne en autosering fra en anden bruger" string "The PolicyKit Project" string "http://hal.freedesktop.org/docs/PolicyKit/" string "" array [ ] } ] $ dbus-send --system --print-reply --dest=org.freedesktop.PolicyKit1 /org/freedesktop/PolicyKit1/Authority org.freedesktop.PolicyKit1.Authority.EnumerateActions string: method return sender=:1.4481 -> dest=:1.4484 reply_serial=2 array [ struct { string "org.freedesktop.policykit.modify-defaults" string "Modify defaults for implicit authorizations" string "Authentication is required to modify the defaults for implicit authorizations" string "The PolicyKit Project" string "http://hal.freedesktop.org/docs/PolicyKit/" string "" array [ ] } struct { string "org.freedesktop.policykit.read" string "Read authorizations of other users" string "Authentication is required to read authorizations of other users" string "The PolicyKit Project" string "http://hal.freedesktop.org/docs/PolicyKit/" string "" array [ dict entry( string "org.freedesktop.PolicyKit.run-as-superuser.path" string "/usr/bin/BlahBlaster" ) ] } struct { string "org.freedesktop.policykit.grant" string "Grant authorizations to other users" string "Authentication is required to grant authorizations to other users" string "The PolicyKit Project" string "http://hal.freedesktop.org/docs/PolicyKit/" string "" array [ ] } struct { string "org.freedesktop.policykit.revoke" string "Revoke authorizations from other users" string "Authentication is required to revoke authorizations other users" string "The PolicyKit Project" string "http://hal.freedesktop.org/docs/PolicyKit/" string "" array [ ] } ]
2008-11-06initial commitDavid Zeuthen3-0/+7