Merge remote-tracking branch 'origin'

This commit is contained in:
Werner Llácer 2022-02-06 22:11:35 +01:00
commit 75e27fe8aa
2 changed files with 13 additions and 0 deletions

1
.gitignore vendored
View File

@ -7,6 +7,7 @@ SAFETY_LOCK
**/**dist
**/**.egg*
**/**.sh
!archinstall/locales/locales_generator.sh
**/**.egg-info/
**/**build/
**/**src/

View File

@ -0,0 +1,12 @@
#!/bin/bash
cd $(dirname "$0")/..
find . -type f -iname "*.py" | xargs xgettext -j --omit-header -d base -o locales/base.pot
for file in $(find locales/ -name "base.po"); do
echo "Updating: $file"
path=$(dirname $file)
msgmerge --quiet --width 512 --update $file locales/base.pot
msgfmt -o $path/base.mo $file
done