Fix pseudoconstant use

Yash - please check again the new way of doing pseudoconstants in 4.4. Also this code would not have worked in a language other than English since it was looking up translated labels and not names.
This fixes both issues and I've added a helper function to try to curb copy-paste syndrome.