From d63e295e0e7493666918f1aaf120e7aa88c867e0 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Thu, 25 Apr 2024 14:47:11 -0400 Subject: [PATCH] fix: Be able to extract translations again. * The `conf/locale/en/LC_MESSAGES` folder does not get automatically created by other tooling so message extraction to that folder fails. * The `gettext_fallback.js` file should not be getting picked up for translation since it's there only to be used when the the language gettext catalog is not available --- conf/locale/config.yaml | 2 ++ conf/locale/en/LC_MESSAGES/.gitignore | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 conf/locale/en/LC_MESSAGES/.gitignore diff --git a/conf/locale/config.yaml b/conf/locale/config.yaml index af8092483800..7c606e0c7954 100644 --- a/conf/locale/config.yaml +++ b/conf/locale/config.yaml @@ -44,6 +44,8 @@ ignore_dirs: - src/pystache-custom - src/rate-xblock - src/xblock-google-drive + # Ignore the file we use translations are not setup. + - common/static/js/src/gettext_fallback.js # Third-party installed apps that we also extract strings from. When adding a diff --git a/conf/locale/en/LC_MESSAGES/.gitignore b/conf/locale/en/LC_MESSAGES/.gitignore new file mode 100644 index 000000000000..e87daf6de8a3 --- /dev/null +++ b/conf/locale/en/LC_MESSAGES/.gitignore @@ -0,0 +1,3 @@ +# We want to ignore files in this directory which we do in the +# top-level .gitignore file but we still want this directory to +# be automatically created.