GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
lrelease(1) FreeBSD General Commands Manual lrelease(1)

lrelease - generate Qt message files from Qt Linguist translation files

lrelease [ options ] project-file
lrelease [ options ] ts-files [ -qm qm-file ]

This page documents the Qt Linguist Release tool for the Qt GUI toolkit. Lrelease reads a qmake/tmake project file (.pro file) and converts the translation files (TS files) specified in it into Qt message files (QM files) used by the application to translate.

The QM file format is a compact binary format that provides extremely fast lookups for translations and that is used by Qt.

-help
Display the usage and exit.
-compress
Compress the QM files.
-nounfinished
Do not include unfinished translations.
-removeidentical
If the translated text is the same as the source text, do not include the message.
-silent
Do not explain what is being done.
-version
Display the version of lrelease and exit.

Here is an example .pro file that can be given to lrelease:


HEADERS         = funnydialog.h \
                  wackywidget.h
SOURCES         = funnydialog.cpp \
                  main.cpp \
                  wackywidget.cpp
FORMS           = fancybox.ui
TRANSLATIONS    = gnomovision_dk.ts \
                  gnomovision_fi.ts \
                  gnomovision_no.ts \
                  gnomovision_se.ts

When running lrelease on this project file, the Qt message files gnomovision_dk.qm, gnomovision_fi.qm, gnomovision_no.qm and gnomovision_se.qm will be generated from gnomovision_dk.ts, gnomovision_fi.ts, gnomovision_no.ts and gnomovision_se.ts, respectively.

Lrelease can also be invoked with a list of TS files to convert:


lrelease gnomovision_*.ts

lupdate(1) and http://doc.qt.io/qt-5/qtwidgets-tools-i18n-example.html
18 October 2001 Digia Plc and/or its subsidiary(-ies)

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.