A translation finder for Weblate, translation tool with tight version control integration
Project description
Weblate translation finder in a directory.
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.1.tar.gz
(21.2 kB
view details)
Built Distribution
File details
Details for the file translation-finder-0.1.tar.gz
.
File metadata
- Download URL: translation-finder-0.1.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.7rc2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a447d9abbbfd9779e5a4f9dd6f3394a858837095b73e36da31c956a5b3babf1 |
|
MD5 | dbd8cf48ddd56c056d08576729d3ed3e |
|
BLAKE2b-256 | 5e795bd1e9dc65401e36c84d6eaa339b2ee1ba194664b5d9037fce56daa4a75a |
File details
Details for the file translation_finder-0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: translation_finder-0.1-py2.py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.7rc2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8fc2523ff43a226d356c4d00e4a863c024db71e7b8a2f5ed1c6320029fa4897 |
|
MD5 | 4d5eac2fc76b693c4fa07270e613f477 |
|
BLAKE2b-256 | 57f4822fc7b550d002fd1a7fcc063e07ae6f69a749f6de9f30aa7a7924673a05 |