1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

[Scripts] generate-translations now generate also .qrc lines

This commit is contained in:
nowrep 2014-02-26 21:30:19 +01:00
parent 5e4f703ef2
commit d8f71fad8b

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# #
# Generates list of all translations for qmake .pro # Generates list of all translations for qmake .pro and .qrc files
# Plugins translations # Plugins translations
PLUGINS="`ls -d ../src/plugins/*/translations`" PLUGINS="`ls -d ../src/plugins/*/translations`"
@ -16,6 +16,14 @@ do
echo " `echo $translation | awk 'BEGIN{FS="/"}{printf "%s/%s",$5,$6}'` \\" echo " `echo $translation | awk 'BEGIN{FS="/"}{printf "%s/%s",$5,$6}'` \\"
done done
echo -e "\n"
for translation in $dir/*.ts
do
[[ "$translation" == *empty.ts ]] && continue
echo " <file>locale/`echo $translation | awk 'BEGIN{FS="/"}{print substr($6,0,length($6)-2)}'`.qm</file>"
done
echo -e "\n\n" echo -e "\n\n"
done done