]> sigrok.org Git - sigrok-util.git/commitdiff
sigrok-native-macosx: Copy all translations, not just DE.
authorUwe Hermann <redacted>
Thu, 16 Jul 2020 21:06:39 +0000 (23:06 +0200)
committerUwe Hermann <redacted>
Thu, 16 Jul 2020 21:06:39 +0000 (23:06 +0200)
Avoid a hardcoded list that we'd need to update manually, just copy
all Qt/system translation files.

cross-compile/macosx/create_dmg

index 9dc3869077af4eb0c9af6e6e4b0ff4ebbe0ed197..b8c5749dba3ecdb1028c90d03bb58fe16981ae3d 100755 (executable)
@@ -82,10 +82,8 @@ if [ "x$APPNAME_BINARY" = "xpulseview" ]; then
        
        # Manually copy translations ("macdeployqt" won't copy them).
        mkdir -p $CONTENTSDIR/translations
-       for lang in "de"; do
-               cp $QTTRANSLATIONSDIR/qt_$lang.qm $CONTENTSDIR/translations
-               cp $QTTRANSLATIONSDIR/qtbase_$lang.qm $CONTENTSDIR/translations
-       done
+       cp $QTTRANSLATIONSDIR/qt_*.qm $CONTENTSDIR/translations
+       cp $QTTRANSLATIONSDIR/qtbase_*.qm $CONTENTSDIR/translations
 fi
 
 $QTBINDIR/macdeployqt $APPNAME.app