Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/locales/locales_generator.sh
blob: cdd5be31d7bb3d0cee2ea87311f43a8eaf58c0eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

cd $(dirname "$0")/..

find . -type f -iname "*.py" | xargs xgettext --join-existing --no-location --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 --no-location --width 512 --backup none --update $file locales/base.pot
	msgfmt -o $path/base.mo $file
done