poglossary
A CLI tool that scans through translation project (.po files) searching for mistranslated terms based on the user-defined glossary mapping.
This project is special tailored for Python Documentation Translation Project (zh_TW) but can be applied for all translation projects that use Portable Object files (.po).
Usage
# Sample config file (.yml)
glossary:
exception: 例外
function: 函式
instance: 實例
type: # can be a list of possible translated terms
- 型別
- 種類
> python poglossary --help
# Usage: python -m poglossary [OPTIONS] [PATH] [CONFIG_FILE]
# poglossary: check translated content in .po files based on given translation
# mapping
# Arguments:
# [PATH] the path of the directory storing .po files [default: .]
# [CONFIG_FILE] input mapping file [default: ./poglossary.yml]
# Options:
# --excludes PATH the directories that need to be omitted
# --install-completion Install completion for the current shell.
# --show-completion Show completion for the current shell, to copy it or
# customize the installation.
# --help Show this message and exit.
poetry run python3 poglossary <source_path> <config_file>
Sample Output
Todo
- Functionality
- More handy parameters/options
- CI/CD
- Unit tests
- Static checks (mypy, isort, etc)
- Upload to PyPI
- Config files
- Handle missing fields.
- Commands for creating a basic config file.
Metadata
Release files for poglossary 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| poglossary-0.1.1.tar.gz | 6.0 kB | Without provenance | Details for poglossary-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| poglossary-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for poglossary-0.1.1-py3-none-any.whl |
Total release size: 13.1 kB
Release files / poglossary-0.1.1.tar.gz
| Download URL | poglossary-0.1.1.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
38edd732bd76d4c347c4df97cee12fe7d381e29d75aef109064ee7a5c125db08
|
|
BLAKE2b-256 checksum How to use checksums |
830cb05f7bc9a8bb522701b424d4a2102deccf91e447d837768f2e2b329209e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.9 Darwin/21.1.0
|
Release files / poglossary-0.1.1-py3-none-any.whl
| Download URL | poglossary-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
022f725aec92c6437615a68ef2b6305935790592b0ed5dc9c1dab14b331d78a2
|
|
BLAKE2b-256 checksum How to use checksums |
9a71e3482b7c66f341a3cb4745360492092498fa1b6cc622a0517d754587e569
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.9 Darwin/21.1.0
|
Security for poglossary 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.