aboutsummaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-09-14 21:01:56 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-09-15 12:57:57 +0100
commitdc7613329c275cd158fdde8faf1c0e301f5b7202 (patch)
tree646589f4a09b1a1db389b2daf873f1df1d59cdd5 /script
parent4314930e68ba48bef78be308020f626cee3f09b5 (diff)
Fix issues with Open/Closed translated too early.v2.2
It was possible for _hardcoded_states to be reached with no locale selected (e.g. bin/update-all-reports), causing an error trying to translate Open/Closed. But translating those there wasn't correct, because that would then be cached and returned even if a different language was being used. Caching was ignored in testing, which did not help. We no longer translate the state names in their objects, only upon display at the point that we will know the locale. We can't simply return the translation of Open/Closed because there may be entries in the translation table as well.
Diffstat (limited to 'script')
0 files changed, 0 insertions, 0 deletions