Skip to content
Snippets Groups Projects
Commit c50560b7 authored by inso's avatar inso
Browse files

Force lrelease

parent 0c51f44b
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,8 @@ eval "$(pyenv init -)" ...@@ -4,6 +4,8 @@ eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)" eval "$(pyenv virtualenv-init -)"
cd $HOME/build/ucoin-io/sakia cd $HOME/build/ucoin-io/sakia
pyenv activate sakia-env pyenv activate sakia-env
pip install coveralls pip install coveralls
pip install pyinstaller pip install pyinstaller
...@@ -12,10 +14,12 @@ if [ $TRAVIS_OS_NAME == "linux" ] ...@@ -12,10 +14,12 @@ if [ $TRAVIS_OS_NAME == "linux" ]
then then
pip install -U git+https://github.com/posborne/dbus-python.git pip install -U git+https://github.com/posborne/dbus-python.git
pip install notify2 pip install notify2
export PATH=/tmp/qt/5.5/5.5/gcc_64/bin:$PATH
fi fi
python gen_resources.py python gen_resources.py
python gen_translations.py python gen_translations.py --lrelease
if [ $TRAVIS_OS_NAME == "osx" ] if [ $TRAVIS_OS_NAME == "osx" ]
then then
......
...@@ -27,7 +27,7 @@ def prepare_qm(): ...@@ -27,7 +27,7 @@ def prepare_qm():
for (ts_file, qm_file) in translations: for (ts_file, qm_file) in translations:
# avoid conflict with qt4 lrelease by running qtchooser directly # avoid conflict with qt4 lrelease by running qtchooser directly
if sys.platform.startswith('win') or shutil.which("qtchooser") == None: if sys.platform.startswith('win') or shutil.which("qtchooser") == None or "--lrelease" in sys.argv:
subprocess.call(["lrelease", ts_file, "-qm", qm_file]) subprocess.call(["lrelease", ts_file, "-qm", qm_file])
else: else:
subprocess.call(["qtchooser", "-run-tool=lrelease", "-qt=5", ts_file, "-qm", qm_file]) subprocess.call(["qtchooser", "-run-tool=lrelease", "-qt=5", ts_file, "-qm", qm_file])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment