Commit 34c24ac2 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[vocabularies] Fix seda languages for the MIME type vocabulary

Values are not SEDA 2 specific, they should be used for every SEDA version, so
change 'SEDA-2' into 'SEDA' else the english value is used for SEDA 1.0 and
0.2.

Closes extranet #32206261
parent 2849b0757245
scheme = cnx.find('ConceptScheme', title=u'Types MIME').one()
sql("""
UPDATE cw_label SET cw_language_code = 'seda'
FROM cw_concept, in_scheme_relation
WHERE in_scheme_relation.eid_to = {}
AND cw_concept.cw_eid = in_scheme_relation.eid_from
AND cw_label_of = cw_concept.cw_eid
AND cw_language_code = 'seda-2'
""".format(scheme.eid))
#;$id;libellé SEDA 2;libellé anglais
#;$id;libellé SEDA;libellé anglais
type;url;string;string
lang;;seda-2;en
lang;;seda;en
url;skos:Concept;skos:prefLabel;skos:prefLabel
;;application/1d-interleaved-parityfec;1d-interleaved-parityfec
;;application/3gpp-ims+xml;3gpp-ims+xml
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment