polkitd translations for actions not working with gettext

Bug #2089846 reported by Juanma Navarro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
policykit-1 (Ubuntu)
New
Undecided
Unassigned

Bug Description

1) The release of Ubuntu you are using
Release: Ubuntu 24.04.1 LTS

2) The version of the package you are using
Package: polkitd 124-2ubuntu1

3) What you expected to happen
Dialog messages asking for permissions shows fully translated

4) What happened instead
If a action file for polkit defines translations inline (i.e. /usr/share/polkit-1/actions/com.ubuntu.release-upgrader.policy):

<message xml:lang="es (or whatever)"<Se requiere autorización</message>

then the dialog for permissions shows the translated message but if action file uses "gettext-domain" (i.e. /usr/share/polkit-1/actions/io.snapcraft.snapd.policy):

<message gettext-domain="snappy">Authorization is required to authenticate on the snap daemon</message>

then only gets translated the first time the dialog is shown, after that the message shows always untranslated.

If polkitd is restarted then the first time works as expected, but only the first time. After that messages will show untranslated again.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: polkitd 124-2ubuntu1
Uname: Linux 6.11.10-x64v3-xanmod1 x86_64
ApportVersion: 2.28.1-0ubuntu3.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Thu Nov 28 12:53:00 2024
InstallationDate: Installed on 2024-11-14 (14 days ago)
InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64 (20240827.1)
SourcePackage: policykit-1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Juanma Navarro (juanma1980) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.