diff --git a/ci/travis/build.sh b/ci/travis/build.sh
index f097d6d62b23a9376612f3da80f93a1c69d83dcf..2fa0f5ad93a697836cea8a91bd5adafd7bb7ef8e 100755
--- a/ci/travis/build.sh
+++ b/ci/travis/build.sh
@@ -4,6 +4,8 @@ eval "$(pyenv init -)"
 eval "$(pyenv virtualenv-init -)"
 
 cd $HOME/build/ucoin-io/sakia
+
+
 pyenv activate sakia-env
 pip install coveralls
 pip install pyinstaller
@@ -12,10 +14,12 @@ if [ $TRAVIS_OS_NAME == "linux" ]
 then
     pip install -U git+https://github.com/posborne/dbus-python.git
     pip install notify2
+
+    export PATH=/tmp/qt/5.5/5.5/gcc_64/bin:$PATH
 fi
 
 python gen_resources.py
-python gen_translations.py
+python gen_translations.py --lrelease
 
 if [ $TRAVIS_OS_NAME == "osx" ]
 then
diff --git a/gen_translations.py b/gen_translations.py
index d587a62599da3cf318579598e089b437a10e0f63..35c1d6b0c3c6f53f79f797f9fc0b52560a2110ea 100644
--- a/gen_translations.py
+++ b/gen_translations.py
@@ -27,7 +27,7 @@ def prepare_qm():
 
     for (ts_file, qm_file) in translations:
         # 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])
         else:
             subprocess.call(["qtchooser", "-run-tool=lrelease", "-qt=5", ts_file, "-qm", qm_file])