Getting localized action message and descriptions

Gökçen Eraslan gokcen at pardus.org.tr
Tue Jan 25 00:58:25 PST 2011


Pazartesi 24 Ocak 2011 günü (saat 16:18:40) David Zeuthen şunları yazmıştı:
> However the GObject API passes the empty string for the locale
> 
>  http://cgit.freedesktop.org/PolicyKit/tree/src/polkit/polkitauthority.c#n6
> 45
> 
> We should probably change the GObject API to pass getenv("LANG") if
> non-NULL or something.

But in that documentation[1]:

IN String locale: the locale to get descriptions in or *the blank string* to 
use the system locale. 


is written, so why doesn't passing empty locale sting works? Not implemented 
in the daemon side?


[1] http://hal.freedesktop.org/docs/polkit/eggdbus-interface-
org.freedesktop.PolicyKit1.Authority.html#eggdbus-method-
org.freedesktop.PolicyKit1.Authority.EnumerateActions

-- 
Gökçen Eraslan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/polkit-devel/attachments/20110125/5ba212a8/attachment.pgp>


More information about the polkit-devel mailing list