Added substitution of variables into the locale.

Signed-off-by: James McCarthy <james@thisishatch.co.uk>