mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
16 lines
328 B
Bash
16 lines
328 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Should we only update a language?
|
||
|
if [ $# -eq 1 ]
|
||
|
then
|
||
|
echo "Updating language ${1}"
|
||
|
msgmerge --no-wrap -o "${1}.po" "${1}.po" messages.pot
|
||
|
else
|
||
|
echo "Updating all tranlations"
|
||
|
for lang in *.po
|
||
|
do
|
||
|
echo ${lang%.po}
|
||
|
msgmerge --no-wrap -o "$lang" "$lang" messages.pot
|
||
|
done
|
||
|
fi
|