From d8f71fad8ba961575b5a86451d9a18bcbc6c3508 Mon Sep 17 00:00:00 2001 From: nowrep Date: Wed, 26 Feb 2014 21:30:19 +0100 Subject: [PATCH] [Scripts] generate-translations now generate also .qrc lines --- ...ranslations.sh => generate_project_translations.sh} | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) rename scripts/{generate-qmake-translations.sh => generate_project_translations.sh} (67%) 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