Odd behavior using Italian translation

Bug #67112 reported by Luca Ferretti
6
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: update-manager

We (the Ubuntu Italian team) are experiencing a really strange behavior for Update Manager in Edgy with the Italian language.

1. Using the MO file shipped with the latest language pack, the progress dialog after fetching new package should display the string

   Attendere, l'operazione potrebbe richiedere del tempo

But it shows

   Attendere, loperazione

(note the missing '). The original C message is "Please wait, this can take some time."

2. I tried to hack this issue using `mgsunfmt` command to re-generate the PO file from the installed MO file, then editing the previous message and finally recreating the MO file using `mgsfmt` comman.

After copying the new MO file in /usr/../LC_MESSAGES/update-manager.mo, Update Manager is unable to perform updated. When some updates are available, clicking on "Install" button Update Manager simply performs the check that it runs on startup, showing the progess dialog labeled as "Starting update manager". I'm no longer able to update my system using it, while synaptic and update-notifier can.

3. Restoring the MO file from langpack (using `apt-get --reinstall install`), I can update the system, but the truncated message appears again.

Revision history for this message
Luca Ferretti (elle.uca) wrote :

Downloaded the source code. The msgid is here

### code ####
def run_synaptic(self, id, action, lock):
    try:
      apt_pkg.PkgSystemUnLock()
    except SystemError:
      pass
    cmd = ["gksu", "--desktop", "/usr/share/applications/update-manager.desktop",
           "--", "/usr/sbin/synaptic", "--hide-main-window",
           "--non-interactive", "--parent-window-id", "%s" % (id) ]
    if action == INSTALL:
      cmd.append("--progress-str")
      cmd.append("%s" % _("Please wait, this can take some time."))
      cmd.append("--finish-str")
      cmd.append("%s" % _("Update is complete"))
      f = tempfile.NamedTemporaryFile()
      for pkg in self.cache:
          if pkg.markedInstall or pkg.markedUpgrade:
              f.write("%s\tinstall\n" % pkg.name)
      cmd.append("--set-selections-file")
      cmd.append("%s" % f.name)
      f.flush()
      subprocess.call(cmd)
      f.close()
    elif action == UPDATE
   ...
### end code ###

So, the issue is here or in synaptic itself.

BTW, I'm not sure, but the "Update is complete" message is never used.

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

Thanks for your bugreport.

This looks like the bug #51419. Unfortunately I discovered it pretty late and the fix won't make it onto the CD. But it will be uploaded ASAP to the edgy-updates repository. A workaround is to leave the ' out of the string.

I mark this bug a duplicate now.

Thanks,
 Michael

Changed in update-manager:
status: Unconfirmed → Confirmed
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.