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.
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
Release history Release notifications | RSS feed
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.1.tar.gz
(26.3 kB
view details)
Built Distribution
File details
Details for the file translation-finder-1.1.tar.gz
.
File metadata
- Download URL: translation-finder-1.1.tar.gz
- Upload date:
- Size: 26.3 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.3rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f92e8082b00f021341ffd3ee4b7681a791fe4fbbbb305d1ed4fec77eca7cb5e9 |
|
MD5 | 32b95349f3856db272b322b9fb83fb59 |
|
BLAKE2b-256 | 3258aa37394ff1ac9af7dcb6f5e5a3992276073c0bbb57b073742d28a33b4dd4 |
File details
Details for the file translation_finder-1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: translation_finder-1.1-py2.py3-none-any.whl
- Upload date:
- Size: 31.4 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.3rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9b306a3a88932a72a1393a6636d550a4b46682e5b11bf001e4b3b584a9fe2fb |
|
MD5 | 312c05c733b1b3e1698b30d9d3121a62 |
|
BLAKE2b-256 | c8390d6ba764d437fb51f5de53f553dd26961a44c45448bf3ce846afa13dcae0 |