Skip to content

Commit

Permalink
add clear fuzzy script
Browse files Browse the repository at this point in the history
Issue: AAH-2265
  • Loading branch information
jerabekjiri committed Apr 21, 2023
1 parent ab5bc77 commit cc168db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/scripts/clear_fuzzy_entries.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cc168db

Please sign in to comment.