diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-04-08 00:18:03 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-04-08 00:18:03 +0100 |
commit | 75e68803a10104ada0017f1635da447852ebb83e (patch) | |
tree | 4880c2e99ea8a13bca8dd44b2c9321a6489bd7d5 /download-translations | |
parent | 218568fe2b57dd7f717e8c044e2e5c6d7d1a19a2 (diff) | |
download | gstreamer-common-75e68803a10104ada0017f1635da447852ebb83e.tar.gz |
download-translations: make sure existing translations are listed in LINGUAS
Fixes #509662.
Diffstat (limited to 'download-translations')
-rwxr-xr-x | download-translations | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/download-translations b/download-translations index f210c94..aef1d31 100755 --- a/download-translations +++ b/download-translations @@ -54,6 +54,7 @@ PACKAGE="$1" DOMAINS_TO_ADD="" DOMAINS_UPDATED="" +DOMAINS_NOT_IN_LINGUAS="" echo "Downloading latest translation files for package $PACKAGE ..." echo @@ -95,6 +96,10 @@ do fi DOMAINS_UPDATED="$DOMAINS_UPDATED $d" fi + # make sure domain is listed in LINGUAS + if ! grep $d "po/LINGUAS" >/dev/null 2>/dev/null; then + DOMAINS_NOT_IN_LINGUAS="$DOMAINS_NOT_IN_LINGUAS $d" + fi else # ./po/foo.po doesn't exist, but foo.po exists on the translation project # website, so it's probably a new translation @@ -135,4 +140,13 @@ if [ -n "$DOMAINS_UPDATED" ]; then echo "====================================================================" fi +if [ -n "$DOMAINS_NOT_IN_LINGUAS" ]; then + echo + echo "Existing domains missing from the po/LINGUAS file:" + echo + echo " $DOMAINS_NOT_IN_LINGUAS" + echo + echo +fi + |