├── .gitignore ├── crowdin.yml ├── Makefile └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | */*.qm 2 | all.zip 3 | build 4 | bindings 5 | .*.sw* 6 | -------------------------------------------------------------------------------- /crowdin.yml: -------------------------------------------------------------------------------- 1 | commit_message: New automated translations %original_file_name% from Crowdin 2 | append_commit_message: false 3 | 4 | files: 5 | - source: Translations.ts 6 | translation: iaito_%two_letters_code%.ts 7 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | PREFIX:=/usr/local 2 | SOURCES=$(wildcard */*.ts) 3 | 4 | all: 5 | $(MAKE) build 6 | $(MAKE) allzip 7 | 8 | allzip: 9 | rm -f all.zip 10 | mkdir all 11 | cp */*.ts all 12 | cd all && zip ../all.zip * 13 | rm -rf all 14 | 15 | clean: 16 | rm -f all.zip 17 | rm -rf all 18 | rm -f */*.qm 19 | 20 | install: build 21 | install -d $(PREFIX)/share/iaito/translations 22 | install -m 644 */*.qm $(PREFIX)/share/iaito/translations/ 23 | 24 | build: 25 | lrelease $(SOURCES) 26 | 27 | user-install: 28 | $(MAKE) install PREFIX=${HOME}/.local 29 | 30 | .PHONY: all allzip clean install build user-install 31 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Iaito Translations 2 | 3 | This repository holds translations for the [Iaito](https://github.com/radareorg/iaito) 4 | project. 5 | 6 | [![Crowdin](https://badges.crowdin.net/iaito/localized.svg)](https://crowdin.com/project/iaito) 7 | 8 | ## How does it work? 9 | 10 | The `Translations.ts` file is uploaded regularly from [Iaito](https://github.com/radareorg/iaito) repository. 11 | 12 | This will allow our translation platform [Crowdin](https://crowdin.com/project/iaito) to fetch new strings 13 | and add them to their inner project to allow people to update their translations when new strings are added 14 | into Iaito. 15 | 16 | Once in a while, Crowdin will open a Pull Request in order to push newly translated strings. 17 | Once those are merged into master, the submodule in Iaito repository can be updated and will allow to have 18 | new translations for future releases. 19 | 20 | ## How to update the Translations.ts 21 | 22 | This file is generated from the `iaito` repository. 23 | 24 | ```bash 25 | $ lupdate src/Iaito.pro -ts Translations.ts 26 | ``` 27 | 28 | Copy this file into the root of `iaito-translations` and run `make`. 29 | 30 | * The `all.zip` file will be generated and it's ready to be uploaded to Crowdin! 31 | 32 | ## How to help translating? 33 | 34 | If anyone is willing to contribute, then please use the [Crowdin](https://crowdin.com/project/iaito) web interface to do so. 35 | 36 | --------------------------------------------------------------------------------