|
NAMElupdate - update Qt Linguist translation filesSYNOPSISlupdate [ options ] project-filelupdate [ options ] source-files -ts ts-files DESCRIPTIONThis page documents the Qt Linguist Update tool for the Qt GUI toolkit. Lupdate reads a qmake/tmake project file (.pro file), finds the translatable strings in the specified source, header and interface files, and updates the translation files (TS files) specified in it. The translation files are given to the translator who uses Qt Linguist to read the files and insert the translations.The TS file format is a simple human-readable XML format that can be used with version control systems if required. OPTIONS
USAGEHere is an example .pro file that can be given to lupdate:
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 lupdate on this project file, the translatable strings in all the files listed in the HEADERS, SOURCES and FORMS entries will be put in the translation files listed in the TRANSLATIONS entry. Previous translations will be reused as far as possible, and translated strings that have vanished from the source files are marked obsolete. lupdate can also be invoked with a list of C++ source files, UI files and TS files:
lupdate *.cpp *.h *.ui -ts gnomovision_dk.ts SEE ALSOlrelease(1) and http://doc.qt.io/qt-5/qtwidgets-tools-i18n-example.html
Visit the GSP FreeBSD Man Page Interface. |