aboutsummaryrefslogtreecommitdiffstats
path: root/mk-mo
blob: 70975eea0acee22bf81d8e945241bd4d3e5fb26f (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

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 ..