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.
 
 
 
 

22 lines
581 B

  1. #!/bin/sh
  2. set -e
  3. # Get ISO codes from the iso-codes package and extract translations
  4. [ -r debian/iso_3166.tab ] || exit 1
  5. rm -rf debian/iso-codes
  6. mkdir debian/iso-codes
  7. for i in $(find /usr/share/locale/ -name iso_3166.mo) ; do
  8. language=$(echo $i | cut -f5 -d/)
  9. # Extract translations from the iso-codes package
  10. msgunfmt $i >debian/iso-codes/${language}.po 2>/dev/null
  11. done
  12. # If no iso-codes translation is available for se, then use nb instead
  13. if [ ! -f debian/iso-codes/se.po ] && [ -f debian/iso-codes/nb.po ]; then
  14. cp debian/iso-codes/nb.po debian/iso-codes/se.po
  15. fi