update_po.sh 328 B

12345678910111213141516
  1. #!/bin/bash
  2. # Should we only update a language?
  3. if [ $# -eq 1 ]
  4. then
  5. echo "Updating language ${1}"
  6. msgmerge --no-wrap -o "${1}.po" "${1}.po" messages.pot
  7. else
  8. echo "Updating all tranlations"
  9. for lang in *.po
  10. do
  11. echo ${lang%.po}
  12. msgmerge --no-wrap -o "$lang" "$lang" messages.pot
  13. done
  14. fi