From 626582cdf7ebca1cf30b93320bd7329d6a5b5758 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Sat, 5 Jun 2021 18:03:09 -0400 Subject: [PATCH] makemessages needs somewhere to dump non-wafer strings --- .gitignore | 1 + utils/update_i18n_files.sh | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index d20f0b43..d8c2765b 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,7 @@ nosetests.xml .mr.developer.cfg .project .pydevproject +/locale/ /virtualenv/ /ve/ diff --git a/utils/update_i18n_files.sh b/utils/update_i18n_files.sh index 415cb125..1dfa99bf 100755 --- a/utils/update_i18n_files.sh +++ b/utils/update_i18n_files.sh @@ -4,6 +4,12 @@ base=$(dirname $0) cd $base/.. +# Create a root-level locale directory, that we'll ignore. +# This is used for anything outside wafer (e.g. docs) +# makemessages searches all files under the current directory, and we want to +# prefix our filenames with wafer/ +mkdir -p locale + for cand in wafer/locale/*; do if [ ! -d $cand ]; then continue