Skip to content

pkexec display untranslated authentication text #597

@therealmate

Description

@therealmate

Describe the bug
When running pkexec from a console, the authentication message is left untranslated, even though the language is set and exists (in /usr/share/locale/hu/LC_MESSAGES/polkit-1.mo)

To Reproduce
Steps to reproduce the behavior:

  1. export LANG=hu_HU.UTF-8
  2. export LC_MESSAGES=hu_HU.UTF-8
  3. pkexec ls
  4. It shows Authentication is needed to run `/usr/bin/ls' as the super user instead of Hitelesítés szükséges a(z) „/usr/bin/ls” futtatásához rendszergazdaként"

Expected behavior
The authentication message is in Hungarian.

Desktop (please complete the following information):

  • OS (including version): Arch Linux
  • Desktop Environment [Gnome, KDE, ...]: COSMIC
  • Version of polkit: 126

Please...

okt 03 22:10:47 mate polkitd[5941]: Unregistered Authentication Agent for unix-process:16866:332726 (system bus name :1.293, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
okt 03 22:10:47 mate polkitd[5941]: Operator of unix-process:16866:332726 successfully authenticated as unix-user:mate to gain ONE-SHOT authorization for action org.freedesktop.policykit.exec for unix-process:16866:332726 [/usr/bin/bash] (owned by unix-user:mate)
okt 03 22:10:46 mate polkitd[5941]: Registered Authentication Agent for unix-process:16866:332726 (system bus name :1.293 [pkexec ls], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions