Skip to content

Commit

Permalink
ts scripts: pass languages from pull_ts.sh and push_ts.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Aug 6, 2017
1 parent 80dd8f3 commit f34848a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion scripts/pull_ts.sh
Expand Up @@ -15,4 +15,4 @@
###########################################################################

# Pull the translations from transifex and update TRANSLATORS
scripts/update_ts.sh pull $1
scripts/update_ts.sh pull "$@"
2 changes: 1 addition & 1 deletion scripts/push_ts.sh
Expand Up @@ -15,4 +15,4 @@
###########################################################################

# Update the english translation and push it to transifex
scripts/update_ts.sh push $1
scripts/update_ts.sh push "$@"
16 changes: 9 additions & 7 deletions scripts/update_ts.sh
Expand Up @@ -88,14 +88,16 @@ if [ -d "$2" ]; then
done
shift
shift
for t in i18n/qgis_*.ts; do
for l in "$@"; do
if [ "i18n/qgis_$l.ts" = "$t" ]; then
continue 2
fi
if [[ $# -gt 0 ]]; then
for t in i18n/qgis_*.ts; do
for l in "$@"; do
if [ "i18n/qgis_$l.ts" = "$t" ]; then
continue 2
fi
done
files="$files $t"
done
files="$files $t"
done
fi

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

0 comments on commit f34848a

Please sign in to comment.