mirror of
https://github.com/tips-of-mine/GLPI-Plugin-CVE-Prototype.git
synced 2025-06-27 22:58:45 +02:00
18 lines
437 B
Bash
18 lines
437 B
Bash
#!/bin/bash
|
|
# Update PO files from POT template for GLPI CVE Plugin
|
|
|
|
# Define variables
|
|
POTFILE=plugin_cve.pot
|
|
BASEDIR=../locales
|
|
|
|
# For each PO file
|
|
for pofile in ${BASEDIR}/*.po; do
|
|
# Get language code
|
|
lang=$(basename "$pofile" .po)
|
|
echo "Updating $lang..."
|
|
|
|
# Update PO file from template
|
|
msgmerge --update --no-fuzzy-matching --backup=off ${pofile} ${BASEDIR}/${POTFILE}
|
|
done
|
|
|
|
echo "PO files update completed" |