Countries with more than one official language may post their Tender Notices, Award Notices and Contracts in all the official languages. I'm trying to create samples of current Tender Notices (as a contract release) using OCDS and then I'll validate with http://ocds.open-contracting.org/validator/validate/, but I'm not quite sure that it will work using an array instead of 'en' or whatever language I put.
--
You received this message because you are subscribed to the Google Groups "Public OCDS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to public-ocds...@webfoundation.org.
To post to this group, send email to publi...@webfoundation.org.
Visit this group at http://groups.google.com/a/webfoundation.org/group/public-ocds/.
To view this discussion on the web visit https://groups.google.com/a/webfoundation.org/d/msgid/public-ocds/91727e3c-0ed6-42f5-8fa2-3679ac3918b6%40webfoundation.org.
World Wide Web Foundation | 1110 Vermont Ave NW, Suite 500, Washington DC 20005, USA | www.webfoundation.org | Twitter: @webfoundation
To view this discussion on the web visit https://groups.google.com/a/webfoundation.org/d/msgid/public-ocds/a569dfa6-ba1e-4018-be7a-e4f9b97d42a1%40webfoundation.org.
In all three cases, the languages could be an array, even of length 1 in the first case.
Now a title can look like this:
{
"title":
{"es": "título aquí"}
}
Or this:
{
"title":
{"en":"Title here"},
{"fr": "Titre ici"}
}
Moreover, to render a French version of a Tender say, would just require pulling out all individual (untranslated) fields, along with all {"fr":"foo"} elements from those fields that are marked as translatable.
This also allows flattening using the aforementioned title_en or title_es methods, for up to n languages inside the title field.
The more I think about it, the more I wonder if this method could be used for every field in the entire schema that can be translated? Thoughts?
Cheers, Jamon
--
You received this message because you are subscribed to the Google Groups "Public OCDS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to public-ocds...@webfoundation.org.
To post to this group, send email to publi...@webfoundation.org.
Visit this group at http://groups.google.com/a/webfoundation.org/group/public-ocds/.
To view this discussion on the web visit https://groups.google.com/a/webfoundation.org/d/msgid/public-ocds/d884e532-a8a0-4fde-9fa4-a47e6d12de8a%40webfoundation.org.