mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-26 09:30:26 +00:00
15 lines
364 B
Bash
15 lines
364 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Compiles portable object (.po) files into machine object (.mo) files
|
||
|
# Requires GNU gettext
|
||
|
|
||
|
arrLocales=($PWD/*/);
|
||
|
|
||
|
# compiles message catalogs to binary format
|
||
|
# requires GNU gettext
|
||
|
for f in "${arrLocales[@]}"; do
|
||
|
echo -n `msgfmt -o ${f}LC_MESSAGES/messages.mo ${f}LC_MESSAGES/messages.po`
|
||
|
echo "Compiled ${f}LC_MESSAGES/messages.po"
|
||
|
done
|
||
|
|