lrelease(1)
β¨ lrelease β the glow-up your translations deserve β¨
okay bestie, so this is the manual page for lrelease, from the lrelease(1) family of General Commands Manuals. she's the Qt Linguist Release tool for the Qt GUI toolkit and she is iconic π
π NAME π
lrelease β generate Qt message files from Qt Linguist translation files π¦
π SYNOPSIS π
lrelease [ options ] project-file
lrelease [ options ] ts-files [ -qm qm-file ]
πΈ DESCRIPTION πΈ
so basically this page documents the Qt Linguist Release tool for the Qt GUI toolkit. no cap.
lrelease reads a qmake/tmake project file (that's your .pro file, iykyk) and converts the translation files (TS files) that are specified in it into Qt message files (QM files) β the ones your app actually uses to translate. π«
and the QM file format? it's a compact binary format that gives you extremely fast lookups for translations, and Qt uses it. periodt. it's giving efficiency. π₯
β¨ OPTIONS β¨
-helpβ shows you the usage and then dips out. bye! π-compressβ squishes the QM files down. compression era π-nounfinishedβ leaves unfinished translations OUT. no half-done vibes allowed π-removeidenticalβ if the translated text is literally the same as the source text, the message just doesn't get included. why repeat yourself bestie π-silentβ does the thing without explaining what it's doing. mysterious main character energy π§-versionβ displays the version oflreleaseand exits. quick lil flex β
π USAGE π
here's an example .pro file you can hand over 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
so when you run lrelease on this project file, the Qt message files gnomovision_dk.qm, gnomovision_fi.qm, gnomovision_no.qm and gnomovision_se.qm get generated from gnomovision_dk.ts, gnomovision_fi.ts, gnomovision_no.ts and gnomovision_se.ts, respectively. like, one-to-one, they match up π«Ά
and lrelease can also be invoked with a list of TS files to convert, bestie:
lrelease gnomovision_*.ts
π SEE ALSO π
go check out lupdate(1) and also http://doc.qt.io/qt-5/qtwidgets-tools-i18n-example.html β they're the supporting cast and they ate π
that's the whole page! no notes, she's perfect πΈ
The Qt Company Ltd. Β· 18 October 2001 β ok that's the source, the version vibes and the date, all wrapped up in a cute lil sign-off. thanks for coming to my ted talk, bestie πβ¨π
π¦ where this page comes from
- ubuntu resolute: qttools5-dev-tools 5.15.18-1 Β· GPL-3.0-only WITH Qt-1.0 exception
- ubuntu stonking: qttools5-dev-tools 5.15.19-2build1 Β· GPL-3.0-only WITH Qt-1.0 exception
- Copyright (C) 2016 The Qt Company Ltd
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms