mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 09:00:25 +00:00
14 lines
380 B
Bash
Executable file
14 lines
380 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Compiles portable object (.po) files into machine object (.mo) files
|
|
# Requires GNU gettext
|
|
# Install with: apt-get install gettext
|
|
|
|
arrLocales=($PWD/*/);
|
|
|
|
# compiles message catalogs to binary format
|
|
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
|
|
|