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:
18
tools/update_po.sh
Normal file
18
tools/update_po.sh
Normal file
@ -0,0 +1,18 @@
|
||||
#!/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"
|
Reference in New Issue
Block a user