Skip to main content
Deepsquads

Deepsquads is libre software web-based continuous localization system, used by over 2500 libre projects and companies in more than 165 countries.

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

Website Translation status CII Best Practices PyPI package Documentation

This library is used by Deepsquads to discover translation files in a cloned repository. It can operate on both file listings and actual filesystem. Filesystem access is needed for more accurate detection in some cases (detecting encoding or actual syntax of similar files).

Usage

In can be used from Python:

>>> from translation_finder import discover
>>> from pprint import pprint
>>> results = discover("translation_finder/test_data/")
>>> len(results)
30
>>> pprint(results[0].match)
{'file_format': 'aresource',
 'filemask': 'app/src/res/main/values-*/strings.xml',
 'name': 'android',
 'template': 'app/src/res/main/values/strings.xml'}
>>> pprint(results[16].match)
{'file_format': 'po',
 'filemask': 'locales/*.po',
 'new_base': 'locales/messages.pot'}

Additional information about discovery can be obtained from meta attribute:

>>> pprint(results[0].meta)
{'discovery': 'TransifexDiscovery', 'origin': 'Transifex', 'priority': 500}
>>> pprint(results[16].meta)
{'discovery': 'GettextDiscovery', 'origin': None, 'priority': 1000}

Or command line:

$ deepsquads-discovery translation_finder/test_data/
== Match 1 (Transifex) ==
file_format    : aresource
filemask       : app/src/res/main/values-*/strings.xml
name           : android
template       : app/src/res/main/values/strings.xml
...

== Match 7 ==
file_format    : po
filemask       : locales/*.po
new_base       : locales/messages.pot

Metadata

Release files for translate-finder 2.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for translate-finder 2.17
File Size Uploaded
translate_finder-2.17.tar.gz 70.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for translate-finder 2.17
File Interpreter ABI Platform
translate_finder-2.17-py3-none-any.whl Python 3 none any Details

Total release size: 150.7 kB

Release files / translate_finder-2.17.tar.gz

Download URL translate_finder-2.17.tar.gz
Size 70.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4a69c6dfdcebc24085151a1fb71aa6c3f0784c83936449047cad1af51edea159
BLAKE2b-256 checksum
How to use checksums
cacec3ef6fabeb7d8861c0dca33e07169b1d35d7a5bbec26bbfa18c404a85673
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / translate_finder-2.17-py3-none-any.whl

Download URL translate_finder-2.17-py3-none-any.whl
Size 80.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3b131b154af8b9d90569c3ec2807d73efd8bb4421f4eb8ebcb4bbebd7c97194
BLAKE2b-256 checksum
How to use checksums
3c99aa2df3a249a515fd14bb2ce131cb93195ee8ec226b3af3a5c59fb0ffb2be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release history Release notifications | RSS feed

This release

2.17 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page