Skip to content

Bundle Translations

Translations can either be done using gettext at runtime, or by bundling all the translated strings directly into the binary, by embedding them in the generated C++ code. If you want to bundle translations, you need to set the SLINT_BUNDLE_TRANSLATIONS target property to point to a directory containing translations. The translations must be in the gettext .po format.

In the following example, the translation files will be bundled from lang/<lang>/LC_MESSAGES/my_application.po

set_property(TARGET my_application PROPERTY SLINT_BUNDLE_TRANSLATIONS "${CMAKE_CURRENT_SOURCE_DIR}/lang")
cmake

© 2026 SixtyFPS GmbH