HomePhabricator

Break down monuments_config in individual JSON files

Description

Break down monuments_config in individual JSON files

monuments_config.py is extremely hard to edit
(and thus to add new countries)

This breaks down the huge Python dictionary into
individual JSON files, one for each (country,lang) config,
which are read and exposed by monuments_config.py

It adds two fields to each config:

  • country, as it makes it much easier to infer from the config (rather than relying on the file naming for example)
  • description, as a human-readable explication blurb: it makes it easier to find the right configuration file if one cannot remember the country code of a given country.

Bug: T145333
Change-Id: I2284dec18633b7a0e11175f5b5908117067f0ec2

Details

Provenance
JeanFredAuthored on Oct 2 2016, 4:45 PM
Parents
rTHER2f9e9741bcc9: Merge "Extract CommonsCat templates data to JSON file"
Branches
Unknown
Tags
Unknown
References
refs/changes/66/313766/1
ChangeId
I2284dec18633b7a0e11175f5b5908117067f0ec2