aboutsummaryrefslogtreecommitdiffstats
path: root/mk-mo
blob: 60178300ca090b247c84aeb3cdfafae3507a2955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

# Recreates ALL .mo binaries from .po text files in po directory

[[ -d locale ]] && rm -r locale

mkdir locale

cd po || exit 1

for po in *.po; do

echo "$po"

molang=$(echo "$po"|rev|cut -d. -f2-|rev)

mkdir -p ../locale/"$molang"/LC_MESSAGES

msgfmt -vco ../locale/"$molang"/LC_MESSAGES/remove-old-kernels.mo "$po"

done

cd ..