Also updated script to also generate application translationsremotes/origin/falkon
parent
77d10dbec7
commit
5b97bb321b
3 changed files with 70 additions and 53 deletions
@ -1,19 +0,0 @@ |
|||||||
#!/bin/bash |
|
||||||
# |
|
||||||
# Generates list of all plugins translations for qmake .pro |
|
||||||
|
|
||||||
PLUGINS=`ls -d ../src/plugins/*/translations` |
|
||||||
|
|
||||||
for dir in $PLUGINS |
|
||||||
do |
|
||||||
echo -e "$dir\n" |
|
||||||
echo "TRANSLATIONS += \\" |
|
||||||
|
|
||||||
for translation in $dir/*.ts |
|
||||||
do |
|
||||||
[[ "$translation" == *empty.ts ]] && continue |
|
||||||
echo " `echo $translation | awk 'BEGIN{FS="/"}{printf "%s/%s",$5,$6}'` \\" |
|
||||||
done |
|
||||||
|
|
||||||
echo -e "\n\n" |
|
||||||
done |
|
||||||
@ -0,0 +1,33 @@ |
|||||||
|
#!/bin/bash |
||||||
|
# |
||||||
|
# Generates list of all translations for qmake .pro |
||||||
|
|
||||||
|
# Plugins translations |
||||||
|
PLUGINS="`ls -d ../src/plugins/*/translations`" |
||||||
|
|
||||||
|
for dir in $PLUGINS |
||||||
|
do |
||||||
|
echo -e "$dir\n" |
||||||
|
echo "TRANSLATIONS += \\" |
||||||
|
|
||||||
|
for translation in $dir/*.ts |
||||||
|
do |
||||||
|
[[ "$translation" == *empty.ts ]] && continue |
||||||
|
echo " `echo $translation | awk 'BEGIN{FS="/"}{printf "%s/%s",$5,$6}'` \\" |
||||||
|
done |
||||||
|
|
||||||
|
echo -e "\n\n" |
||||||
|
done |
||||||
|
|
||||||
|
# App translations |
||||||
|
echo -e "../translations\n" |
||||||
|
echo "TRANSLATIONS += \\" |
||||||
|
|
||||||
|
for translation in ../translations/*.ts |
||||||
|
do |
||||||
|
[[ "$translation" == *empty.ts ]] && continue |
||||||
|
echo " `echo $translation | awk 'BEGIN{FS="/"}{printf "$$PWD/%s",$3}'` \\" |
||||||
|
done |
||||||
|
|
||||||
|
echo -e "\n\n" |
||||||
|
|
||||||
Loading…
Reference in new issue