Xsane menu entry is not translatable

Bug #410234 reported by David Planella
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Fix Released
High
David Planella
xsane (Ubuntu)
Fix Released
Undecided
David Planella
Karmic
Fix Released
Undecided
David Planella

Bug Description

Binary package hint: xsane

This bug affects users with a localised version of Ubuntu, in which the "Applications > Graphics > XSane Image scanning program" menu entry of the default desktop installation appears untranslated (although it is translated in Launchpad).

TEST CASE:

1. In a localized system using a non-English locale and with complete XSane translations, go to Applications > Graphics
2. The "XSane Image scanning program" entry appears untranslated

This is due to 13_pot_desktop_msgid.dpatch patch, correctly adding the "XSane Image Scanner" string to the POT template, but the actual string in the debian/xsane.desktop package remains unchanged as "XSane Image scanning program", for which there is no actual translation.

The attached debdiff corrects this by modifying the .desktop file to use the same "XSane Image Scanner" string as in the message catalog (.mo file), so that its translation can be loaded.

David Planella (dpm)
tags: added: i18n
Revision history for this message
Heikki Mäntysaari (heikki-mantysaari) wrote :

Confirming in Karmic (in Finnish). However the menu entry is translated in Jaunty.

Looks like the desktop file src/xsane.desktop is not used (see debian/rules file) but instead the package uses file debian/xsane.desktop. This file contains the necessary string "X-Ubuntu-Gettext-Domain".

I downloaded the source package and built it (apt-get source xsane and debuild) and installed the xsane-0.996-2ubuntu1-package. It installed the desktop file located under the debian directory and the menu entry was translated (.desktop file contains translations)! Then I reinstalled the package from repository the menu entry was again untranslated.

Can anyone explain this?

Changed in ubuntu-translations:
status: New → Confirmed
David Planella (dpm)
tags: added: needs-desktop-entry-i18n
Revision history for this message
David Planella (dpm) wrote :

Actually, the entries do get added to the template by a patch (13_pot_desktop_msgid.dpatch), which adds the following strings to the template:

+
+msgid "XSane Image Scanner"
+msgstr ""
+
+msgid "Scan, copy and fax images"
+msgstr ""

This, however, does not seem to work in the current version of the package, which creates the POT template, gets imported correctly into Launchpad, but the wrong 'Name' key gets put in the installed /usr/share/applications/xsane.desktop file:

[Desktop Entry]
Name=XSane Image scanning program
Comment=Scan, copy and fax images
[...]
X-Ubuntu-Gettext-Domain=xsane

(notice "XSane Image scanning program" vs. "XSane Image Scanner", which impedes translations to be used)

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

Please find attached a patch with an attempt to fix this issue.

Changed in ubuntu-translations:
status: Confirmed → In Progress
importance: Undecided → High
assignee: nobody → David Planella (dpm)
Revision history for this message
Martin Pitt (pitti) wrote :

Fine for an SRU. Please don't upload that debdiff, though. It's a file in debian/ which should be modified directly, not through a patch.

Changed in xsane (Ubuntu Karmic):
status: New → In Progress
assignee: nobody → David Planella (dpm)
Revision history for this message
David Planella (dpm) wrote :

Added a new patch modifying the .desktop file under debian/ directly.

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

Also uploaded a package to my PPA (https://launchpad.net/~dpm/+archive/ppa/?field.series_filter=karmic) for testing purposes.

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

sponsored

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in xsane (Ubuntu Karmic):
status: In Progress → Fix Committed
tags: added: verification-needed
David Planella (dpm)
Changed in xsane (Ubuntu):
status: In Progress → Fix Committed
Changed in ubuntu-translations:
status: In Progress → Fix Committed
Revision history for this message
Luca Ferretti (elle.uca) wrote :

Verified, package from -proposed provides translated menu entry (at least in Italian)

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xsane - 0.996-2ubuntu1.1

---------------
xsane (0.996-2ubuntu1.1) karmic-proposed; urgency=low

  * Modified .desktop entry to match POT changes (LP: #410234)
 -- David Planella <email address hidden> Tue, 03 Nov 2009 08:43:08 +0100

Changed in xsane (Ubuntu Karmic):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Copied karmic-proposed to lucid.

Changed in xsane (Ubuntu):
status: Fix Committed → Fix Released
Changed in xsane (Ubuntu Karmic):
status: Fix Released → Fix Committed
Revision history for this message
David Planella (dpm) wrote :

Also verified with Catalan. The -proposed version shows the string translated.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xsane - 0.996-2ubuntu1.1

---------------
xsane (0.996-2ubuntu1.1) karmic-proposed; urgency=low

  * Modified .desktop entry to match POT changes (LP: #410234)
 -- David Planella <email address hidden> Tue, 03 Nov 2009 08:43:08 +0100

Changed in xsane (Ubuntu Karmic):
status: Fix Committed → Fix Released
David Planella (dpm)
Changed in ubuntu-translations:
status: Fix Committed → Fix Released
Revision history for this message
Ashan (ashan-j) wrote :

Hi, Sorry for posting this here but I have been struggling with finding a scanner that works without any issues on ubuntu. Would really appreciate any help I can get? and also how to install the drivers etc. sorry again for posting this question here but I am desperate :)

Revision history for this message
Mitch Towner (kermiac) wrote :

Ashan. Please use the Launchpad Answer Tracker https://answers.launchpad.net/ & the Ubuntu forums http://ubuntuforums.org/ for support requests. You will be more likely to receive an answer at either of those places.

You may wish to have a read through the official wiki - https://help.ubuntu.com/community/ScanningHowTo

If you require further assistance, please utilise the above mentioned support sites. Thanks in advance for your understanding & cooperation.

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.