Skip to content

Commit

Permalink
add option to choose installed translations using LINGUAS
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmayo committed Aug 19, 2016
1 parent 30942e9 commit aaa338c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion phoenix.pro
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,12 @@ unix {
bins.files += bins

translations.path = $$PKGDATADIR/translations
translations.extra = find $$PWD/translations -name "*.qm" -size +128c -exec cp -pr {} $(INSTALL_ROOT)$$PKGDATADIR/translations \\;
isEmpty(LINGUAS) {
translations.files += $$system(find $$PWD/translations -name "*.qm" -size +128c)
} else {
for(lang, LINGUAS):translations.files += $$system(find $$PWD/translations -name "fritzing_$${lang}.qm" -size +128c)
isEmpty(translations.files):error("No translations found for $$L10N")
}

syntax.path = $$PKGDATADIR/translations/syntax
syntax.files += translations/syntax/*.xml
Expand Down

0 comments on commit aaa338c

Please sign in to comment.