Added option to set locale by user's setting

Signed-off-by: Rutger Geelen <rutgergeelen@schedjoules.com>