mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Added utility for compiling .mo files
This commit is contained in:
parent
b758ac161d
commit
b98837a8a2
1 changed files with 14 additions and 0 deletions
14
locale/pocompile.sh
Executable file
14
locale/pocompile.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/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
|
||||
|
Loading…
Reference in a new issue