diff --git a/scripts/generate-qmake-translations.sh b/scripts/generate_project_translations.sh similarity index 67% rename from scripts/generate-qmake-translations.sh rename to scripts/generate_project_translations.sh index 4a47d8b9e..1553de758 100755 --- a/scripts/generate-qmake-translations.sh +++ b/scripts/generate_project_translations.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Generates list of all translations for qmake .pro +# Generates list of all translations for qmake .pro and .qrc files # Plugins translations PLUGINS="`ls -d ../src/plugins/*/translations`" @@ -16,6 +16,14 @@ do echo " `echo $translation | awk 'BEGIN{FS="/"}{printf "%s/%s",$5,$6}'` \\" done + echo -e "\n" + + for translation in $dir/*.ts + do + [[ "$translation" == *empty.ts ]] && continue + echo " locale/`echo $translation | awk 'BEGIN{FS="/"}{print substr($6,0,length($6)-2)}'`.qm" + done + echo -e "\n\n" done