[Translations] Updated array of applicationt translations

Also updated script to also generate application translations
remotes/origin/falkon
nowrep 12 years ago
parent 77d10dbec7
commit 5b97bb321b
  1. 19
      scripts/generate-qmake-plugins-translations.sh
  2. 33
      scripts/generate-qmake-translations.sh
  3. 5
      translations/translations.pri

@ -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"

@ -1,4 +1,5 @@
TRANSLATIONS += $$PWD/ar_SA.ts \
TRANSLATIONS += \
$$PWD/ar_SA.ts \
$$PWD/bg_BG.ts \
$$PWD/ca_ES.ts \
$$PWD/cs_CZ.ts \
@ -6,6 +7,7 @@ TRANSLATIONS += $$PWD/ar_SA.ts \
$$PWD/el_GR.ts \
$$PWD/es_ES.ts \
$$PWD/es_VE.ts \
$$PWD/eu_ES.ts \
$$PWD/fa_IR.ts \
$$PWD/fr_FR.ts \
$$PWD/gl_ES.ts \
@ -30,6 +32,7 @@ TRANSLATIONS += $$PWD/ar_SA.ts \
$$PWD/sr_RS.ts \
$$PWD/sv_SE.ts \
$$PWD/uk_UA.ts \
$$PWD/uz@Latn.ts \
$$PWD/zh_CN.ts \
$$PWD/zh_TW.ts \

Loading…
Cancel
Save