A commandline tool to help you work with Qt Linguist-based and Gettext-based translation files, and Transifex platform-related configurations that are used in deepin's workflow.
This program currently supports the following features:
- Converts Chinese texts in Qt linguist TS file or GNU Gettext PO file among regional variants.
- Prints translation statistics of the provided project.
- Generates
.tx/configbased on Transifex GitHub integrationtransifex.yamlconfig file and Transifex API.- Transifex API is used to look up and match the resource slug.
- Local cache can be used without making API request if the resource info data is already fetched previously.
- Generates Transifex GitHub integration
transifex.yamlbased on.tx/config. - Generate a single
.tx/configcontains all linked resources under the given Transifex organization. - Generate
.tx/transifex.yamlor.tx/configbased on the (.poabd.ts) translation files inside the given source repo.
Please consult deepin-translation-utils --help.
Please consult Cargo.toml.
- Don't blindly pull translation resources after using the
monotxconfigsubcommand to generate.tx/configunless you are absolutely sure what you're doing. Pulling all translation resources directly from Transifex is a very slow process.