wraitii
1b150b303f
The `pology` library runs on Python2 and development appears stalled. It is also not available on pip. The `babel` library, BSD-licensed, provides, amongst many other things, a replacement for .POT / .PO manipulation. The `poediff` tool that we used to detect spurious i18n change is replaced with a Python script that does a simpler but good enough job (it is also much, much faster). These replacements let the i18n scripts run on Python3 entirely. Makes D506 redundant. Comments by: Itms Reviewed By: Gallaecio Refs #5694 Differential Revision: https://code.wildfiregames.com/D2757 This was SVN commit r24313.
30 lines
859 B
Bash
Executable File
30 lines
859 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Regenerates the POT files, downloads the latest translations from Transifex,
|
|
# and prepares the commit of the updated POT and PO files.
|
|
|
|
SCRIPT_PATH="`dirname \"$0\"`"
|
|
|
|
|
|
# POT Generation ##############################################################
|
|
|
|
echo ":: Regenerating the translation templates…"
|
|
python3 "${SCRIPT_PATH}/updateTemplates.py"
|
|
|
|
|
|
# PO Download #################################################################
|
|
|
|
echo ":: Downloading translations from Transifex…"
|
|
python3 "${SCRIPT_PATH}/pullTranslations.py"
|
|
|
|
|
|
# Pre-Commit Cleanup #########################################################
|
|
|
|
echo ":: Reverting unnecessary changes…"
|
|
python3 "${SCRIPT_PATH}/checkDiff.py"
|
|
|
|
# Commit ######################################################################
|
|
|
|
echo ":: Done"
|
|
echo " Now you can commit your changes to the server."
|