Detect system locale.