"System policy prevents modifying the configuration" shows untranslated

Bug #207677 reported by Ricardo Pérez López
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
system-tools-backends
Fix Released
Medium
system-tools-backends (Ubuntu)
Fix Released
Medium
Martin Pitt
Nominated for Jaunty by Ricardo Pérez López

Bug Description

Binary package hint: policykit-gnome

The Unlock button, which you can see now in several admin tools (for example, in System->Administration->Network), displays a dialog box asking you to type your password.

This dialog box shows almost translated in my Spanish desktop, except one string which shows untranslated. The untranslated string is:

"System policy prevents modifying the configuration"

I can't translate it, because it isn't in policykit-gnome template in Launchpad, as you can see:

https://translations.launchpad.net/ubuntu/hardy/+source/policykit-gnome/+pots/policykit-gnome/es/+translate

Revision history for this message
Martin Pitt (pitti) wrote :

Ah, doesn't seem to be a dup of 199255 after all, rather an incomplete POT

Changed in policykit-gnome:
assignee: nobody → pitti
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Ricardo Pérez López (ricardo) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

This message comes from system-tools-backend's PK .policy files. Apparently s-t-b does not have any i18n'ed build system. This needs to be added in order to properly translate those messages.

ATM .policy files do not use gettext either. In order to support them with language packs, they need to specify a gettext domain in some XML property, and policykit-gnome then needs to do the lookup with dgettext() at runtime.

Changed in policykit-gnome:
assignee: pitti → nobody
importance: Low → Medium
status: In Progress → Triaged
Changed in system-tools-backends:
status: Unknown → New
Revision history for this message
Ricardo Pérez López (ricardo) wrote :

Any news about this bug?

Also, I realized this bug could be a duplicate of bug #200092 (or vice versa).

Changed in system-tools-backends:
status: New → Confirmed
Revision history for this message
Tomasz Dominikowski (dominikowski) wrote :

This has been fixed upstream with patch:

http://cgit.freedesktop.org/system-tools-backends/commit/?id=778432b88ed14dc65ee69565de4960c4b155f618

Also, there was another one added, to fix compiler warnings:

http://cgit.freedesktop.org/system-tools-backends/commit/?id=38645998a2bfbf81bb9c5312f9e0969549a0cb16

Please merge those patches into the Ubuntu version to fix this bug.

Martin Pitt (pitti)
Changed in system-tools-backends (Ubuntu):
assignee: nobody → pitti
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-tools-backends - 2.6.0-2ubuntu6

---------------
system-tools-backends (2.6.0-2ubuntu6) jaunty; urgency=low

  * Add 00git-format-strings.patch: Fix a few format string errors and wrong
    open() invocation. Taken from git head.
  * Add 00git-policy-i18n.patch: i18n of .policy file. Taken from git head.
    (LP: #207677)
  * Add 99_autoreconf.patch: autoreconf changes for previous patch.
  * Drop 60_fix-permissions-of-pid-file.patch, superseded by
    00git-format-strings.patch.

 -- Martin Pitt <email address hidden> Wed, 18 Mar 2009 21:27:12 +0100

Changed in system-tools-backends:
status: In Progress → Fix Released
Revision history for this message
Ricardo Pérez López (ricardo) wrote :

Martin, I have system-tools-backends 2.6.0-2ubuntu6 installed in Jaunty, and I have the latest Spanish translations inside the .mo file:

  $ strings -e S /usr/share/locale-langpack/es/LC_MESSAGES/system-tools-backends.mo
  Change user configuration
  Manage system configuration
  System policy prevents modifying the configuration
  System policy prevents modifying the user configuration
  Project-Id-Version: es
  Report-Msgid-Bugs-To:
  POT-Creation-Date: 2009-03-18 22:04+0000
  PO-Revision-Date: 2009-03-26 08:06+0000
  Last-Translator: Ricardo Pérez López <email address hidden>
  Language-Team: Spanish <email address hidden>
  MIME-Version: 1.0
  Content-Type: text/plain; charset=UTF-8
  Content-Transfer-Encoding: 8bit
  X-Launchpad-Export-Date: 2009-03-27 22:17+0000
  X-Generator: Launchpad (build Unknown)
  Cambiar la configuración del usuario
  Gestionar la configuración del sistema
  La política del sistema impide modificar la configuración
  La política del sistema impide modificar la configuración de usuario

However, I still can't see the "System policy prevents modifying the configuration" message when I click on any Unlock button.

Revision history for this message
Ricardo Pérez López (ricardo) wrote :

Reopened, waiting for developer's comment.

Changed in system-tools-backends (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

Right, unfortunately .policy files do not have a way to call gettext at runtime. We have to pull translations from launchpad into s-t-b and put them into the s-t-b package, so that they can be merged at build time.

Changed in system-tools-backends (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Martin Pitt (pitti) wrote :

I requested a translation export from LP and will add them once it arrives.

Changed in system-tools-backends (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-tools-backends - 2.6.0-2ubuntu7

---------------
system-tools-backends (2.6.0-2ubuntu7) jaunty; urgency=low

  * Add 08_rosetta_translations.patch: Add translations from Rosetta
    (PolicyKit doesn't support gettext at runtime yet). (LP: #207677)

 -- Martin Pitt <email address hidden> Wed, 01 Apr 2009 19:22:21 +0200

Changed in system-tools-backends:
status: In Progress → Fix Released
Changed in system-tools-backends:
status: Confirmed → Fix Released
Revision history for this message
David Planella (dpm) wrote :

Martin,

would it be possible to have another round of exports from LP at least before the non-langpack translation deadline?

I'll let translators know about these strings on 'ubuntu-translators' so they can translate them. I'll point at the upstream ones [1] so they can translate them as well and keep them in sync, at least before GNOME 2.26.1

Alternatively, is there a chance that the translations are automatically exported from GNOME? I'm mentioning it because Carlos Garnacho was saying [2][3] that he might do a s-t-b release before 2.26.1 with the new strings.

[1] http://l10n.gnome.org/module/system-tools-backends/
[2] http://mail.gnome.org/archives/gnome-i18n/2009-March/msg00363.html
[3] http://mail.gnome.org/archives/gnome-i18n/2009-April/msg00000.html

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 207677] Re: "System policy prevents modifying the configuration" shows untranslated

David Planella [2009-04-07 20:35 -0000]:
> would it be possible to have another round of exports from LP at least
> before the non-langpack translation deadline?

Too late, I'm afraid, we got frozen overnight. (I'm on a conference
this week, so I can't/shouldn't work on Ubuntu full steam)

Eventually PolicyKit files should grow gettext support, though. This
updating of packages for translations is a nuisance.

Revision history for this message
Ricardo Pérez López (ricardo) wrote :

Martin, can you please see if this fix could be applied to the bug #361109? Thanks.

Changed in system-tools-backends:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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