Skip to content

Commit f34848a

Browse files
committed
ts scripts: pass languages from pull_ts.sh and push_ts.sh
1 parent 80dd8f3 commit f34848a

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

scripts/pull_ts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
###########################################################################
1616

1717
# Pull the translations from transifex and update TRANSLATORS
18-
scripts/update_ts.sh pull $1
18+
scripts/update_ts.sh pull "$@"

scripts/push_ts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
###########################################################################
1616

1717
# Update the english translation and push it to transifex
18-
scripts/update_ts.sh push $1
18+
scripts/update_ts.sh push "$@"

scripts/update_ts.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,16 @@ if [ -d "$2" ]; then
8888
done
8989
shift
9090
shift
91-
for t in i18n/qgis_*.ts; do
92-
for l in "$@"; do
93-
if [ "i18n/qgis_$l.ts" = "$t" ]; then
94-
continue 2
95-
fi
91+
if [[ $# -gt 0 ]]; then
92+
for t in i18n/qgis_*.ts; do
93+
for l in "$@"; do
94+
if [ "i18n/qgis_$l.ts" = "$t" ]; then
95+
continue 2
96+
fi
97+
done
98+
files="$files $t"
9699
done
97-
files="$files $t"
98-
done
100+
fi
99101

100102
elif [ "$action" != "pull" ]; then
101103
echo Build directory not found

0 commit comments

Comments
 (0)