It is currently Thu Oct 19, 2017 9:02 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Qt Linguist
PostPosted: Sun Sep 21, 2014 10:59 am 
Offline
User avatar

Joined: Mon Dec 07, 2009 7:09 am
Posts: 3830
Location: Sol3
Qt Linguist is an all-time favorite software translation tool that has been forever plagued by a lack of both discrete Windows download sources and native portability; as it will become evident from the rest of this post, and taking in consideration that most translators aren't skilled programmers, someone taking upon himself the compilation and availability of comprehensive and updated versions of Qt Translation Tools will be providing a priceless service to all the localization communities of countless OSS projects.

Now, I just got aware of an updated v4.8.4 download source, so I'm posting it here for future reference (previously, there was only an obsolete v4.6.0 for Windows and MacOS at http://qt-apps.org/content/show.php/?content=89360, also referenced by Softpedia).

Qt Linguist is part of the multi-platform Qt Development Framework (currently at v5.3, see http://qt-project.org/). For a complete overview of the previous Qt Linguist (the one posted here), check http://qt-project.org/doc/qt-4.8/linguist-translators.html. Plenty of mentions of the ".ts" Qt native translation format, but Qt Linguist can also easily read the ".po" format from POEdit (GNU Gettext), as well as ".xlf" XLIFF (XML) format files. INI formatted files can be converted with ini2po (http://translate-toolkit.readthedocs.org/en/latest/commands/ini2po.html)...

BTW, Qt Linguist native ".ts" file format is documented at http://qt-project.org/doc/qt-4.8/linguist-ts-file-format.html and the Qt FAQ (http://qt-project.org/faq/answer/does_qt_provide_translations_for_the_user_visible_strings_of_the_widgets) states this:
    Quote:
    In addition we provide the lconvert tool which can be used to create an empty translation file so you can add your own translation for the Qt strings in a language that we don't provide for. To do this do:

    lconvert --drop-translations -o qt_untranslated.ts qt_fr.ts

    and then it will give you an empty translation file with the Qt strings ready to be translated.

The only thing keeping Qt Linguist from being natively portable is the fact that it keeps its settings in the system registry at 'HKCU\Software\Trolltech\Linguist' (and also creates a file association at 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.qph'), both of which can easily be solved with a dedicated launcher.

      Image

Download Qt Linguist standalone latest version (v4.8.4) from http://sourceforge.net/projects/tht/files/Other/. This download exists thanks to the developer of the Trader's Home Task project at Sourceforge, a free financial trading OSS.

EDIT: a while ago, Photivo developer (may he be forever blessed for that) made available a package named 'translator-tools-win32.zip', including a non statically compiled Qt Linguist v4.7.0, plus the needed extra 'lconvert.exe' and 'lupdate.exe'; see http://photivo.org/development/translating...

EDIT2: yet another download source for an even more recent version -- each version of OpenOrienteering Mapper available for download from Sourceforge has also a 'translations' folder, where the latest Qt Linguist version is made available for download; no console tools included this time, but these versions have an extra printing capability; e.g., check for latest v5.3.1 at http://sourceforge.net/projects/oorienteering/files/Mapper/0.5.93/translations/.


Last edited by Midas on Tue Mar 21, 2017 5:32 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Qt Linguist
PostPosted: Sun Sep 21, 2014 2:34 pm 
Offline
User avatar

Joined: Mon Dec 07, 2009 7:09 am
Posts: 3830
Location: Sol3
Translation/software localization issues are a recurring theme in the Internet, as can be subsumed from the following debate:


As I stated elsewhere, on account of multiple instances of loss of work, I'm not very fond of Poedit (see viewtopic.php?t=14506). Portabilized IniTranslator (viewtopic.php?t=396), although not developed anymore, would be my second best choice...


Top
 Profile  
 
 Post subject: Re: Qt Linguist
PostPosted: Sun Sep 21, 2014 2:56 pm 
Offline
User avatar

Joined: Thu Jul 14, 2011 9:42 am
Posts: 165
Location: Island of Lost Minds
Just for the notes, I have a static build of Qt Linguist v4.8.6 (MSVC 2013) here:
http://sourceforge.net/projects/lamexp/ ... 0Linguist/

_________________
„One of my most productive days was throwing away 1,000 lines of code“ – Ken Thompson

Dreamatorium | Disembodied


Top
 Profile  
 
 Post subject: Re: Qt Linguist
PostPosted: Mon Sep 22, 2014 2:22 am 
Offline
User avatar

Joined: Mon Dec 07, 2009 7:09 am
Posts: 3830
Location: Sol3
deathcubek wrote:
Just for the notes, I have a static build of Qt Linguist v4.8.6 (MSVC 2013) here:
http://sourceforge.net/projects/lamexp/files/Miscellaneous/Qt%20Linguist/

    Thanks for your contribution, deathcubek. :)


Top
 Profile  
 
 Post subject: Re: Qt Linguist v5.3.2 yaP launcher
PostPosted: Tue Apr 26, 2016 9:03 am 
Offline
User avatar

Joined: Mon Dec 07, 2009 7:09 am
Posts: 3830
Location: Sol3
Midas wrote:
keeps its settings in the system registry at 'HKCU\Software\Trolltech\Linguist' (and also creates a file association at 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.qph')

    Update: after testing Qt Linguist v5.3.2 (from http://sourceforge.net/projects/oorienteering/files/Mapper/0.5.96/translations/), settings are now saved to 'HKCU\Software\QtProject'; that file association is still being created... :x

    So, here's a configuration file content for a yaP launcher:

    Code:
    ; configuration file for yaP v0.6.0.19 (http://rolandtoth.hu/yaP/)
    ; application name: Qt Linguist
    ; version: v5.3.2
    ; website: https://sourceforge.net/projects/oorienteering/files/Mapper/0.5.96/translations/

    [GENERAL]
    application = App\linguist.exe

    ; commandline =
    ; workdir =

    [BEFORE]
    regkey = HKCU\Software\QtProject

    ; dir = %Appdata%\Dir
    ; file = %Appdata%\Dir\File.ini
    ; regkey = HKCU\Software\RegKey

    [AFTER]
    -regkey = HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.qph

    ...


Top
 Profile  
 
 Post subject: Re: Qt Linguist v5.3.2 yaP launcher
PostPosted: Mon Mar 20, 2017 2:59 am 
Offline
User avatar

Joined: Sat Sep 14, 2013 8:09 am
Posts: 289
Midas wrote:
Midas wrote:
keeps its settings in the system registry at 'HKCU\Software\Trolltech\Linguist' (and also creates a file association at 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.qph')

    Update: after testing Qt Linguist v5.3.2 (from http://sourceforge.net/projects/oorienteering/files/Mapper/0.5.96/translations/), settings are now saved to 'HKCU\Software\QtProject'; that file association is still being created... :x

    So, here's a configuration file content for a yaP launcher:

    Code:
    ; configuration file for yaP v0.6.0.19 (http://rolandtoth.hu/yaP/)
    ; application name: Qt Linguist
    ; version: v5.3.2
    ; website: https://sourceforge.net/projects/oorienteering/files/Mapper/0.5.96/translations/

    [GENERAL]
    application = App\linguist.exe

    ; commandline =
    ; workdir =

    [BEFORE]
    regkey = HKCU\Software\QtProject

    ; dir = %Appdata%\Dir
    ; file = %Appdata%\Dir\File.ini
    ; regkey = HKCU\Software\RegKey

    [AFTER]
    -regkey = HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.qph

    ...


hi
i'm using the last version and the configuration should be changed a little
in the last version the program doesn't create a HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.qph key at least i can find it
and yes it still creates these key HKCU\Software\QtProject and subkeys ,but the yaP configuration doesn't delete HKCU\Software\QtProject

might you please check it again?
thanks


Top
 Profile  
 
 Post subject: Re: Qt Linguist
PostPosted: Tue Mar 21, 2017 5:32 am 
Offline
User avatar

Joined: Mon Dec 07, 2009 7:09 am
Posts: 3830
Location: Sol3
Care to share your source for the latest Qt Linguist binaries?

My sources mentioned above are mostly gone, and the only other I could find is for v5.4.2: https://github.com/thurask/Qt-Linguist/releases.

Last release is currently v5.8 -- as can be confirmed in the official changelog: http://doc.qt.io/qt-5/whatsnew58.html.

Also form an official looking forum comes confirmation of the required files for a standalone setup: http://www.qtcentre.org/threads/65106-Qt-Linguist-Stand-alone-app.

Talking about which, bug 55936 was posted to the official tracker regarding Qt Linguist availability:


I'm mulling that we should head there to advocate for portability, too... :?


Top
 Profile  
 
 Post subject: Re: Qt Linguist
PostPosted: Sat Apr 15, 2017 4:13 am 
Offline

Joined: Sat Apr 15, 2017 3:46 am
Posts: 1
Hello guys!

The day before yesterday was the first time I used Qt Linguist 4.6, and quickly got accustomed to it. I now installed ver. 5.4.2 recommended by Midas (Thank you!).
What bothers me with this application is that my translations are not automatically saved in the current phrasebook (this actually is a translation memory, TM, I don't know why the developers didn't use an expression already known by everybody in the translation community) after pressing Ctrl-Enter. This means that I cannot reuse my work for future projects. There is an option of entering source-translation pairs in the phrasebook by pressing Ctrl-T, but this means additional, messy work.
Can this problem be solved somewhat?
Or, in other words, can I quickly populate my phrasebooks with my older TMs (TMX, for example)?


Top
 Profile  
 
 Post subject: Re: Qt Linguist
PostPosted: Sun Apr 16, 2017 4:52 am 
Offline
User avatar

Joined: Mon Dec 07, 2009 7:09 am
Posts: 3830
Location: Sol3
Hi there, Mazarin and welcome to the forums. :)

ATM, I can't really answer your query since I have only done light work with Qt Linguist and none of it recently.

The best I can offer is a suggestion to look up Virtaal (discussed at viewtopic.php?t=21718) to see if it is better adapted to your needs... :?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group