Skip to main content

The translation files checker and syncing tool.

Project description

trans-tool logo

The translation files checker and syncing tool


master branch: Unit tests codecov Code lint MD Lint

development branch: Unit tests codecov Code lint MD Lint


Table of contents


Introduction

trans-tool is a small but powerful utility aimed at your projects' translation files. It is armed with several validators to watch for common mistakes in translations as well as base strings. It currently loads *.properties files, which is file format often used in Java projects as the trans-tool was born while working on Logisim-evolution.

Example *.properties file looks like simplified version of commonly used INI file:

# Example of *.properties file
programTitle = trans-tool v2.0.0
okButton = "OK"

Internally, trans-tool works on abstract format, thus adding support for other file formats can easy be added which will happen upon demand.

While loading your *.properties files trans-tool checks if files are in order, ensuring all of them are syntactically correct and all of the translations are in sync with main language. It also comes with huge set of various linters and checkers to guard quality of the files' contents. It can check for missing or dangling keys, inproper punctuation, open brackets, quotation marks and more. It can also automatically sync translation files quickly providing fresh template for your translators to work on.

$ trans-tool -b soc -l pl

Base: src/main/resources/resources/logisim/strings/soc/soc.properties
  Errors: 1
    Brackets
      E: Line 163:90: "AssemblerRunSuccess": No opening character matching ")".
  PL: src/main/resources/resources/logisim/strings/soc/soc_pl.properties
    Errors: 3, warnings: 4
      Brackets
        E: Line 175:83: "AssemblerRunSuccess": No opening character matching ")".
      Formatting values
        E: Line 383:167: "PioMenuOutClearRemark": Expected "%s", found "%s.".
        E: Line 387:167: "PioMenuOutSetRemark": Expected "%s", found "%s.".
      Missing translations
        W: "ElfHeaderEIDataError": Missing translation.
        W: "AsmPanErrorCreateFile": Missing translation.
      Punctuation mismatch
        W: Line 12: "SocInsertTransWindowTitle": Ends with "y". Expected ":".
      First words case mismatch.
        W: Line 332: "Rv32imProgramCounter": Starts UPPER-cased, expected lower-case.

License

  • Written and copyrighted ©2021 by Marcin Orlowski <mail (#) marcinorlowski (.) com>
  • trans-tool is open-sourced software licensed under the MIT license.
  • Project logo contains elements from Flaticon.com.
  • trans-tool project PyPi page.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trans-tool-2.3.0.tar.gz (47.7 kB view details)

Uploaded Source

Built Distribution

trans_tool-2.3.0-py3-none-any.whl (80.7 kB view details)

Uploaded Python 3

File details

Details for the file trans-tool-2.3.0.tar.gz.

File metadata

  • Download URL: trans-tool-2.3.0.tar.gz
  • Upload date:
  • Size: 47.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for trans-tool-2.3.0.tar.gz
Algorithm Hash digest
SHA256 752926a166ec59c942dec4b459fb229788218a2469daed228c2bb8962c352255
MD5 9fdf7dfa629bcac3cb30a9317cff6548
BLAKE2b-256 29a2bfec1dba8833a157cf02b792fb02508c307c7342e870b03bab35b09f9f27

See more details on using hashes here.

File details

Details for the file trans_tool-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: trans_tool-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 80.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for trans_tool-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ba507088f982657c09d211c29abf76610c346e2aaae3a7d6fe94b9a3ffbfbd2
MD5 23b6feb7be674433f0b3bef13e47623e
BLAKE2b-256 ef3f737df397b27ffdcb6c60679550d0cfe9bc4d8d1b4705649dc8118aed5d38

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page