Should handle Qt/KDE '.ts' Translation Source files in addition to '.po'

Reported by Paul Sladen on 2006-10-28
132
This bug affects 21 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Low
Unassigned
Notepadqq
Low
Unassigned
pkgbinarymangler (Ubuntu)
Medium
Martin Pitt

Bug Description

Recent KDE or Qt applications have started having their translation saved and updated in the '.ts' Translation Source format. This format is different to the '.po' format that Rosetta currently supports.

The following pages has some information about Qt Linguist, a translation application that speaks this file format:

  http://doc.qt.nokia.com/latest/linguist-translators.html
  http://doc.qt.nokia.com/latest/linguist-ts-file-format.html

According to the following page, the "web-based Pootle" supported several formats, including '.ts' files:

  https://sourceforge.net/projects/translate/

This is an XML-based format that looks like:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="en_GB">
  <context>
    <name></name>
    <message>
        <source>Colors</source>
        <translation>Colours</translation>
    </message>
  </context>
</TS>

Changed in rosetta:
importance: Undecided → Wishlist
status: Unconfirmed → Confirmed
Martin Pitt (pitti) on 2007-03-26
Changed in pkgbinarymangler:
assignee: nobody → pitti
importance: Undecided → Medium
status: Unconfirmed → In Progress
Martin Pitt (pitti) wrote :

 pkgbinarymangler (39) feisty; urgency=low
 .
   * pkgstriptranslations: Collect .ts files (KDE XML translation source
     format). (LP: #68959)

Changed in pkgbinarymangler:
status: In Progress → Fix Released
Swistak (swistakers) wrote :

It's a pity that .ts is not supported. It prevents Qt apps from using Rosetta.

patpi (patpi) wrote :

Yes, this feature would be great to have. Qt apps also would like to use launchpad translations system ;-]

Swistak (swistakers) wrote :

Any plans on that?
Is there a workaround for that problem?

You should be able to use ts2po tool (part of translate-toolkit) to convert .ts files to .po files and then upload that to Launchpad. Translate-Toolkit likely has a "reverse" script as well.

Geoff Hutchison (geoffh-pitt) wrote :

This has not been fixed.

The ts2po tool can convert to po files for Launchpad. I've done this (and contributed a new patch to ts2po to facilitate). But the po2ts simply doesn't work with recent Qt versions (i.e., Qt4 and later).

Georges Dubus (madjar) wrote :

New Qt 4.5 comes with lconvert, which can convert translation files from ts to po and vice versa (also handles xlf). This enable to convert Qt translations and upload them to Launchpad. Still, that's nothing but a workaround.

tags: removed: translation
description: updated
description: updated
Nick Andrik (andrikos) wrote :

Any progress with that?
What should we do in order to help fix that?

Changed in notepadqq:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions