Skip to content

Commit

Permalink
I18n - Fixes for translations during build (#2251)
Browse files Browse the repository at this point in the history
  • Loading branch information
blitzmann committed Aug 2, 2020
1 parent 362d081 commit 32a03de
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)\""
Expand All @@ -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
Expand Down
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions scripts/osx-translations.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
brew link --force gettext
find locale/ -type f -name "*.po" -exec msgen "{}" -o "{}" \;

0 comments on commit 32a03de

Please sign in to comment.