mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-02 00:15:06 +01:00
215a099c4f
* Translations: new transifex client Currently we're using the python client which uses an API that they state will sunset Nov 30, 2022. `tx push -s` actually appears to work properly, some of the other commands require tweaking, like instead of suggesting `tx pull -a` in dist/languages we need to suggest `tx pull -t -a` * Set TX_TOKEN for transifex client I did some tests on my own fork, and we're writing to ~/.transifexrc but the client can't seem to read that file. maybe issue with $HOME or something. Workaround is to set TX_TOKEN environment variable and now the pesky ~/.transifexrc file is not needed. --------- Co-authored-by: Kyle Kienapfel <Docteh@users.noreply.github.com>
31 lines
548 B
Bash
Executable File
31 lines
548 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
set -x
|
|
|
|
cat << 'EOF' > /usr/bin/tx
|
|
#!/usr/bin/python3
|
|
|
|
# -*- coding: utf-8 -*-
|
|
import re
|
|
import sys
|
|
|
|
from txclib.cmdline import main
|
|
|
|
if __name__ == '__main__':
|
|
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
|
sys.exit(main())
|
|
EOF
|
|
|
|
echo -e "\e[1m\e[33mBuild tools information:\e[0m"
|
|
cmake --version
|
|
gcc -v
|
|
tx --version
|
|
|
|
mkdir build && cd build
|
|
cmake .. -DENABLE_QT_TRANSLATION=ON -DGENERATE_QT_TRANSLATION=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_SDL2=OFF
|
|
make translation
|
|
cd ..
|
|
|
|
cd dist/languages
|
|
tx push -s
|