Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-02-2013, 01:45 PM   #1
yucca
Member
yucca began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Apr 2013
Device: Android
Sigil translations: how to generate .qm from .ts?

I started creating a translation of Sigil UI using the recommended way, using Web Tools at https://www.transifex.net/projects/p/sigil/ and it seems to be smooth sailing except for one crucial thing:

The tool generates a .ts file, which seems to be a simple XML file. But Sigil apparently expects .qm files (at least that’s what the
Code:
translations
folder contains), which are presumable compressed binary files. So how do I get convert .ts to .qm, or otherwise test my translation in Sigil? (Just in case it matters, I’m using Windows 7.)
yucca is offline   Reply With Quote
Old 04-04-2013, 09:24 PM   #2
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,460
Karma: 986493
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Use lrelease which is part of Qt.

Code:
lrelease file.ts
user_none is offline   Reply With Quote
Old 04-05-2013, 12:15 AM   #3
Arios
A curiosus lector!
Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.
 
Arios's Avatar
 
Posts: 314
Karma: 763734
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
user_none, to do it, the whole Qt framework (480 mb) must be installed, is it not?
Arios is offline   Reply With Quote
Old 04-05-2013, 08:05 PM   #4
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,460
Karma: 986493
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
lrelease is included with the full Qt binary installation. However, there may be third parties who have packaged the tool (and other transaction tools) separately.
user_none is offline   Reply With Quote
Old 04-09-2013, 03:19 PM   #5
yucca
Member
yucca began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Apr 2013
Device: Android
Disappointed

Quote:
Originally Posted by user_none View Post
lrelease is included with the full Qt binary installation. However, there may be third parties who have packaged the tool (and other transaction tools) separately.
So this is it? What is the point of having a simple web interface when you need to work locally with a large package anyway?

It’s also unclear to me what happens to the translations after submitting them. Will they eventually become part of the distribution, and how soon? If some software used for that will convert .ts to .qm, why do contributors need to do such conversions themselves if they wish to test the translations locally (as they should)?
yucca is offline   Reply With Quote
Old 04-09-2013, 07:40 PM   #6
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,460
Karma: 986493
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by yucca View Post
So this is it? What is the point of having a simple web interface when you need to work locally with a large package anyway?
The web interface is so you the transactions can be worked on without having to download anything.

Quote:
Originally Posted by yucca View Post
If some software used for that will convert .ts to .qm, why do contributors need to do such conversions themselves if they wish to test the translations locally (as they should)?
The translation files just like the other source files need to be compiled for use in Sigil itself. Very few people actually compile the files themselves when translating. If you really want to do so then you need the tools to compile the transaction source files.

Quote:
Originally Posted by yucca View Post
It’s also unclear to me what happens to the translations after submitting them.
Translations form the web interface are downloaded and put into the source tree before each release.
user_none is offline   Reply With Quote
Old 04-10-2013, 07:05 AM   #7
yucca
Member
yucca began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Apr 2013
Device: Android
Quote:
Originally Posted by user_none View Post
The translation files just like the other source files need to be compiled for use in Sigil itself. Very few people actually compile the files themselves when translating. If you really want to do so then you need the tools to compile the transaction source files.
I see. Thanks for the clarification. I wonder if you could add a clarifying note like that into
http://code.google.com/p/sigil/wiki/Translating

It means that the translator needs to know well the user interface, so that he understands, without testing with the translation, where each piece of text will be used. This is manageable, when you know it.
yucca is offline   Reply With Quote
Old 04-10-2013, 04:46 PM   #8
Arios
A curiosus lector!
Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.
 
Arios's Avatar
 
Posts: 314
Karma: 763734
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
user_one

yucca has raised out a good point: I also think it is important for translators to see the ts files in the context, to test correctly their ideas. In English, things can be very short, this is not always the same in other languages. We must see if it works (too long, too imprecise?). This is why a small program that would save the ts file to a qm one for testing is a good idea. I found Virtaal (0.7.1) which is cool, but can not export to qm (at least presently).

Anyway, I think the Sigil's translators (and other software that uses the same system, very good by the way) should be able to have this kind of tool without having to download the whole Qt exe.

Have a nice day/evening everyone!

Last edited by Arios; 04-10-2013 at 04:48 PM.
Arios is offline   Reply With Quote
Old 04-10-2013, 09:25 PM   #9
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,460
Karma: 986493
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by Arios View Post
Anyway, I think the Sigil's translators (and other software that uses the same system, very good by the way) should be able to have this kind of tool without having to download the whole Qt exe.
Again, if you or a third party wants to provide the tool standalone there is nothing stopping you. That said the tools are available as part of Qt.
user_none is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Translations in de.po lbik Library Management 3 04-14-2013 03:44 AM
Have sigil not generate inline CSS Hellmark Sigil 3 01-27-2012 01:16 PM
UK-US-OZ translations? James_Wilde Writers' Corner 2 12-08-2010 04:49 PM
Copyrights on translations bobcdy General Discussions 5 06-07-2010 09:00 PM
Translations seagull Upload Help 0 03-01-2010 10:47 AM


All times are GMT -4. The time now is 11:04 PM.


MobileRead.com is a privately owned, operated and funded community.