Skip to content

Commit

Permalink
qm files will be stored in translations directory
Browse files Browse the repository at this point in the history
  • Loading branch information
markummitchell-tu committed Jul 12, 2020
1 parent 4d64e06 commit a867d85
Show file tree
Hide file tree
Showing 21 changed files with 29 additions and 39 deletions.
2 changes: 0 additions & 2 deletions bin/translations/README

This file was deleted.

5 changes: 3 additions & 2 deletions dev/flatpak/build_flatpak
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# 3) sudo apt install flatpak-builder
# 4) Install engauge-specific github repo
# cd $HOME
# git clone [email protected]:flathub/io.github.markummitchell.Engauge_Digitizer.git
# git clone [email protected]:flathub/io.github.markummitchell.Engauge_Digitizegit
# 5) Running this script gives error about org.kde.Sdk/x86_64/5.11 not installed so
# flatpak install flathub org.kde.Sdk
# and pick the version option matching the error message
Expand All @@ -45,7 +45,8 @@
# + /usr/.../xdg-desktop-portal-kde &
# + /usr/.../xdg-desktop-portal & (this connects later flatpak apps to KDE)
# + flatpak run io.github.markummitchell.Engauge_Digitizer

# 9) Got error 'Note that the directories .. are not in the search path set by XDG_DATA_DIRS environment variable'
# fix: edit ~/.bashrc and do 'export XDG_DATA_DIRS=..:$XDG_DATA_DIRS' where .. are the missing directories
if [[ -z $1 ]]; then
echo "Usage: build_flathub <version>"
exit
Expand Down
55 changes: 21 additions & 34 deletions dev/snapcraft/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,29 @@ parts:
stage-packages: [qttools5-dev, libqt5gui5, libqt5sql5-sqlite, libfftw3-double3, libpoppler-dev, libpoppler-qt5-dev]
project-files: [engauge.pro]
after: [help]
translations:
plugin: dump
source: translations
files:
- translations/engauge_ar.qm : bin/translations
- translations/engauge_cs.qm : bin/translations
- translations/engauge_de.qm : bin/translations
- translations/engauge_es.qm : bin/translations
- translations/engauge_fa_IR.qm : bin/translations
- translations/engauge_fr.qm : bin/translations
- translations/engauge_hi.qm : bin/translations
- translations/engauge_it.qm : bin/translations
- translations/engauge_ja.qm : bin/translations
- translations/engauge_kk.qm : bin/translations
- translations/engauge_ko.qm : bin/translations
- translations/engauge_nb.qm : bin/translations
- translations/engauge_pt.qm : bin/translations
- translations/engauge_ru.qm : bin/translations
- translations/engauge_zh.qm : bin/translations
help:
plugin: dump
stage: [engauge, documentation/engauge.qch, documentation/engauge.qhc,
bin/translations/engauge_ar.qm,
bin/translations/engauge_cs.qm,
bin/translations/engauge_de.qm,
bin/translations/engauge_es.qm,
bin/translations/engauge_fa_IR.qm,
bin/translations/engauge_fr.qm,
bin/translations/engauge_hi.qm,
bin/translations/engauge_it.qm,
bin/translations/engauge_ja.qm,
bin/translations/engauge_kk.qm,
bin/translations/engauge_ko.qm,
bin/translations/engauge_nb.qm,
bin/translations/engauge_pt.qm,
bin/translations/engauge_ru.qm,
bin/translations/engauge_zh.qm,
]
prime: [engauge, documentation/engauge.qch, documentation/engauge.qhc,
bin/translations/engauge_ar.qm,
bin/translations/engauge_cs.qm,
bin/translations/engauge_de.qm,
bin/translations/engauge_es.qm,
bin/translations/engauge_fa_IR.qm,
bin/translations/engauge_fr.qm,
bin/translations/engauge_hi.qm,
bin/translations/engauge_it.qm,
bin/translations/engauge_ja.qm,
bin/translations/engauge_kk.qm,
bin/translations/engauge_ko.qm,
bin/translations/engauge_nb.qm,
bin/translations/engauge_pt.qm,
bin/translations/engauge_ru.qm,
bin/translations/engauge_zh.qm,
]
stage: [engauge, documentation/engauge.qch, documentation/engauge.qhc]
prime: [engauge, documentation/engauge.qch, documentation/engauge.qhc]
after: [desktop-file]
desktop-file:
source: desktop-file
Expand Down
4 changes: 3 additions & 1 deletion translations/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.download
.local
__pycache__
*.qm
for*
# DO NOT IGNORE qm FILES! THEY ARE REQUIRED FOR SNAP AND FLATPAK BUILDS IN THIS DIRECTORY SINCE bin/translations
# DIRECTORY IS EXCLUDED FROM 'Source code (tar.gz)' FILE AUTOMATICALLY BUILT BY GITHUB FOR EACH NEW RELEASE SO
# THE SNAP/FLATPAK BUILD SCRIPTS COPY THEM FROM THIS FILE
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions translations/step_2_move_results_into_permanents
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ function main {
echo "* Remaining steps: *"
echo "* 1) Run 'lrelease engauge.pro' *"
echo "* 2) Copy *.qm translations into the bin/translations directory *"
echo "* NOTE we keep the local *.qm files since they are used for *"
echo "** for release building *"
echo "* 3) Upload the english engauge_en.ts file to Transifex (since *"
echo "* non-english uploads will be silently filtered by that file) *"
echo "* 3a) Click on "Resources" *"
Expand Down

0 comments on commit a867d85

Please sign in to comment.