Crates.io | slint-tr-extractor |
lib.rs | slint-tr-extractor |
version | 1.13.1 |
created_at | 2023-06-26 11:52:58.445364+00 |
updated_at | 2025-09-11 08:07:43.174919+00 |
description | Tool used to update extract @tr string out of Slint files into gettext .po file |
homepage | https://slint.dev |
repository | https://github.com/slint-ui/slint |
max_upload_size | |
id | 900284 |
size | 48,850 |
A command-line tool for extracting translatable strings from .slint
files and generating gettext-compatible translation files.
slint-tr-extractor
is part of the Slint framework's internationalization (i18n) workflow.
It scans .slint
files for strings marked with the @tr()
macro and extracts them into gettext .pot
(Portable Object Template) files, which can then be translated into multiple languages.
See also the Slint Translations Guide for more information.
Install the tool using Cargo:
cargo install slint-tr-extractor
Usage: slint-tr-extractor [OPTIONS] [path to .slint file(s)]...
Arguments:
[path to .slint file(s)]...
Options:
-d, --default-domain <DOMAIN>
-o <file> Write output to specified file (instead of messages.po).
--package-name <PACKAGE_NAME> Set the package name in the header of the output
--package-version <PACKAGE_VERSION> Set the package version in the header of the output
-j, --join-existing Join messages with existing file
-h, --help Print help
-V, --version Print version