From cc168dbeec200b09080c1901d7404db21e6009d0 Mon Sep 17 00:00:00 2001 From: jerabekjiri Date: Fri, 21 Apr 2023 16:58:26 +0200 Subject: [PATCH] add clear fuzzy script Issue: AAH-2265 --- .github/workflows/i18n.yml | 3 +++ .github/workflows/scripts/clear_fuzzy_entries.sh | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 .github/workflows/scripts/clear_fuzzy_entries.sh diff --git a/.github/workflows/i18n.yml b/.github/workflows/i18n.yml index efef5eae4d..fe4223fe61 100644 --- a/.github/workflows/i18n.yml +++ b/.github/workflows/i18n.yml @@ -46,6 +46,9 @@ jobs: cd galaxy_ng django-admin makemessages --all + - name: Clear fuzzy entries + run: bash .github/workflows/scripts/clear_fuzzy_entries.sh + - name: Compile strings run: | cd galaxy_ng diff --git a/.github/workflows/scripts/clear_fuzzy_entries.sh b/.github/workflows/scripts/clear_fuzzy_entries.sh new file mode 100644 index 0000000000..6db800bb54 --- /dev/null +++ b/.github/workflows/scripts/clear_fuzzy_entries.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +set -e + +for lang in galaxy_ng/locale/* ; do + msgattrib --clear-fuzzy --empty -o $lang/LC_MESSAGES/django.po $lang/LC_MESSAGES/django.po +done