Rework status search to avoid relying on the enum ids, and also to allow translations