i18n fixes for setlocale
debug locale improved