Skip to main content

A translation file finder for Weblate, translation tool with tight version control integration

Project description

A translation file finder for Weblate, translation tool with tight version control integration.

Build Status Code coverage Scrutinizer Code Quality Codacy Badge PyPI package

This library is used by Weblate to discover translation files in a cloned repository.

Usage

In can be used from Python:

>>> from translation_finder import discover
>>> discover('.')
[
    {
        "filemask": "locales/*/messages.po",
        "file_format": "po",
        "template": None,
    },
    {
        "filemask": "app/src/res/main/values-*/strings.xml",
        "file_format": "aresource",
        "template": "app/src/res/main/values/strings.xml",
    }
]

Or command line:

$ weblate-discovery translation_finder/test_data/
== Match 1 ==
file_format    : po
filemask       : locales/*.po

== Match 2 ==
file_format    : aresource
filemask       : app/src/res/main/values-*/strings.xml
template       : app/src/res/main/values/strings.xml

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

translation-finder-1.0.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

translation_finder-1.0-py2.py3-none-any.whl (30.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file translation-finder-1.0.tar.gz.

File metadata

  • Download URL: translation-finder-1.0.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for translation-finder-1.0.tar.gz
Algorithm Hash digest
SHA256 0bf9a03bffe0d16bd7818ce38f2eebe671c9ee8a9283f7d21bc94e707dfc8dae
MD5 3a8e71e9538dbecd988e14041946ac77
BLAKE2b-256 51486accf60e91f2974238e26967546cb995417618d3a393e4b77e076bac3423

See more details on using hashes here.

File details

Details for the file translation_finder-1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: translation_finder-1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 30.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for translation_finder-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cb5bdb9a01308d8d9fa5981e5ae10eefc08e0526869be03ea54aa29cb1a04300
MD5 b891ebea77c319588c066be22c146bde
BLAKE2b-256 5f6d0e17685bb857034c36bc1527e0debb9a8c98106a2fa8353586cf64e8f9f7

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