Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/locales/locales_generator.sh
blob: 9432f83fb026b6b7156220827865fd8dda423aac (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 --update $file locales/base.pot
	msgfmt -o $path/base.mo $file
done