Allow discount code statuses to be properly translated. Closes #2104