open-sdg / sdg-build

Python package to convert SDG-related data and metadata between formats
MIT License
5 stars 23 forks source link

SDMX translation input: codelist translations not correct #151

Closed brockfanning closed 3 years ago

brockfanning commented 4 years ago

The "codelist" translations that are imported appear to be grabbing the wrong thing. It looks like it's grabbing the translation of the first item in the codelist, rather than the codelist itself. Here is an example:

"codelist": {
    "CL_ACTIVITY": "Industry (total)",
    "CL_AGE": "1 to 6 years old",
    "CL_AREA": "Talas",
    "CL_COMP_BREAKDOWN": "Activity status: Retirees",
    "CL_CUST_BREAKDOWN": "Custom code 100",
    "CL_DISABILITY": "Persons without disability",
    "CL_EDUCATION_LEV": "Tertiary education (Bachelor’s and Master's or equivalent)",
    "CL_FREQ": "Minutely",
    "CL_GEO_INFO_TYPE": "GeoJSON version 1.0",
    "CL_NATURE": "Not Available",
    "CL_OBS_STATUS": "Includes data from another category",
    "CL_OCCUPATION": "Nursing and midwifery professionals",
    "CL_PRODUCT": "Fish and fish products",
    "CL_QUANTILE": "Total (national average) or no breakdown",
    "CL_REPORTING_TYPE": "National",
    "CL_SERIES": "Foreign direct investment by country of origin",
    "CL_SEX": "Both sexes or no breakdown by sex",
    "CL_UNIT_MEASURE": "Kilowatt-hours",
    "CL_UNIT_MULT": "Quadrillionths",
    "CL_URBANISATION": "Rural"
  }
brockfanning commented 3 years ago

This does not seem to be a problem anymore, after a refactor of the SDMX translation input.