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:
parent
77d10dbec7
commit
5b97bb321b
@ -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
|
33
scripts/generate-qmake-translations.sh
Executable file
33
scripts/generate-qmake-translations.sh
Executable 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"
|
||||
|
@ -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…
Reference in New Issue
Block a user