1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36: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 \ TRANSLATIONS += \
$$PWD/bg_BG.ts \ $$PWD/ar_SA.ts \
$$PWD/ca_ES.ts \ $$PWD/bg_BG.ts \
$$PWD/cs_CZ.ts \ $$PWD/ca_ES.ts \
$$PWD/de_DE.ts \ $$PWD/cs_CZ.ts \
$$PWD/el_GR.ts \ $$PWD/de_DE.ts \
$$PWD/es_ES.ts \ $$PWD/el_GR.ts \
$$PWD/es_VE.ts \ $$PWD/es_ES.ts \
$$PWD/fa_IR.ts \ $$PWD/es_VE.ts \
$$PWD/fr_FR.ts \ $$PWD/eu_ES.ts \
$$PWD/gl_ES.ts \ $$PWD/fa_IR.ts \
$$PWD/he_IL.ts \ $$PWD/fr_FR.ts \
$$PWD/hu_HU.ts \ $$PWD/gl_ES.ts \
$$PWD/id_ID.ts \ $$PWD/he_IL.ts \
$$PWD/it_IT.ts \ $$PWD/hu_HU.ts \
$$PWD/ja_JP.ts \ $$PWD/id_ID.ts \
$$PWD/ka_GE.ts \ $$PWD/it_IT.ts \
$$PWD/lg.ts \ $$PWD/ja_JP.ts \
$$PWD/nl_NL.ts \ $$PWD/ka_GE.ts \
$$PWD/nqo.ts \ $$PWD/lg.ts \
$$PWD/pl_PL.ts \ $$PWD/nl_NL.ts \
$$PWD/pt_BR.ts \ $$PWD/nqo.ts \
$$PWD/pt_PT.ts \ $$PWD/pl_PL.ts \
$$PWD/ro_RO.ts \ $$PWD/pt_BR.ts \
$$PWD/ru_RU.ts \ $$PWD/pt_PT.ts \
$$PWD/sk_SK.ts \ $$PWD/ro_RO.ts \
$$PWD/sr_BA@latin.ts \ $$PWD/ru_RU.ts \
$$PWD/sr_BA.ts \ $$PWD/sk_SK.ts \
$$PWD/sr_RS@latin.ts \ $$PWD/sr_BA@latin.ts \
$$PWD/sr_RS.ts \ $$PWD/sr_BA.ts \
$$PWD/sv_SE.ts \ $$PWD/sr_RS@latin.ts \
$$PWD/uk_UA.ts \ $$PWD/sr_RS.ts \
$$PWD/zh_CN.ts \ $$PWD/sv_SE.ts \
$$PWD/zh_TW.ts \ $$PWD/uk_UA.ts \
$$PWD/uz@Latn.ts \
$$PWD/zh_CN.ts \
$$PWD/zh_TW.ts \
updateqm.input = TRANSLATIONS updateqm.input = TRANSLATIONS
updateqm.output = $$PWD/../bin/locale/${QMAKE_FILE_BASE}.qm updateqm.output = $$PWD/../bin/locale/${QMAKE_FILE_BASE}.qm