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.2.tar.gz
(27.0 kB
view details)
Built Distribution
File details
Details for the file translation-finder-1.2.tar.gz
.
File metadata
- Download URL: translation-finder-1.2.tar.gz
- Upload date:
- Size: 27.0 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.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ace2ce0563f1b9e9a6698a317f865fb2b9c60c23d31410f4e6753baaea0433ca |
|
MD5 | 6c653603eefe812bb9f4362063c93ccb |
|
BLAKE2b-256 | 1ca17218c6d5a14e7d006c8ee96e073bbf90024c2b21888b979e23c3962f3be3 |
File details
Details for the file translation_finder-1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: translation_finder-1.2-py2.py3-none-any.whl
- Upload date:
- Size: 31.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.28.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fb740e897843f8d43f2ecb144ce9c9a917d1a600a5a52efce6d93b29a607d7e |
|
MD5 | 12da61111d664fa891e891589e060f52 |
|
BLAKE2b-256 | ab7597aee302558f0c07f430e8f15c3ae8a820eec2e6d46c5ec11783e34127ef |