update-manager's translation template is very likely not up to date again

Bug #438077 reported by Tomasz Dominikowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Fix Released
Undecided
Unassigned
aptdaemon (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: update-manager

There's been some major changes in update-manager lately, but the translation template does not reflect that. What's worse is that even strings that have not been changed at all do not show up translated, like "Your system is up-to-date" or "Package information was updated X ago". Very few strings appear translated and none of the new ones are available for translation.

Using latest karmic updated just seconds ago with the latest translation update.

update-manager 1:0.125.4 , translation pack 20090926.

Tags: i18n
tags: added: i18n
Revision history for this message
Tomasz Dominikowski (dominikowski) wrote :

I'm being told it's a bug in the auto-approver from the Launchpad 3.0 rollout, which caused the Ubuntu imports to be disabled, which in turn caused the new template of update-manager to be put on hold. If this is the case I will close this bug, we'll wait and see.

Michael Vogt (mvo)
Changed in update-manager (Ubuntu):
importance: Undecided → High
milestone: none → ubuntu-9.10-beta
Revision history for this message
David Planella (dpm) wrote :

After having checked the imports queue, I can confirm that the template was imported before the imports were disabled in Launchpad. I've also checked the imported template against the one created on package build and they are identical.

This means that:
 a) the template is being correctly created upon build and
 b) that it is up to date in Launchpad.

For more information:

https://wiki.ubuntu.com/UbuntuDevelopment/Internationalisation#Verifying%20translation%20uploads

It might be possible that the untranslated strings either come from other packages or have not been marked for translation in update-manager.

Tomasz, could you please point out to the strings not being translated in Polish?

Revision history for this message
Tomasz Dominikowski (dominikowski) wrote :

This should give you a rough idea about what I mean:

http://imgur.com/mJN6z&WIHnb
http://imgur.com/WIHnb.png

Don't mind the "Settings..." button, I've noticed it's now available for translation again. The rest appear problematic though. Especially the small window with the progress bar and the main strings at the top of the main window.

Revision history for this message
Milo Casagrande (milo) wrote :

@Tomasz:
I think that the small screenshot is taking the stringhs from aptdaemon, not update-manager. But I'm not 100% sure.

https://translations.launchpad.net/ubuntu/karmic/+source/aptdaemon

Revision history for this message
Tomasz Dominikowski (dominikowski) wrote :

True, I've just gone through it. It would seem that the only issue is the two big strings at the top of the main window.

Revision history for this message
Tomasz Dominikowski (dominikowski) wrote :

Here's more: http://imgur.com/8bRBe.png

Notice "selected" and "Download size" as well.

Revision history for this message
David Planella (dpm) wrote :

* "Distribution updates"
https://translations.edge.launchpad.net/ubuntu/karmic/+source/update-manager/+pots/update-manager/ca/281/+translate
The template in Launchpad is ok, the exported translation from the language-pack-pl package as well:

#: ../UpdateManager/Core/UpdateList.py:66
msgid "Distribution updates"
msgstr "Aktualizacje dystrybucji"

* "Your system is up-to-date"
https://translations.edge.launchpad.net/ubuntu/karmic/+source/update-manager/+pots/update-manager/pl/167/+translate
The template in Launchpad is ok, the exported translation from the language-pack-pl package as well:

#: ../DistUpgrade/DistUpgradeView.py:289 ../UpdateManager/UpdateManager.py:482
msgid "Your system is up-to-date"
msgstr "System jest w pełni zaktualizowany"

* "The package information was last updated %s hour ago"
https://translations.edge.launchpad.net/ubuntu/karmic/+source/update-manager/+pots/update-manager/pl/237/+translate
The template in Launchpad is ok, the exported translation from the language-pack-pl package as well:

#: ../UpdateManager/UpdateManager.py:468
#, python-format
msgid "The package information was last updated %s hour ago."
msgid_plural "The package information was last updated %s hours ago."
msgstr[0] "Informacje o pakietach zaktualizowano %s godzinę temu"
msgstr[1] "Informacje o pakietach zaktualizowano %s godziny temu."
msgstr[2] "Informacje o pakietach zaktualizowano %s godzin temu."

So it seems update-manager is not loading the strings in the last 3 cases. Could this be related to http://bugzilla.gnome.org/show_bug.cgi?id=574520?

* "Updating cache"
This one seems to come from aptdaemon:
https://translations.edge.launchpad.net/ubuntu/karmic/+source/aptdaemon/+pots/aptdaemon/pl/34/+translate

* "Downloading packages"
I still haven't located this one, it doesn't seem to be in update-manager

Revision history for this message
David Planella (dpm) wrote :

From the latest screenshot:

"Software updates are available for this computer"
https://translations.edge.launchpad.net/ubuntu/karmic/+source/update-manager/+pots/update-manager/pl/242/+translate

#: ../UpdateManager/UpdateManager.py:500
msgid "Software updates are available for this computer"
msgstr "Dostępne są aktualizacje oprogramowania"

"If you don't want to..."
https://translations.edge.launchpad.net/ubuntu/karmic/+source/update-manager/+pots/update-manager/pl/243/+translate

#: ../UpdateManager/UpdateManager.py:501
msgid ""
"If you don't want to install them now, choose \"Update Manager\" from the "
"Administration menu later."
msgstr ""
"Można zainstalować je później, wybierając pozycję \"Menedżer aktualizacji\" "
"z menu Administracja."

Again, this shows that at least the strings are correctly imported (present in the Launchpad template and translated) and exported (present in the pl.po file from the language-pack-pl source package).

I guess this handful of strings should be enough to investigate the problem. The next steps could now be checking if the translations are also in the installed .mo file of the binary language-pack-pl package at /usr/share/locale-langpack/pl/LC_MESSAGES/update-manager.mo. If they are, update-manager is not loading them correctly (again, due to the number of packages hitting this lately, a guess would be http://bugzilla.gnome.org/show_bug.cgi?id=574520)

Revision history for this message
Michael Vogt (mvo) wrote :

I can confirm the problem. Its a bit mysterious, because when the app starts a:
    print _("Software updates are available for this computer")
will return a translated string.

But a bit later its untranslated. So something seems to meddle with gettext in between.

Changed in update-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :

UpdateManager/UpdateManager.py:
...
    self.install_backend = backend.backend_factory(self.window_main)
...
this line kills the i18n

Revision history for this message
Michael Vogt (mvo) wrote :

It turns out that aptdaemon/enum.py contains:

gettext.textdomain("aptdaemon")

This gets included in the client and so the gettext domain goes wrong from that point on.

affects: update-manager (Ubuntu) → aptdaemon (Ubuntu)
Changed in aptdaemon (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Michael Vogt (mvo) wrote :

This is fixed, but its not accepted for beta so it will go in right after beta

Michael Vogt (mvo)
Changed in aptdaemon (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package aptdaemon - 0.10+bzr242-0ubuntu2

---------------
aptdaemon (0.10+bzr242-0ubuntu2) karmic; urgency=low

  * debian/patches/mvo-branch.patch:
    - updated to include fix for gettext fiddling (LP: #438077)

 -- Michael Vogt <email address hidden> Mon, 28 Sep 2009 18:54:35 +0200

Changed in aptdaemon (Ubuntu):
status: Fix Committed → Fix Released
Adi Roiban (adiroiban)
Changed in ubuntu-translations:
status: New → Fix Released
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.