Make it possible to translate eg. codec name/description strings

Bug #254628 reported by Timo Jyrinki on 2008-08-04
6
Affects Status Importance Assigned to Milestone
Launchpad itself
Undecided
Unassigned
app-install-data-ubuntu (Ubuntu)
High
Michael Vogt

Bug Description

Please make it possible to translate at least strings like "Gstreamer ffmpeg video plugin" and "Codecs to play mpeg, divx, mpeg4, ac3, wmv and asf files" which are often seen by gnome-app-install users when playing audio/video files.

Currently most stuff in gnome-app-install are applications. Translations for these strings are fetched from application's .desktop file's Name and Comment fields. But there are some other installable packages which do not include .desktop files in the source packages, therefore making those impossible to translate other than the usual DDTP data. Such app-install-data's .desktop files should be possible to import to Rosetta.

This affects menu-data-codecs, menu-data-additional and menu-data-xul-extensions subdirectories. The menu-data itself with most data contains probably (only?) .desktop files that are fetched from actual source packages, with translations already included.

Timo Jyrinki (timo-jyrinki) wrote :

Not sure if something should be done in app-install-data-ubuntu package or if Launchpad Translations should be simply configured to import .desktop files from these extra directories to Rosetta.

Actually, app-install should be updated to export messages from .desktop files into PO files (which are then handled correctly by Launchpad). We are not going to add support for all the possible data formats when one can easily convert them to PO files (i.e. by using intltool for .desktop and similar files).

Changed in rosetta:
status: New → Won't Fix
Gabor Kelemen (kelemeng) wrote :

Same problem was reported as: https://bugs.launchpad.net/ubuntu/+source/gnome-app-install/+bug/219288
Subscribing myself here :).

Gabor Kelemen (kelemeng) wrote :

Ok, first draft is here :)
Check out a-i-d and put desktopize.sh in the project root.
The attached script converts the .desktop files to desktop.in files, adds a new X-U-G-D line, generates the po/POTFILES.in and puts all the desktop.in files into. Then, generates a small pot file (be patient, this takes about half a min), as proof of concept.
This is not ready for production use, needs a lot of polish, love, etc, but we can have a template now!

Gabor Kelemen (kelemeng) wrote :

Second version, as a patch. This simplifies the logic, and changes the desktop files only temporarily, not counting the X-U-D-G lines. The GenericName line is no longer marked for translation, this is not used anyway and means -700 strings :). Also adds an empty POTFILES.in and LINGUAS file. It has support for updating the existing po files, in case it's needed. Todo is the integration with packaging & uploading the pot to LP.

Michael Vogt (mvo) on 2008-09-05
Changed in app-install-data-ubuntu:
assignee: nobody → mvo
importance: Undecided → High
status: New → In Progress
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package app-install-data-ubuntu - 0.6.5

---------------
app-install-data-ubuntu (0.6.5) intrepid; urgency=low

  * menu-data-xul-extensions:
    - fix components (most of the ff-2.0 extensions are universe now)
  * desktopize.sh:
    - geneate a app-install-data-ubuntu.pot file to make new translations
      possible (LP: #254628) - thanks to Gabor Kelemen

 -- Michael Vogt <email address hidden> Fri, 05 Sep 2008 21:33:46 +0200

Changed in app-install-data-ubuntu:
status: In Progress → Fix Released
Timo Jyrinki (timo-jyrinki) wrote :

I am a bit late with this, but huge thanks to Gabor for excellent work, and to Michael for incorporating his work!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers