[Pkg-isocodes-devel] [SCM] ISO language, territory, currency, script codes and their translations branch, master, updated. cea8f9e002179794a43724c41b28d7cd306434e9

Tobias Quathamer toddy at debian.org
Tue Jun 26 07:58:56 UTC 2012


The following commit has been merged in the master branch:
commit be99450f7c99ecea6c301d98a87c856e3c6c3ba5
Author: Tobias Quathamer <toddy at debian.org>
Date:   Tue Jun 26 09:51:19 2012 +0200

    Add two fields for more information

diff --git a/iso_639_3/iso-dis-639-tab-parse.py b/iso_639_3/iso-dis-639-tab-parse.py
index a698036..1e6af57 100755
--- a/iso_639_3/iso-dis-639-tab-parse.py
+++ b/iso_639_3/iso-dis-639-tab-parse.py
@@ -81,6 +81,9 @@ def create_iso_639_3_entry(entry):
 	result += '\t\tstatus="%s"\n' % entry['status']
 	result += '\t\tscope="%s"\n' % entry['element_scope']
 	result += '\t\ttype="%s"\n' % entry['language_type']
+	if 'inverted_name' in entry:
+		result += '\t\tinverted_name="%s"\n' % entry['inverted_name']
+	result += '\t\treference_name="%s"\n' % entry['reference_name']
 	# Use the inverted form for the name attribute
 	if 'inverted_name' in entry:
 		result += '\t\tname="%s" />\n' % entry['inverted_name']
@@ -127,6 +130,8 @@ Source: <http://www.sil.org/iso639-3/>
 		status		CDATA	#REQUIRED
 		scope		CDATA   #REQUIRED
 		type		CDATA	#REQUIRED
+		inverted_name	CDATA	#IMPLIED
+		reference_name	CDATA	#REQUIRED
 		name		CDATA	#REQUIRED
 	>
 ]>

-- 
ISO language, territory, currency, script codes and their translations



More information about the Pkg-isocodes-devel mailing list