summaryrefslogtreecommitdiff
path: root/pocompile.sh
blob: f25c51e8177c369dcba71d72b6d231afdab34a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
# Helper script to compile all .po files in the i18n directroy into .mo files.

cd i18n

eme=""
if [ "$1" == "-emerge" ]; then
	eme="y"
	shift
fi

if [ $# -gt 0 ]; then
	langs="$@"
else
	langs="$(ls *.po | sed 's/\.po//g')"
fi

for LANG in $langs; do
	ITEM=${LANG}.po

	if [ -f $ITEM ]; then
		echo "Creating translation file for ${LANG}."

		if [ "$eme"x == "yx" ]; then
			mkdir mo -p
			msgfmt ${ITEM} -o mo/${LANG}.mo
		else
			mkdir ${LANG}/LC_MESSAGES -p
			msgfmt ${ITEM} -o ${LANG}/LC_MESSAGES/portato.mo
		fi
	fi
done
Amend changelogRené 'Necoro' Neumann1-0/+1 2023-05-12Issue #95 Add warning when config can be read globally.René 'Necoro' Neumann1-0/+11 2023-05-11Issue #95: Change cache ownership.René 'Necoro' Neumann1-0/+4 There is no need for the cache to be accessible by anyone who is not us. Thus enforce the cache to be stored with 0600. 2023-05-11Issue #95: Add hint about sensible access rights.René 'Necoro' Neumann1-0/+1 2023-04-23[workflow] Port changes also to releaseRené 'Necoro' Neumann1-6/+5 2023-04-23[workflow] Checkout before go setupRené 'Necoro' Neumann1-3/+3 2023-04-23[workflow] determine go version from go.modRené 'Necoro' Neumann1-3/+2 2023-04-23Improve test to also validate error messageRené 'Necoro' Neumann1-42/+39 2023-04-22Fix/improve testsRené 'Necoro' Neumann1-59/+104 2023-04-22Improve error handlingRené 'Necoro' Neumann1-1/+11 2023-04-21Fix workflow: '1.20' needs to be quotedRené 'Necoro' Neumann2-2/+2