[Pkg-isocodes-devel] [SCM] ISO language, territory, currency, script codes and their translations branch, master, updated. c400f2b11fee547057b84067b88c2808861e5ff7
Tobias Quathamer
toddy at debian.org
Tue Jun 25 15:06:02 UTC 2013
The following commit has been merged in the master branch:
commit 5d90de7bccfbd4320a67600e30470c9a3fe6628b
Author: Tobias Quathamer <toddy at debian.org>
Date: Tue Jun 25 14:31:37 2013 +0200
Reintroduce the status attribute temporarily
diff --git a/iso_639_3/iso-dis-639-tab-parse.py b/iso_639_3/iso-dis-639-tab-parse.py
index 2e3b472..3cd38c1 100755
--- a/iso_639_3/iso-dis-639-tab-parse.py
+++ b/iso_639_3/iso-dis-639-tab-parse.py
@@ -56,6 +56,11 @@ def create_iso_639_3_entry(entry):
result += '\t\tpart1_code="%s"\n' % entry['part1']
if entry['part2t'] != '':
result += '\t\tpart2_code="%s"\n' % entry['part2t']
+ # Special case for lcq, which is the only id with status "Retired"
+ if entry['code'] == "lcq":
+ result += '\t\tstatus="Retired"\n'
+ else:
+ result += '\t\tstatus="Active"\n'
result += '\t\tscope="%s"\n' % entry['element_scope']
result += '\t\ttype="%s"\n' % entry['language_type']
if 'inverted_name' in entry:
@@ -106,6 +111,7 @@ Source: <http://www.sil.org/iso639-3/>
id CDATA #REQUIRED
part1_code CDATA #IMPLIED
part2_code CDATA #IMPLIED
+ status CDATA #REQUIRED
scope CDATA #REQUIRED
type CDATA #REQUIRED
inverted_name CDATA #IMPLIED
--
ISO language, territory, currency, script codes and their translations
More information about the Pkg-isocodes-devel
mailing list