Red Hat Bugzilla – Bug 442938
Gettext domain not set in polkit-gnome-authorization, messages in English even when translations are provided
Last modified: 2013-03-05 22:55:35 EST
Description of problem:
polkit-gnome-authorization is in English even though I'm using LANG=fi_FI.UTF8
and Finnish translations exist. This is most likely because the gettext domain
is not set. Please see the Ubuntu bug report and the patch they have:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start polkit-gnome-authorization on a Gnome desktop using some non-English
locale which has translations provided
The application is in English.
The application is in the language that the user has chosen, if the correct
translations have been provided.
You might want to check this gettext stuff in other PolicyKit related source
files which use translations. I don't know how to e.g. "reproduce" a screen
asking for authorization to manage packages with PackageKit, but that should
show the messages in the language the user has chosen as well.
I could "reproduce" the screen asking for authorization anyway, at least with
PackageKit that was in Finnish except the header "System policy prevents
removing package". So I believe the main problem here is just
Does this work if you do this
LANG=fi_FI.UTF8 /usr/libexec/polkit-gnome-manager --no-exit
and then from another shell
polkit-auth --obtain org.freedesktop.policykit.modify-defaults
FWIW, this works for me
And the reason the main message is in english is that the PolicyKit package
And just to prove that part of the i18n stuff works too
This should say something about changing timezones (I don't speak Finnish
So, anyway, I think you the reason you saw the English messages were that you
were logged into an English locale and didn't realize that that the
authentication happens in a separate process spawned from the session bus. So if
logging in into an Finnish locale this should just work. Otherwise please let us
I'm sorry, I probably wasn't clear enough. Yes, that window is in Finnish and me
mentioning it without testing as an additional info thing was probably unneeded.
But the Authorization application polkit-gnome-authorization is completely in
English and that's why I made this bug report in the first place. Please take a
look at the Ubuntu bug report and patch as well. Here's a screenshot, this is
from a desktop where those things that you demonstrated do work as well:
I see. Actually your report was crystal clear, I was just reading it wrong. My
bad. On the upside it made me verify that i18n is working in the auth dialogs.
Oh well. So I've committed the patch upstream and it will land in 0.8-3.fc9. If
you can verify these packages works for you
it would be nice. Thanks!
The new version does work for me. Thanks!