openownership / data-standard

The Beneficial Ownership Data Standard (BODS) is an open standard providing a specification for modelling and publishing information on the beneficial ownership and control of corporate vehicles
http://standard.openownership.org
Other
61 stars 13 forks source link

Translation framework: duplication of translation of codelists text #299

Closed kd-ods closed 2 years ago

kd-ods commented 4 years ago

Reviewing a PR on the Spanish translation it became clear that there's an inefficiency in the way the strings are pulled out and represented as resources in Transifex (pot files?). Codelists are being translated twice.

The schema-reference.po contains the all the codelist strings, as well as the codelist strings being represented in the codelists.po file.

The translation pipeline needs to be rationalised.

jpmckinney commented 4 years ago

The csv-table directive will yield the strings in the CSV for translation.

To get around this, OCDS uses at times the csv-table-no-translate directive from sphinxcontrib-opendataservices or the codelisttable directive from https://github.com/open-contracting/sphinxcontrib-opencontracting (the latter renders Markdown in codelist descriptions).

For those directives to work, OCDS needs to translate the codelist files that are referenced from its codelists.md page. It does that here using OCDS Babel: https://github.com/open-contracting/standard/blob/1.1-dev/docs/conf.py#L138