diff options
Diffstat (limited to 'mk-mo')
-rw-r--r-- | mk-mo | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -0,0 +1,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 .. |