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

Bug #68959 reported by Paul Sladen
140
This bug affects 23 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Low
Unassigned
Notepadqq [MOVED TO GITHUB]
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)
Changed in pkgbinarymangler:
assignee: nobody → pitti
importance: Undecided → Medium
status: Unconfirmed → In Progress
Revision history for this message
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
Revision history for this message
Swistak (swistakers) wrote :

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

Revision history for this message
patpi (patpi) wrote :

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

Revision history for this message
Swistak (swistakers) wrote :

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

Revision history for this message
Данило Шеган (danilo) wrote :

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.

Revision history for this message
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).

Revision history for this message
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
Revision history for this message
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