mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00

# Conflicts: # .github/scripts/trailing-newlines.sh # .github/workflows/checks.yml # Makefile # pylib/Makefile # qt/Makefile # qt/tools/typecheck-setup.sh # rspy/Makefile
16 lines
395 B
Bash
Executable file
16 lines
395 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eu -o pipefail ${SHELLFLAGS}
|
|
|
|
out=../aqt_data/locale/qt
|
|
mkdir -p "$out"
|
|
|
|
qtTranslations="$(python -c "from PyQt5.QtCore import *; import sys; sys.stdout.write(QLibraryInfo.location(QLibraryInfo.TranslationsPath))")"
|
|
|
|
case "$(uname -s)" in
|
|
CYGWIN*|MINGW*|MSYS*)
|
|
qtTranslations="$(cygpath -u "${qtTranslations}")"
|
|
;;
|
|
esac
|
|
|
|
rsync -a "$qtTranslations/" "$out/"
|