summaryrefslogtreecommitdiffstats
path: root/import-translations
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2013-11-30 22:25:58 +0000
committerTails developers <amnesia@boum.org>2013-11-30 22:25:58 +0000
commit4c4c106d9b37c49a0e6c92f8f30a2327c9cc4aa5 (patch)
tree8722c25fda6b27a4760c5d4299a82a592a7759b3 /import-translations
parentb7fee24c8ca5f21017e8d905691eda07cd76615d (diff)
Run `intltool-update --dist' in import-translations too.
Else, many noisy and useless changes appear in PO files. If one commits right after this stage without running refresh-translations first, despite what the release process documentation says, this would make the Git history hard to understand.
Diffstat (limited to 'import-translations')
-rwxr-xr-ximport-translations6
1 files changed, 6 insertions, 0 deletions
diff --git a/import-translations b/import-translations
index cf90bfa..3791b01 100755
--- a/import-translations
+++ b/import-translations
@@ -11,6 +11,9 @@ GIT_IN_TOR_TRANSLATION_DIR="git \
--work-tree=$TOR_TRANSLATION_DIR \
--git-dir=$TOR_TRANSLATION_DIR/.git"
+### External libraries
+. config/chroot_local-includes/usr/local/lib/tails-shell-library/po.sh
+
lang_is_excluded () {
local lang="$1"
echo -n "$EXCLUDE_LANGS" | grep -qs -w "$lang"
@@ -38,3 +41,6 @@ for po_file in $TOR_TRANSLATION_DIR/*.po; do
cp "$po_file" "$TAILS_PO_DIR"
fi
done
+
+# Update PO files
+intltool_update_po $(po_languages)