1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-19 18:26:34 +01:00

[Translations] Updated array of applicationt translations

Also updated script to also generate application translations
This commit is contained in:
nowrep 2014-01-27 19:29:20 +01:00
parent 77d10dbec7
commit 5b97bb321b
3 changed files with 70 additions and 53 deletions

View File

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

View File

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

View File

@ -1,37 +1,40 @@
TRANSLATIONS += $$PWD/ar_SA.ts \
$$PWD/bg_BG.ts \
$$PWD/ca_ES.ts \
$$PWD/cs_CZ.ts \
$$PWD/de_DE.ts \
$$PWD/el_GR.ts \
$$PWD/es_ES.ts \
$$PWD/es_VE.ts \
$$PWD/fa_IR.ts \
$$PWD/fr_FR.ts \
$$PWD/gl_ES.ts \
$$PWD/he_IL.ts \
$$PWD/hu_HU.ts \
$$PWD/id_ID.ts \
$$PWD/it_IT.ts \
$$PWD/ja_JP.ts \
$$PWD/ka_GE.ts \
$$PWD/lg.ts \
$$PWD/nl_NL.ts \
$$PWD/nqo.ts \
$$PWD/pl_PL.ts \
$$PWD/pt_BR.ts \
$$PWD/pt_PT.ts \
$$PWD/ro_RO.ts \
$$PWD/ru_RU.ts \
$$PWD/sk_SK.ts \
$$PWD/sr_BA@latin.ts \
$$PWD/sr_BA.ts \
$$PWD/sr_RS@latin.ts \
$$PWD/sr_RS.ts \
$$PWD/sv_SE.ts \
$$PWD/uk_UA.ts \
$$PWD/zh_CN.ts \
$$PWD/zh_TW.ts \
TRANSLATIONS += \
$$PWD/ar_SA.ts \
$$PWD/bg_BG.ts \
$$PWD/ca_ES.ts \
$$PWD/cs_CZ.ts \
$$PWD/de_DE.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 \
$$PWD/he_IL.ts \
$$PWD/hu_HU.ts \
$$PWD/id_ID.ts \
$$PWD/it_IT.ts \
$$PWD/ja_JP.ts \
$$PWD/ka_GE.ts \
$$PWD/lg.ts \
$$PWD/nl_NL.ts \
$$PWD/nqo.ts \
$$PWD/pl_PL.ts \
$$PWD/pt_BR.ts \
$$PWD/pt_PT.ts \
$$PWD/ro_RO.ts \
$$PWD/ru_RU.ts \
$$PWD/sk_SK.ts \
$$PWD/sr_BA@latin.ts \
$$PWD/sr_BA.ts \
$$PWD/sr_RS@latin.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 \
updateqm.input = TRANSLATIONS
updateqm.output = $$PWD/../bin/locale/${QMAKE_FILE_BASE}.qm