locale checking