mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
17 lines
390 B
Bash
Executable file
17 lines
390 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eo pipefail
|
|
|
|
out=../aqt_data/locale/qt
|
|
mkdir -p "$out"
|
|
|
|
qtTranslations="$(python -c "from PyQt5.QtCore import *; import sys; sys.stdout.write(QLibraryInfo.location(QLibraryInfo.TranslationsPath))")"
|
|
unameOut="$(uname -s)"
|
|
|
|
case "${unameOut}" in
|
|
CYGWIN*)
|
|
qtTranslations="$(cygpath -u "${qtTranslations}")"
|
|
;;
|
|
esac
|
|
|
|
rsync -a "$qtTranslations"/qt* "$out"
|