Bug 301819

Summary: Untranslatable string in the org.kubuntu.qaptworker.policy file
Product: [Applications] muon Reporter: Kristóf Kiszel <ulysses>
Component: qaptworkerAssignee: Jonathan Thomas <echidnaman>
Status: RESOLVED FIXED    
Severity: normal CC: ulysses
Priority: NOR    
Version: 1.3.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 2.0
Attachments: A screenshot about the PolKit-KDE-1 authentication dialog

Description Kristóf Kiszel 2012-06-13 15:20:58 UTC
If the user try to install e.g Rocs, an authorization dialog appears to ask for the user's password. In this dialog all strings are translated except the „Install or remove packages” string which comes from the org.kubuntu.qaptworker.policy file.

Reproducible: Always

Steps to Reproduce:
1. Open Muon
2. Select Rocs to be installed
3. Click on Apply changes
Actual Results:  
A PolKit authorization dialog appears with the untranslated „Install or remove packages” string.

Expected Results:  
„Install or remove packages” is replaces with the actual translation.
Comment 1 Kristóf Kiszel 2012-06-13 15:22:43 UTC
Created attachment 71796 [details]
A screenshot about the PolKit-KDE-1 authentication dialog
Comment 2 Jonathan Thomas 2012-10-19 18:04:22 UTC
Sorry it took so long.

The cause of this was that the way KDE handles PolicyKit action translation is to actually use a generalized KAuth action file, that can be used to generate platform-specific (windows, mac, policykit) action files. Since LibQApt is a Qt-only library, up until QApt2 the actions were stored as a policykit action file. For QApt2 I've included an optional KAuth actions file used when LibQApt is compiled on a machine with KDE. The Script Kiddie bot will integrate the KAuth actions file in to the KDE translations frame work. I plan on syncing the translated KAuth-generated PolicyKit policy file for installation on systems building LibQApt without KDE before each release.