Add script for generating mo files for gettext.

This commit is contained in:
Michal Čihař
2010-03-11 17:20:46 +01:00
parent 24ad202367
commit 95db34e9de

7
scripts/generate-mo Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
for x in po/*.po ; do
lang=`echo $x | sed 's@po/\(.*\)\.po@\1@'`
echo -n "$lang: "
mkdir -p locale/$lang/LC_MESSAGES
msgfmt --statistics --check -o locale/$lang/LC_MESSAGES/phpmyadmin.mo $x
done