mirror of
https://github.com/c9moser/sgbackup.git
synced 2026-01-19 19:40:13 +00:00
19 lines
414 B
Bash
Executable File
19 lines
414 B
Bash
Executable File
#!/bin/sh
|
|
self="$( realpath "$0" )"
|
|
scriptdir="$( dirname "$0" )"
|
|
project_root="$( dirname "$(dirname "$self" )" )"
|
|
|
|
PO_DIR="${project_root}/PO"
|
|
LINGUAS="${PO_DIR}/LINGUAS"
|
|
|
|
pot_file="${PO_DIR}/messages.pot"
|
|
|
|
for i in $( cat "$LINGUAS" ); do
|
|
po="${PO_DIR}/${i}.po"
|
|
if [ ! -f "$po" ]; then
|
|
cp "$pot_file" "$po"
|
|
else
|
|
msgmerge --update --previous --lang="$i" "$po" "$pot_file"
|
|
fi
|
|
done
|