1lrelease(1)                 General Commands Manual                lrelease(1)
2
3
4

NAME

6       lrelease - generate Qt message files from Qt Linguist translation files
7

SYNOPSIS

9       lrelease [ options ] project-file
10       lrelease [ options ] ts-files [ -qm qm-file ]
11

DESCRIPTION

13       This  page  documents the Qt Linguist Release tool for the Qt GUI tool‐
14       kit.  Lrelease reads a qmake/tmake project file (.pro  file)  and  con‐
15       verts the translation files (.ts files) specified in it into Qt message
16       files (.qm files) used by the application to translate.
17
18       The .qm file format is a compact binary format that provides  extremely
19       fast lookups for translations and that is used by Qt.
20

OPTIONS

22       -help  Display the usage and exit.
23
24       -nocompress
25              Do not compress the .qm files.
26
27       -verbose
28              Explain what is being done.
29
30       -version
31              Display the version of lrelease and exit.
32

USAGE

34       Here is an example .pro file that can be given to lrelease:
35
36           HEADERS         = funnydialog.h \
37                             wackywidget.h
38           SOURCES         = funnydialog.cpp \
39                             main.cpp \
40                             wackywidget.cpp
41           FORMS           = fancybox.ui
42           TRANSLATIONS    = gnomovision_dk.ts \
43                             gnomovision_fi.ts \
44                             gnomovision_no.ts \
45                             gnomovision_se.ts
46
47       When running lrelease on this project file, the Qt message files gnomo‐
48       vision_dk.qm,   gnomovision_fi.qm,   gnomovision_no.qm   and   gnomovi‐
49       sion_se.qm will be generated from gnomovision_dk.ts, gnomovision_fi.ts,
50       gnomovision_no.ts and gnomovision_se.ts, respectively.
51
52       Lrelease can also be invoked with a list of .ts files to convert:
53
54           lrelease gnomovision_*.ts
55

SEE ALSO

57       lupdate(1) and http://doc.trolltech.com/i18n.html
58
59
60
61Trolltech AS                    18 October 2001                    lrelease(1)
Impressum