mirror of
https://github.com/tips-of-mine/GLPI-Plugin-CVE-Prototype.git
synced 2025-06-27 22:58:45 +02:00
17 lines
373 B
Bash
17 lines
373 B
Bash
#!/bin/bash
|
|
# Generate MO files from PO files for GLPI CVE Plugin
|
|
|
|
# Define base directory
|
|
BASEDIR=../locales
|
|
|
|
# For each PO file
|
|
for pofile in ${BASEDIR}/*.po; do
|
|
# Get language code
|
|
lang=$(basename "$pofile" .po)
|
|
echo "Processing $lang..."
|
|
|
|
# Generate MO file
|
|
msgfmt -v -o ${BASEDIR}/${lang}.mo ${pofile}
|
|
done
|
|
|
|
echo "MO files generation completed" |