Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

How to work on .ts files ?

Post Reply
Message
Author
User avatar
zorzi
Forum Regular
Forum Regular
Posts: 135
Joined: Fri Apr 20, 2018 7:41 pm

How to work on .ts files ?

#1 Post by zorzi » Thu Aug 09, 2018 11:44 am

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.
Desktop: HP Pavilion a6435 (Athlon64 2x 2,6Ghz, Radeon R7-240, Ram 4 Go, HD 500 Go) / MX Linux 17

User avatar
j2mcgreg
Forum Regular
Forum Regular
Posts: 397
Joined: Tue Oct 23, 2007 12:04 pm

Re: How to work on .ts files ?

#2 Post by j2mcgreg » Thu Aug 09, 2018 12:57 pm

.ts files are part of the MPEG2 codec. You can open and work on them with Avidemux (it's in the repos).
Acer Aspire 3 A315-41-R2W5, AMD Ryzen 5 2500U, Radeon Vega Mobile Graphics, 8 GB ram, 1000 TB hdd

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

Re: How to work on .ts files ?

#3 Post by Richard » 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?
MX18b1: Lenovo T430: Intel Ivy Bridge i5-3320M, 8GB RAM, 4.19.0-1-amd64, 119 GB SSD
MX18b1: Eee&AA1 NBs: Dual Core Atom N270, 1GB RAM, 4.19.0-1-686, 150 GB HDD
DoubleCmd/Thunar, LibO613, Dropbox, Vivaldi/Firefox, CherryTree, Vbox. LinuxCounter #208633

User avatar
mmikeinsantarosa
Forum Guide
Forum Guide
Posts: 2518
Joined: Thu May 01, 2014 10:12 am

Re: How to work on .ts files ?

#4 Post by mmikeinsantarosa » Thu Aug 09, 2018 1:59 pm

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: MX17.1 Quad Core model: Intel Core i7-6820HQ Kernel: 4.16.0-12.1-liquorix-amd64 (64 bit)
DT: Intel(R) Core i5-3.1GHz Kernel~3.9-1-mepis64 x86_64

User avatar
Old Giza
Forum Regular
Forum Regular
Posts: 379
Joined: Wed Apr 16, 2014 10:31 pm

Re: How to work on .ts files ?

#5 Post by Old Giza » 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.

User avatar
zorzi
Forum Regular
Forum Regular
Posts: 135
Joined: Fri Apr 20, 2018 7:41 pm

Re: How to work on .ts files ?

#6 Post by zorzi » Thu Aug 09, 2018 3:20 pm

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.
Desktop: HP Pavilion a6435 (Athlon64 2x 2,6Ghz, Radeon R7-240, Ram 4 Go, HD 500 Go) / MX Linux 17

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 16937
Joined: Fri Dec 15, 2006 8:07 pm

Re: How to work on .ts files ?

#7 Post by Stevo » Thu Aug 09, 2018 3:38 pm

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
Forum Guide
Forum Guide
Posts: 2339
Joined: Wed Apr 11, 2018 5:09 pm

Re: How to work on .ts files ?

#8 Post by fehlix » Thu Aug 09, 2018 4:52 pm

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: 2235
Joined: Fri Dec 12, 2008 10:31 am

Re: How to work on .ts files ?

#9 Post by Richard » Thu Aug 09, 2018 6:43 pm

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.
MX18b1: Lenovo T430: Intel Ivy Bridge i5-3320M, 8GB RAM, 4.19.0-1-amd64, 119 GB SSD
MX18b1: Eee&AA1 NBs: Dual Core Atom N270, 1GB RAM, 4.19.0-1-686, 150 GB HDD
DoubleCmd/Thunar, LibO613, Dropbox, Vivaldi/Firefox, CherryTree, Vbox. LinuxCounter #208633

User avatar
zorzi
Forum Regular
Forum Regular
Posts: 135
Joined: Fri Apr 20, 2018 7:41 pm

Re: How to work on .ts files ?

#10 Post by zorzi » Fri Aug 10, 2018 2:16 am

Thanks for your answers.
Desktop: HP Pavilion a6435 (Athlon64 2x 2,6Ghz, Radeon R7-240, Ram 4 Go, HD 500 Go) / MX Linux 17

Post Reply

Return to “Translations”