wagtail-xliff-translation
Wagtail XLIFF Translation is a Wagtail library for converting a Wagtail website to XLIFF (XML Localization Interchange File Format) and back. It allows translators to work with -XLIFF based- translation software.
Exporting and importing a sub-tree, or a single page is supported.
Explanation
After successfully adding this package, new routes will be available (e.g. /admin/pages/<page_id>/xliff/download) and pages will have two extra buttons:
Pressing the download button will open the following page, where you can generate and download the XLIFF file:
This will generate an XLIFF file in the following format (page used only has a title):
<?xml version="1.0" encoding="utf-8"?>
<xliff srcLang="en-us" trgLang="fr" version="2.0"
xmlns="urn:oasis:names:tc:xliff:document:2.0"
xmlns:mda="urn:oasis:names:tc:xliff:metadata:2.0"
xmlns:slr="urn:oasis:names:tc:xliff:sizerestriction:2.0">
<file id="4_test_app_pagewithrichtext">
<mda:metadata>
<mda:metaGroup category="object_nesting">
<mda:meta type="child">no</mda:meta>
</mda:metaGroup>
</mda:metadata>
<unit canResegment="no" id="title" name="title" slr:sizeRestriction="255" translate="yes" type="local:CharField">
<segment>
<source>A simple page</source>
<target></target>
</segment>
</unit>
<unit canResegment="no" id="slug" name="slug" slr:sizeRestriction="255" translate="yes" type="local:SlugField">
<segment>
<source>a-simple-page</source>
<target></target>
</segment>
</unit>
</file>
</xliff>
Note: the source tags contain the content of the original page, the target tags is where the translations go.
Finally, this package provides an upload page with several options:
Uploading can result in errors, for example when the XLIFF file is missing content in the target tags. Wagtail page validation is also done and can also result in errors.
Editors
The XLIFF file is formatted in such a way it works with XLIFF editors as well, for example Poedit.
Documentation
https://fourdigits.github.io/wagtail-xliff-translation/
Powered by Four Digits
We love code: https://fourdigits.nl/en/
Metadata
Release files for wagtail-xliff-translation 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| wagtail_xliff_translation-1.0.4.tar.gz | 501.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wagtail_xliff_translation-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 544.1 kB
Release files / wagtail_xliff_translation-1.0.4.tar.gz
| Download URL | wagtail_xliff_translation-1.0.4.tar.gz |
|---|---|
| Size | 501.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be5710dc83b03826d0044809895b9ca54a02f91859b84fb6d42fbfb2d9221b37
|
|
BLAKE2b-256 checksum How to use checksums |
6c6833095760bc91d07a61f0ff221c9b236eb6f42e9021981041c1cee57da91a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.9
|
Release files / wagtail_xliff_translation-1.0.4-py3-none-any.whl
| Download URL | wagtail_xliff_translation-1.0.4-py3-none-any.whl |
|---|---|
| Size | 42.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f118825a748f619d840c782dcdb063c195db1fb6376171ac07651f7684162059
|
|
BLAKE2b-256 checksum How to use checksums |
0ec0e3e5e18f574366df4a2254530110f1819ce95eba6cc338c22c184075b471
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.9
|
Security for wagtail-xliff-translation 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.