update-po.sh 301 B

1234567891011121314
  1. #!/bin/sh
  2. FILES=$@
  3. [ -z "$FILES" ] && FILES=po/*.po
  4. for file in $FILES; do
  5. # convert the po file to unix to avoid garbage with msgmerge
  6. dos2unix "$file"
  7. # merge from the template
  8. msgmerge -U -s -N --suffix=".bak" "$file" po/Firmware.pot
  9. # ... and back
  10. unix2dos "$file"
  11. done