I18n - Fixes for translations during build (#2251)

This commit is contained in:
Ryan Holmes
2020-08-02 18:52:55 -04:00
committed by GitHub
parent 362d081338
commit 32a03dedaa
5 changed files with 10 additions and 2 deletions

View File

@@ -27,6 +27,9 @@ install:
# done from inside the powershell script as it would require to restart
# the parent CMD process).
- cmd: "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- cmd: "appveyor DownloadFile https://github.com/mlocati/gettext-iconv-windows/releases/download/v0.20.2-v1.16/gettext0.20.2-iconv1.16-shared-64.zip"
- cmd: "7z x gettext0.20.2-iconv1.16-shared-64.zip -ogettext"
- cmd: "SET PATH=gettext;%PATH%"
- cmd: "python --version"
- cmd: "python -c \"import struct; print(struct.calcsize('P') * 8)\""
@@ -53,6 +56,7 @@ before_build:
build_script:
- ps: echo("Build pyfa:")
- ps: Get-ChildItem locale/*.po -Recurse -File| Foreach {msgen $_.fullname -o $_.fullname}
# Build language files
- cmd: "python scripts/compile_lang.py"
# Dump language progress

View File

@@ -10,13 +10,14 @@ matrix:
osx_image: xcode11.3
language: generic
before_install:
- bash scripts/setup-osx.sh
- bash scripts/osx-translations.sh
- bash scripts/osx-setup.sh
install:
- python3 scripts/compile_lang.py
- python3 scripts/dump_crowdin_progress.py
- python3 db_update.py
- export PYFA_VERSION="$(python3 scripts/dump_version.py)"
- bash scripts/package-osx.sh
- bash scripts/osx-package.sh
before_deploy:
- export RELEASE_PKG_FILE=$(ls *.deb)
- echo "deploying $RELEASE_PKG_FILE to GitHub releases"

View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
brew link --force gettext
find locale/ -type f -name "*.po" -exec msgen "{}" -o "{}" \;