How to work on .ts files ?

For suggestions, procedures and requests for translations of documentation and apps to languages other than English.
Post Reply
Message
Author
zorzi

How to work on .ts files ?

#1 Post by zorzi »

Hello,

I've contributed a bit on some MX french translations.

Some files are .txt (no problem to work on with text editor), but some others are .ts . How could I open and modify these .ts files ?

Thanks.

User avatar
j2mcgreg
Global Moderator
Posts: 4092
Joined: Tue Oct 23, 2007 12:04 pm

Re: How to work on .ts files ?

#2 Post by j2mcgreg »

.ts files are part of the MPEG2 codec. You can open and work on them with Avidemux (it's in the repos).
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
Aspire V5-571; CPU Intel I3; 500 GB SSD; Intel 2nd Gen Graphics; 8 GB Ram
Aspire XC-866; i3-9100; UHD 630; 8 GB ram; 1TB HDD

In Linux, newer isn't always better. The best solution is the one that works.

User avatar
Richard
Posts: 1577
Joined: Fri Dec 12, 2008 10:31 am

Re: How to work on .ts files ?

#3 Post by Richard »

Hmm.
I don't find it in stock repos nor in the test repo.

Do you have a link?
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.

User avatar
mmikeinsantarosa
Developer
Posts: 2192
Joined: Thu May 01, 2014 10:12 am

Re: How to work on .ts files ?

#4 Post by mmikeinsantarosa »

Richard wrote: Thu Aug 09, 2018 1:01 pm Hmm.
I don't find it in stock repos nor in the test repo.

Do you have a link?
It can be downloaded but we're not allowed to store it in our repos.
It uses some proprietary codecs.

All the download links and ppa's I could find right now are pretty old. So no immediate additional advice from me here.

I could investigate this later in the week and see if I can build something for you.
I've built it before.

- mike
LT: MX19.1 Quad Core model: Intel Core i7-6820HQ Kernel: 5.0.0-7.1-liquorix-amd64 x86_64

User avatar
Old Giza
Posts: 426
Joined: Wed Apr 16, 2014 10:31 pm

Re: How to work on .ts files ?

#5 Post by Old Giza »

Since this is in the Translations forum, I think OP is asking about how to translate QT .ts files, not transport streams in mpeg.

(1) There is a QT tool called QT Linguist that deals directly with .ts files. But it is far more complex and does things that we don't require.

(2) You could "download for translation" the file for your language and resource from Transifex, and edit that with a text editor. Simpler, but prone to error.

(3) It will be much easier to simply make your translations directly on Transifex. It is easy to use, and you won't step on other's toes. It sounds as if you already have a Transifex account (unless you are doing these translations just for yourself?) Why not use it.

zorzi

Re: How to work on .ts files ?

#6 Post by zorzi »

Many thanks to everyone for answering. Yes I meant translation files.
Old Giza wrote: Thu Aug 09, 2018 2:17 pm Since this is in the Translations forum, I think OP is asking about how to translate QT .ts files, not transport streams in mpeg.

(1) There is a QT tool called QT Linguist that deals directly with .ts files. But it is far more complex and does things that we don't require.

(2) You could "download for translation" the file for your language and resource from Transifex, and edit that with a text editor. Simpler, but prone to error.

(3) It will be much easier to simply make your translations directly on Transifex. It is easy to use, and you won't step on other's toes. It sounds as if you already have a Transifex account (unless you are doing these translations just for yourself?) Why not use it.
Thanks for advice. I used to work with downloading text files but your third suggestion seems the best choice.

User avatar
Stevo
Developer
Posts: 12774
Joined: Fri Dec 15, 2006 8:07 pm

Re: How to work on .ts files ?

#7 Post by Stevo »

Qt ts files are text files, just in a specific format. You can edit them with any text editor if you take care not to mess up the formatting, just like xml files.

User avatar
fehlix
Developer
Posts: 10309
Joined: Wed Apr 11, 2018 5:09 pm

Re: How to work on .ts files ?

#8 Post by fehlix »

Old Giza wrote: Thu Aug 09, 2018 2:17 pm (1) There is a QT tool called QT Linguist that deals directly with .ts files. But it is far more complex and does things that we don't require.
Not sure I understand. I found Qt Linguist is fairly easy to use.
For off-line editing of Qt-translation / language .ts-files it seems to me optimal.
See the attached screen-shot.
Qt_Linguist.png
How to install Qt Linguist:
Qt Linguist is part of the package qttools5-dev-tools. Install it
either from MX Package Installer, Synaptic or the command-line like:

Code: Select all

sudo apt-get install qttools5-dev-tools
As the tool does not come you with a nice desktop-starter within menu.
Find below the „Qt Linguist“ desktop-starter with the proper Mime association for Qt .ts-files:

Code: Select all

[Desktop Entry]
# destop-starter manually created by fehlix
# save as  (home-dir)/.local/share/applications/qtlinguist.desktop
Type=Application
Name=Qt Linguist
GenericName=Qt Linguist tool to translate text
Comment=Translators can use the Qt Linguist tool to translate text in Qt applications.  
Exec=/usr/lib/x86_64-linux-gnu/qt5/bin/linguist %F
Icon=qtLinguist5
Terminal=false
MimeType=text/vnd.trolltech.linguist;
Categories=Qt;Development;IDE;
Icon=QtProject-linguist
Save/copy this file onto the Desktop or better into ~/.local/share/appliactions ( so you have it available within the (Whisker)-Menu,
Copy like this from the command line:

Code: Select all

cp  qtlinguist.desktop ~/.local/share/applications
Qt Linguist shall now be available from the Menu.
Attached a view of Qt Linguist with .ts file for MX Boot Options in French.
You do not have the required permissions to view the files attached to this post.
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
Richard
Posts: 1577
Joined: Fri Dec 12, 2008 10:31 am

Re: How to work on .ts files ?

#9 Post by Richard »

Thanks Fehlix.
That is easier than editing between the tags. :)
Installed qtlinguist, just in case internet dies again.

@mikeinsantarosa, thanks for the offer, but this is solved for now.

And now that internet is live again, Transifex direct is great.
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.

zorzi

Re: How to work on .ts files ?

#10 Post by zorzi »

Thanks for your answers.

Post Reply

Return to “Translations”