mirror of
https://github.com/tips-of-mine/GLPI-Plugin-CVE-Prototype.git
synced 2025-06-28 07:08:44 +02:00
Start repository
This commit is contained in:
17
tools/generate_mo.sh
Normal file
17
tools/generate_mo.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/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"
|
Reference in New Issue
Block a user