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-0.3.tar.gz
(24.7 kB
view details)
Built Distribution
File details
Details for the file translation-finder-0.3.tar.gz
.
File metadata
- Download URL: translation-finder-0.3.tar.gz
- Upload date:
- Size: 24.7 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.23.4 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e65889a8a2b3089656e98690c4c0cfe62d916443f13c13741874583a0fb4a369 |
|
MD5 | f96a728a4b84fdf9f1fb0f56cb80ce93 |
|
BLAKE2b-256 | ed4cf93f829da17bde619277b2d6aef6f9d926f9c215e0b7282de4a261cb9d20 |
File details
Details for the file translation_finder-0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: translation_finder-0.3-py2.py3-none-any.whl
- Upload date:
- Size: 29.9 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.23.4 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1ffe47cdee598c08eab64d6beb1a65cb6abb8768055ce4eff06b497613f9f93 |
|
MD5 | d1059fb466c6a072421e6fa90b47c5e2 |
|
BLAKE2b-256 | 87792fee3c17e1b68df0ea1e1a10a4aab5a3b478756f0eb1386bf24ebc423b90 |