summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update-language-subtags7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/update-language-subtags b/scripts/update-language-subtags
index 874a6dc7..3ea53572 100755
--- a/scripts/update-language-subtags
+++ b/scripts/update-language-subtags
@@ -25,7 +25,12 @@ with urllib.request.urlopen('https://www.iana.org/assignments/language-subtag-re
else:
p = l.strip().decode('utf-8').split(':')
if len(p) > 1:
- block[p[0]] = p[1][1:]
+ key = p[0]
+ value = p[1][1:]
+ if key == 'Description' and key in block:
+ block[key] = '/'.join([block[key], value])
+ else:
+ block[key] = value
for k, v in lists.items():
with open(os.path.join('tags', k), 'w') as f: