[l10n] Better application locale detection (fix #68)