Skip to content

eq-desktop/translation-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Translation Tools

Simple script to extract translatable texts from .qml and .js files, manage JSON translation files, and update/create language files.

Requirements

  • Python 3
  • No extra libraries required

Usage

./trman.sh -s <source-folder> -t <translations-folder>

Example

./trman.sh -s . -t eqsh/translations
languages: de_DE,en_US,es_ES,it_IT,ja_JA
  1. The script extracts texts from .qml and .js files in the source folder.

  2. Creates a temporary JSON file with all extracted texts.

  3. Prompts for which language files to create/update (comma-separated, e.g., en_EN,de_DE,it_IT).

  4. Updates the translation files:

    • Keeps existing translations for keys that still exist.
    • Removes keys that no longer exist.
    • Adds missing keys with default value = key.
  5. Creates backups of existing translation files in backups/.

About

Simple Python tools to extract and manage translation files for QML/JS projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages