DuTF
Translation framework used by RxOT.
/src/
Contains the translation tool source
/resources/
Contains needed files to run the tools
/examples/
Contains example and test translations
Contribute to the translations of Dustranlator
All translation files are available under resources/languagues
.
Available translations
Name | File |
---|---|
French | app_fr.ts |
Spanish | app_es.ts |
Chinese | app_zh_cn.ts |
Updating/Creating translations file
- Add your language file at the end of the
Dutranslator.pro
file. - Update the file from QtCreator. Open the project and do
Tools > Extra > Linguist > lupdate
. - Or from the terminal do
lupdate Dutranslator.pro
.
Note: We will take care of adding your language in the interface if it's a new one.
Translate
- Open the ts file of your language with QtLinguis.
- If the file is recent, go in
Edit > Translation File Settings
and change the values according to your language. - Translate.
- Save.
- Commit now or do a release if you can.
Release
Once you have updated your translation file and translated it, you can release it. Like so, we could use the last version in the application.
- Open the project with QtCreator and do
Tools > Extra > Linguist > lrelease
. - Or from the terminal, run
lrelease Dutranslator.pro
. - Commit and send a pull request.
Compile the source code
From QT Creator
Just open the Dutranslator.pro
file with Qt Creator and follow the steps.
✌️
From the terminal -
cd
into the project directory; -
run
qmake Dutranslator.pro
, this will generate aMakefile
;You can run this command only when the pro file has been modified.
-
run
make
, this will compile the code; -
run
./Dutranslator
to launch the project; -
use
make clean
to remove all build-related files.