You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
328 B

  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