Crowdin Scripts: Difference between revisions
m (→Related) |
m (→updatecrowdin.py: typo) |
||
Line 17: | Line 17: | ||
* <code>updatecrowdin.py status</code> prints a status of the translations |
* <code>updatecrowdin.py status</code> prints a status of the translations |
||
* <code>updatecrowdin.py update</code> updates crowdin the current version of .ts files found in the source code |
* <code>updatecrowdin.py update</code> updates crowdin the current version of .ts files found in the source code |
||
* <code>updatecrowdin.py build</code> builds a new downloadable package on crowdin with all |
* <code>updatecrowdin.py build</code> builds a new downloadable package on crowdin with all translated strings |
||
* <code>updatecrowdin.py download</code> downloads the latest build |
* <code>updatecrowdin.py download</code> downloads the latest build |
||
Revision as of 04:36, 27 October 2018
Managing Translations for FreeCAD
FreeCAD uses a 3rd party translation service called Crowdin to manage translations.
There are 3 scripts in FreeCAD/src/Tools
that are used to manage translation files:
updatets.py
(github source)updatecrowdin.py
(github source)updatefromcrowdin.py
(github source)
These scripts are run from the root of the FreeCAD/
directory.
Note: In order for these scripts to work one needs to have the valid FreeCAD Crowdin API key placed in their ~/.crowdin-freecad
file. (For security reasons, only available to people with admin rights on the crowdin FreeCAD project)
updatets.py
This script will create the .ts files in your local FreeCAD/
directory.
updatecrowdin.py
This script pushes changes to the Crowdin from your local FreeCAD/
directory. The script currently supports 4 arguments:
updatecrowdin.py status
prints a status of the translationsupdatecrowdin.py update
updates crowdin the current version of .ts files found in the source codeupdatecrowdin.py build
builds a new downloadable package on crowdin with all translated stringsupdatecrowdin.py download
downloads the latest build
updatefromcrowdin.py
This script pulls changes from crowdin to your local FreeCAD/
directory.