creativecommons / creativecommons.org

Legacy legal code translations and general support issues
MIT License
155 stars 201 forks source link

add_cc4_links.py is unreliable and inconsistent #1063

Closed TimidRobot closed 4 years ago

TimidRobot commented 4 years ago

Describe the bug

add_cc4_links.py (current version 564146d as of 2020-01-02) is unreliable and inconsistent. It appends a link for the language specified in the command line argument. This means that the languages are ordered arbitrarily and if a translation branch is created before another translation branch is merged, it won't have the link for that language.

Expected behavior

The script should remove all language links and replace it with the current list (sorted). Ideally, one per line to make diffs easier to read.