Skip to main content

XML Localisation Interchange File Format (XLIFF) serializer for Django

Project description

Full documentation is at Read the Docs.

XML Localization Interchange File Format (XLIFF) is an XML-based format created to standardize the way localizable data are passed between tools during localization. OASIS standardized XLIFF in 2002. Django-XLIFF conforms to version 1.2.

XLIFF is a bit more verbose than the Django’s standard XML output. Sample output looks like (extra white space added for readability:

<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2"
       version="1.2"
       xmlns:d="https://docs.djangoproject.com/">
  <file datatype="database"
        source-language="en-us"
        original="simpleapp.tag.2">
    <body>
      <group resname="simpleapp.tag.2" restype="row">
        <trans-unit resname="data"
                    translate="no"
                    id="data"
                    restype="x-SlugField">
          <source>tag2</source>
        </trans-unit>
        <trans-unit d:keytype="pk"
                    d:to="contenttypes.contenttype"
                    restype="x-ForeignKey"
                    d:rel="ManyToOneRel"
                    resname="content_type"
                    translate="no"
                    id="content_type">
          <source>37</source>
        </trans-unit>
        <trans-unit resname="object_id"
                    translate="no"
                    id="object_id"
                    restype="x-PositiveIntegerField">
          <source>200</source>
        </trans-unit>
      </group>
    </body>
  </file>
</xliff>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-xliff-0.3.2.tar.gz (578.0 kB view details)

Uploaded Source

File details

Details for the file django-xliff-0.3.2.tar.gz.

File metadata

File hashes

Hashes for django-xliff-0.3.2.tar.gz
Algorithm Hash digest
SHA256 8b6fcb81256798f5bfc64eb698ca8dfd35d76c8d7264e2bd919cad387df1d60d
MD5 76512666310cbcc8a9342d0a378a348d
BLAKE2b-256 23230068d1d1f39676ef9fca0b668e9d1f0de4f19c4e142f5da3c1a2892c73e4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page