summaryrefslogtreecommitdiff
path: root/scripts/gentables
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gentables')
-rwxr-xr-xscripts/gentables7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/gentables b/scripts/gentables
index cdc97db..f7fcc89 100755
--- a/scripts/gentables
+++ b/scripts/gentables
@@ -16,9 +16,12 @@ echo '};
echo "lang_t languages[] = {"
-cat scripts/languages.txt | while read iso name
+scripts/iso639tab.py scripts/iso_639.xml |
+ grep -v '^#' |
+ grep -v '^$' |
+ while read iso1 iso2 iso3 name
do
- echo ' { "'$iso'", "'$name'" },'
+ echo ' { "'$iso2'", "'$name'" },'
done
echo '};
'