Browse Source

Add file (not yet used)

r17891
tags/1.00
Christian Perrier 17 years ago
parent
commit
c0ee384593
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      get-iso-codes

+ 16
- 0
get-iso-codes View File

@@ -0,0 +1,16 @@
#!/bin/sh

set -e

#
# Get ISO codes from the iso-codes package and extract translations
set -e
[ -r /usr/share/iso-codes/iso_3166.tab ] || exit 1
rm -rf debian/iso-codes >/dev/null 2>&1
mkdir debian/iso-codes
for i in `find /usr/share/locale/ -name iso_3166.mo` ; do
language=`echo $i | cut -f5 -d/`
# Extract translations from the iso-codes package
msgunfmt $i >debian/iso-codes/${language}.po 2>/dev/null
done


Loading…
Cancel
Save